/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e2d9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    /* Allow normal scrolling initially */
    overflow-y: auto;
}

/* Vinyl sleeve container - Mobile First */
.vinyl-sleeve {
    position: relative;
    width: 100%;
    max-width: 95vw;
    height: 95vw;
    max-height: 500px;
    perspective: 1000px;
    touch-action: manipulation;
}

/* Front of the sleeve (vinyl record) - Mobile First */
.sleeve-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c1810 0%, #3d2317 50%, #2c1810 100%);
    border-radius: 15px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease-in-out;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}


/* Logo container - Mobile First */
.logo-container {
    position: absolute;
    z-index: 10;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


/* Sleeve labels - Mobile First */
.sleeve-labels {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 90%;
}

.label {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 280px;
}

.label-text {
    color: #f5f3f0;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 8px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Back of the sleeve (postcard) - Mobile First */
.sleeve-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #faf8f5 0%, #f0ede6 100%);
    border-radius: 15px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(139, 69, 19, 0.1);
    padding: 20px 15px 10px 15px; /* Reduced bottom padding to give more space for content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.6s ease-in-out;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    transform-style: preserve-3d;
    overflow-y: auto; /* Enable scrolling after flip */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 69, 19, 0.4) rgba(139, 69, 19, 0.1);
}

/* Custom scrollbar for postcard */
.sleeve-back::-webkit-scrollbar {
    width: 4px;
}

.sleeve-back::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 2px;
}

.sleeve-back::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.4);
    border-radius: 2px;
}

.sleeve-back::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.6);
}


/* Postcard header - Mobile First */
.postcard-header {
    text-align: center;
    margin-bottom: 20px;
}

.postcard-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #2c1810;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.tagline {
    font-size: 0.9rem;
    color: #8b4513;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Postcard content - Mobile First */
.postcard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0; /* Allow flex item to shrink and enable scrolling */
    padding-bottom: 10px; /* Extra padding to ensure content doesn't get cut off */
}

.contact-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #2c1810;
    margin-bottom: 15px;
    text-align: center;
}

.store-address {
    margin-bottom: 20px;
    text-align: center;
}

.address-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: #2c1810;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
}

.address-link:hover {
    background: rgba(139, 69, 19, 0.1);
    border-color: #8b4513;
    transform: translateY(-1px);
}

.address-link .icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-link .icon svg {
    width: 100%;
    height: 100%;
    color: #8b4513;
}

.opening-hours h3 {
    font-size: 1.1rem;
    color: #8b4513;
    margin-bottom: 12px;
    text-align: center;
}

.hours-grid {
    display: grid;
    gap: 6px;
    width: 100%;
    margin: 0 auto;
}

.day-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 6px;
    border-left: 2px solid #8b4513;
    font-size: 0.9rem;
}

.day {
    font-weight: 600;
    color: #2c1810;
}

.time {
    font-weight: 500;
    color: #8b4513;
}

/* Contact info - Mobile First */
.contact-info h3 {
    font-size: 1.1rem;
    color: #8b4513;
    margin-bottom: 12px;
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: #2c1810;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
    min-height: 44px; /* Touch target size */
}

.contact-link:active {
    background: rgba(139, 69, 19, 0.1);
    border-color: #8b4513;
    transform: scale(0.98);
}

.contact-link .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-link .icon svg {
    width: 100%;
    height: 100%;
    color: #8b4513;
}

.contact-link span:last-child {
    font-weight: 500;
    flex: 1;
}

.contact-link:last-child {
    margin-bottom: 10px;
}

/* Vinyl footer - appears underneath the vinyl when flipped */
.vinyl-footer {
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    pointer-events: none;
}

.vinyl-footer p {
    font-size: 0.8rem;
    color: #8b4513;
    font-style: italic;
    line-height: 1.3;
    font-weight: 500;
}

/* Show footer when vinyl is flipped */
.vinyl-sleeve.flipped + .vinyl-footer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Scroll-based flip animation */
.vinyl-sleeve.flipped .sleeve-front {
    transform: rotateY(-180deg);
}

