/* ==========================================
   Responsive Design - Mobile & Tablet
   ========================================== */

/* Tablet (iPad, Medium devices) */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav {
        padding: 1.2rem var(--spacing-sm);
    }
    
    .nav-menu {
        gap: var(--spacing-md);
    }
    
    .albums-grid {
        gap: var(--spacing-md);
        padding: var(--spacing-sm) 0;
    }
    
    .album-card {
        min-width: 280px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .album-cover,
    .artist-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .tracklist {
        padding: 0 var(--spacing-sm);
    }
    
    .track-item {
        grid-template-columns: 50px 1fr 50px;
        gap: var(--spacing-sm);
    }
    
    .platforms {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Show both track-summary and track-links on tablet */
    .track-summary {
        display: block !important;
    }

    .track-links {
        max-height: 90px !important;
        opacity: 1 !important;
    }

    /* Override hover states for tablet */
    .track-item:hover .track-summary,
    .track-item.playing .track-summary {
        display: block !important;
    }

    .track-item:hover .track-links,
    .track-item.playing .track-links {
        max-height: 90px !important;
        margin-top: 0;
        opacity: 1 !important;
    }
}

/* Mobile (Smartphones) */
@media screen and (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    /* Navigation - Mobile Menu */
    .nav {
        padding: 1rem var(--spacing-sm);
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 58px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: var(--spacing-md) 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: var(--spacing-sm) 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
        position: relative;
    }
    
    .lyrics-slider {
        min-height: calc(100vh - 80px);
    }
    
    .lyrics-slider .lyrics-text {
        font-size: 1.2rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: right;
        white-space: nowrap;
        line-height: 1.4;
        margin: 0;
    }
    
    .lyrics-slider .lyrics-subtitle {
        font-size: 1.33rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        white-space: nowrap;
        margin: 0;
        line-height: 1.3;
    }
    
    .slide-content {
        padding: var(--spacing-sm);
        display: flex;
        flex-direction: row-reverse;
        /* align-items: center; */
        justify-content: center;
        height: 100%;
        padding-left: var(--spacing-xl);
        gap: var(--spacing-md);
    }

    .slide {
        padding-bottom: 18vh;
    }
    
    .slide-nav {
        bottom: 15%;
        right: 2rem;
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .scroll-indicator {
        bottom: 10%;
        font-size: 0.75rem;
    }
    
    /* Album Section */
    .album-section {
        padding: var(--spacing-lg) 0;
    }
    
    .albums-grid {
        gap: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }
    
    .album-card {
        min-width: 240px;
        max-width: 280px;
    }
    
    .album-details {
        padding: var(--spacing-md);
    }
    
    .album-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .artist-name {
        font-size: 1.2rem;
    }
    
    .album-description {
        font-size: 0.95rem;
    }
    
    .album-meta {
        gap: var(--spacing-xs);
    }
    
    .meta-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Listen Section */
    .listen-section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .platforms {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .platform-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .platform-icon {
        font-size: 3rem;
    }
    
    .platform-card h3 {
        font-size: 1.3rem;
    }
    
    /* Artist Section */
    .artist-section {
        padding: var(--spacing-lg) 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .team-member {
        padding: var(--spacing-lg);
    }
    
    .member-image img {
        object-fit: cover;
        object-position: center;
    }
    
    .member-image-placeholder {
        font-size: 3rem;
    }
    
    .member-name {
        font-size: 1.5rem;
    }
    
    .member-role {
        font-size: 0.9rem;
    }
    
    .member-bio {
        font-size: 0.9rem;
    }
    
    /* Tracklist Section */
    .tracklist-section {
        padding: var(--spacing-lg) 0;
    }
    
    .album-intro {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .album-intro::before,
    .album-intro::after {
        font-size: 3rem;
    }
    
    .album-description-text {
        font-size: 1rem;
        margin: var(--spacing-lg) 0;
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .track-summary {
        margin-bottom: 0 !important;
    }

    .track-item:hover .track-summary,
    .track-item.playing .track-summary {
        display: none !important;
    }
    
    .tracklist {
        padding: 0;
    }
    
    .track-item {
        grid-template-columns: 50px 1fr 50px;
        gap: var(--spacing-sm);
        padding: var(--spacing-md) var(--spacing-md);
    }
    
    .track-item:hover {
        transform: translateY(-1px);
    }

    .track-item:hover .track-links,
    .track-item.playing .track-links {
        max-height: 90px !important;
        opacity: 1 !important;
        margin-top: var(--spacing-xs);
    }

    .track-item .track-header {
        margin-bottom: var(--spacing-xs);
    }

    .track-item:hover .track-header {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Hide track-links by default on mobile */
    .track-links {
        max-height: 0 !important;
        opacity: 0 !important;
    }
    
    .track-number {
        font-size: 2rem;
    }
    
    .track-title {
        font-size: 1.3rem;
    }
    
    .track-title.coming-soon-title {
        opacity: 0.5;
        font-style: italic;
    }
    
    .track-header {
        flex-direction: column;
        align-items: flex-start;
        overflow: hidden;
        gap: 6px;
    }
    
    .featured-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .track-meta {
        font-size: 0.85rem;
    }
    
    .track-links {
        flex-direction: row;
        gap: 8px;
        max-width: none;
    }
    
    .track-link {
        font-size: 0.65rem;
        padding: 10px;
        gap: 4px;
        min-width: 70px;
        width: 70px;
        aspect-ratio: 1;
        justify-content: center;
        text-align: center;
    }
    
    .track-duration {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
    }
    
    .track-duration.coming-soon .status-text {
        font-size: 0.7rem;
    }
    
    /* Lyrics Section */
    .lyrics-container {
        padding: var(--spacing-lg);
        border-radius: 16px;
    }
    
    .lyrics-title {
        font-size: 2rem;
    }
    
    .lyrics-meta {
        font-size: 0.9rem;
    }
    
    .lyrics-text {
        font-size: 1.8rem;
        line-height: 2;
    }
    
    .lyrics-subtitle {
        font-size: 1rem;
    }
    
    .artist-content {
        gap: var(--spacing-md);
    }
    
    .artist-bio {
        padding: var(--spacing-sm);
    }
    
    .artist-name-large {
        font-size: 2rem;
    }
    
    .bio-text {
        font-size: 1rem;
        text-align: left;
    }
    
    .artist-tags {
        gap: var(--spacing-xs);
    }
    
    .tag {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .footer-links ul {
        margin-top: var(--spacing-sm);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Small Mobile (iPhone SE, small phones) */
@media screen and (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    /* Tracklist - Small Mobile */
    .album-intro {
        padding: var(--spacing-md) var(--spacing-xs);
    }
    
    .album-intro::before,
    .album-intro::after {
        font-size: 2.5rem;
        top: var(--spacing-md);
        bottom: var(--spacing-md);
    }
    
    .album-description-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin: var(--spacing-md) 0;
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
    
    .track-item {
        grid-template-columns: 40px 1fr 45px;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm) var(--spacing-sm);
    }
    
    .track-number {
        font-size: 1.6rem;
    }
    
    .track-title {
        font-size: 1.1rem;
    }
    
    .track-title.coming-soon-title {
        opacity: 0.5;
        font-style: italic;
    }
    
    .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .featured-badge {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .track-links {
        flex-direction: row;
        gap: 6px;
        max-width: none;
        flex-wrap: wrap;
    }
    
    .track-link {
        font-size: 0.6rem;
        padding: 8px;
        gap: 3px;
        min-width: 60px;
        width: 60px;
        aspect-ratio: 1;
        justify-content: center;
        text-align: center;
    }
    
    .track-duration {
        font-size: 1.6rem;
        width: 45px;
        height: 45px;
    }
    
    .track-duration.coming-soon .status-text {
        font-size: 0.6rem;
    }
    
    /* Lyrics - Small Mobile */
    .lyrics-container {
        padding: var(--spacing-md);
    }
    
    .lyrics-title {
        font-size: 1.6rem;
    }
    
    .lyrics-text {
        font-size: 1.2rem;
        line-height: 2;
    }
    
    .lyrics-subtitle {
        font-size: 1.33rem;
        margin: var(--spacing-xs) 0;
    }
    
    .slide-dot {
        width: 6px;
        height: 6px;
    }
    
    .album-cover-placeholder,
    .artist-image-placeholder,
    .member-image-placeholder {
        font-size: 3.5rem;
    }
    
    .album-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .platform-icon {
        font-size: 2.5rem;
    }
    
    .platform-card h3 {
        font-size: 1.2rem;
    }
    
    .platform-card p {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 120px 0 50px;
    }
    
    /* Lyrics - Landscape */
    .lyrics-text {
        font-size: 1.6rem;
        line-height: 2;
    }
    
    .lyrics-subtitle {
        font-size: 0.95rem;
    }
    
    .slide-nav {
        bottom: 5%;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Large Desktop */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .nav {
        max-width: 1600px;
    }
}

/* Extra Large Desktop (4K) */
@media screen and (min-width: 2560px) {
    :root {
        font-size: 18px;
    }
    
    .container {
        max-width: 1800px;
    }
    
    .nav {
        max-width: 2000px;
    }
    
    .album-cover,
    .artist-image {
        max-width: 800px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .slide-nav,
    .scroll-indicator,
    .platform-card,
    .social-icons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 0;
        background: white;
    }
    
    .lyrics-text,
    .album-title,
    .artist-name,
    .section-title {
        color: black;
        -webkit-text-fill-color: black;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (if system prefers dark) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode by default */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --card-border: rgba(255, 255, 255, 0.3);
    }
    
    .nav-link,
    .platform-card,
    .meta-item,
    .tag {
        border-width: 2px;
    }
    
    /* Lyrics container for mobile */
    .lyrics-container {
        width: 95%;
        padding: var(--spacing-md);
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .lyrics-title {
        font-size: 1.4rem;
    }
    
    .lyrics-meta {
        font-size: 0.85rem;
    }
    
    .lyrics-text {
        font-size: 0.95rem;
        line-height: 1.9;
    }
}

/* ==========================================
   Album Selector Responsive
   ========================================== */
@media (max-width: 768px) {
    .album-buttons {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .album-btn {
        padding: var(--spacing-md);
    }
    
    .album-btn-content h3 {
        font-size: 1.3rem;
    }
    
    .album-btn-content p {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Desktop Styles - Large screens
   ========================================== */

/* Desktop (Large screens) */
@media screen and (min-width: 1025px) {
    /* Show both track-summary and track-links on desktop */
    .track-summary {
        display: block !important;
    }

    .track-links {
        max-height: 90px !important;
        opacity: 1 !important;
    }

    /* Override hover states for desktop */
    .track-item:hover .track-summary,
    .track-item.playing .track-summary {
        display: block !important;
    }

    .track-item:hover .track-links,
    .track-item.playing .track-links {
        max-height: 90px !important;
        margin-top: 0;
        opacity: 1 !important;
    }
}