.vinyl-sleeve.flipped .sleeve-back {
    transform: rotateY(0deg);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: #8b4513;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    color: #8b4513;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Tablet styles - 768px and up */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }
    
    .vinyl-sleeve {
        max-width: 90vw;
        height: 90vw;
        max-height: 600px;
    }
    
    .sleeve-front {
        border-radius: 20px;
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .sleeve-back {
        border-radius: 20px;
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.18),
            0 0 0 1px rgba(139, 69, 19, 0.1);
        padding: 30px 25px;
    }
    
    .postcard-header {
        margin-bottom: 25px;
    }
    
    .postcard-header h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .tagline {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .postcard-content {
        gap: 25px;
    }
    
    .contact-section h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }
    
    .store-address {
        margin-bottom: 25px;
    }
    
    .address-link {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .address-link .icon {
        width: 18px;
        height: 18px;
    }
    
    .opening-hours h3 {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }
    
    .hours-grid {
        gap: 7px;
        max-width: 320px;
    }
    
    .day-time {
        padding: 7px 12px;
        font-size: 0.95rem;
    }
    
    .contact-links {
        gap: 12px;
        max-width: 380px;
    }
    
    .contact-link {
        padding: 12px 14px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .contact-link:hover {
        background: rgba(139, 69, 19, 0.1);
        border-color: #8b4513;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    }
    
    .contact-link .icon {
        width: 22px;
        height: 22px;
    }
    
    .logo-container {
        width: 240px;
        height: 240px;
    }
    
    
    .sleeve-labels {
        bottom: 30px;
        gap: 10px;
        width: 85%;
    }
    
    .label {
        padding: 6px 12px;
        border-radius: 15px;
        max-width: 350px;
    }
    
    .label-text {
        font-size: 9px;
        letter-spacing: 0.4px;
    }
    
    .vinyl-footer {
        margin-top: 25px;
    }
    
    .vinyl-footer p {
        font-size: 0.85rem;
    }
    
    /* Scroll indicator adjustments for tablet */
    .scroll-indicator {
        bottom: 40px;
    }
    
    .scroll-arrow {
        font-size: 1.8rem;
    }
    
    .scroll-text {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Desktop styles - 1024px and up */
@media (min-width: 1024px) {
    .vinyl-sleeve {
        max-width: 600px;
        height: 600px;
        max-height: none;
    }
    
    .sleeve-front {
        border-radius: 20px;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .sleeve-back {
        border-radius: 20px;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(139, 69, 19, 0.1);
        padding: 40px;
    }
    
    .postcard-header {
        margin-bottom: 30px;
    }
    
    .postcard-header h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .tagline {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .postcard-content {
        gap: 30px;
    }
    
    .contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .store-address {
        margin-bottom: 30px;
    }
    
    .address-link {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .address-link .icon {
        width: 20px;
        height: 20px;
    }
    
    .opening-hours h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .hours-grid {
        gap: 8px;
        max-width: 350px;
    }
    
    .day-time {
        padding: 8px 12px;
        font-size: 1rem;
        border-left: 3px solid #8b4513;
    }
    
    .contact-links {
        gap: 12px;
        max-width: 400px;
    }
    
    .contact-link {
        padding: 12px 16px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 12px;
    }
    
    .contact-link .icon {
        width: 24px;
        height: 24px;
    }
    
    .logo-container {
        width: 300px;
        height: 300px;
    }
    
    .logo {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
    
    
    .sleeve-labels {
        bottom: 40px;
        gap: 12px;
        width: 80%;
    }
    
    .label {
        padding: 8px 16px;
        border-radius: 18px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        max-width: 400px;
    }
    
    .label-text {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .vinyl-footer {
        margin-top: 30px;
    }
    
    .vinyl-footer p {
        font-size: 0.9rem;
    }
    
    
    /* Scroll indicator adjustments for desktop */
    .scroll-indicator {
        bottom: 80px;
    }
    
    .scroll-arrow {
        font-size: 2rem;
    }
    
    .scroll-text {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

/* Print styles */
@media print {
    .vinyl-sleeve {
        transform: none !important;
        box-shadow: none;
    }
    
    .sleeve-front {
        transform: none !important;
    }
    
    .sleeve-back {
        transform: none !important;
        position: static;
        page-break-inside: avoid;
    }
}
