/* ==========================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
   Goldish-Black Theme
   ========================================== */

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* ===== TABLET & BELOW ===== */
@media (max-width: 1024px) {
    .song-header {
        grid-template-columns: minmax(250px, 350px) 1fr;
        gap: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-hero-grid {
        grid-template-columns: 300px 1fr;
        gap: 3rem;
    }
}

/* ===== MOBILE & TABLET ===== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        color: var(--text-primary);
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero-section {
        padding: 4rem 0 3rem;
        min-height: 70vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-artist-image {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        grid-auto-rows: 240px;
        gap: 1rem;
    }
    
    .gallery-item.large,
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.3) 50%, transparent 100%);
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-caption {
        bottom: auto;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        text-align: left;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    
    .gallery-item.large,
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* About Hero */
    .about-hero {
        padding: 3rem 0 2rem;
    }
    
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-hero-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Songs Grid */
    .songs-grid,
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem;
    }
    
    .newsletter-cta-inner {
        padding: 2.5rem 2rem;
    }
    
    .newsletter-inline-form {
        flex-direction: column;
    }
    
    .newsletter-inline-form input,
    .newsletter-inline-form button {
        width: 100%;
    }
    
    /* Comments */
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-item.is-reply {
        margin-left: 1.5rem;
    }
    
    .comment-form-wrap {
        padding: 1.75rem;
    }
    
    /* Music badge */
    .music-badge {
        bottom: 1.25rem;
        right: 1.25rem;
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }
    
    /* Song Page */
    .song-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .song-cover-large {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .embed-player-inline {
        display: none; /* hide inline on mobile, full-width section is enough */
    }
    
    .embed-player-header {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .embed-player-header h2 {
        font-size: 1.125rem;
    }
    
    .streaming-links-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* About Page */
    .stats-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .bio-section,
    .contact-form,
    .cta-section {
        padding: 2rem;
    }
    
    /* Slideshow */
    .slideshow-wrapper {
        height: 400px;
    }
    
    .slide-nav {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .slide-nav.prev {
        left: 1rem;
    }
    
    .slide-nav.next {
        right: 1rem;
    }
    
    .slide-caption {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .slide-caption h3 {
        font-size: 1.5rem;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-tagline {
        font-size: 1rem;
    }
    
    .hero-artist-image {
        width: 180px;
        height: 180px;
    }
    
    .social-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .songs-section,
    .featured-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        gap: 1rem;
    }
    
    .title-line {
        max-width: 50px;
    }
    
    .songs-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
        gap: 1rem;
    }
    
    .song-info,
    .featured-info {
        padding: 1.25rem;
    }
    
    .share-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .share-button {
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .bio-section {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .contact-info-box {
        padding: 1.5rem;
    }
    
    .song-title {
        font-size: 1.75rem;
    }
    
    .song-lyrics,
    .song-inspiration {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .streaming-button {
        padding: 1rem 1.25rem;
    }
    
    .cta-section {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    /* Newsletter small */
    .newsletter-inner {
        padding: 1.75rem;
    }
    
    .newsletter-emoji,
    .newsletter-icon {
        font-size: 2.25rem;
    }
    
    .newsletter-cta-inner {
        padding: 2rem 1.25rem;
    }
    
    .newsletter-inline-form button,
    .newsletter-home-form button {
        font-size: 0.9375rem;
    }
    
    /* Comments small */
    .comments-heading {
        font-size: 1.5rem;
    }
    
    .comment-item.is-reply {
        margin-left: 1rem;
    }
    
    .comment-form-wrap {
        padding: 1.25rem;
    }
    
    .btn-submit-comment {
        width: 100%;
        justify-content: center;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 5.5rem;
        text-align: center;
        justify-content: center;
    }
    
    .slideshow-wrapper {
        height: 300px;
    }
    
    .slide-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .slide-nav.prev {
        left: 0.5rem;
    }
    
    .slide-nav.next {
        right: 0.5rem;
    }
    
    .slide-caption {
        padding: 1.5rem 1rem 1rem;
    }
    
    .slide-caption h3 {
        font-size: 1.25rem;
    }
    
    .slide-caption p {
        font-size: 0.875rem;
    }
    
    .dot {
        width: 0.625rem;
        height: 0.625rem;
    }
    
    .footer-social a {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    .song-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 50%);
    }
    
    .song-overlay i {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
    
    /* Make hover effects work on touch */
    .song-card:active,
    .featured-card:active {
        transform: translateY(-8px);
        box-shadow: var(--shadow-gold);
        border-color: var(--primary);
    }
    
    .btn:active {
        transform: translateY(-2px);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-nav,
    .social-links,
    .share-section,
    .back-link,
    .main-footer,
    .btn,
    .hero-animation,
    .floating-notes,
    .hero-overlay,
    .about-hero-overlay {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .song-header {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }
    
    .song-title,
    .page-header h1,
    .about-hero-text h1 {
        color: black;
        -webkit-text-fill-color: black;
    }
    
    .bio-section,
    .song-lyrics,
    .song-inspiration,
    .contact-info-box {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}

/* ===== 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;
    }
    
    .floating-notes .note {
        animation: none;
    }
    
    .pulse-ring {
        animation: none;
    }
    
    .image-glow {
        animation: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --border: #d4af37;
        --text-secondary: #f5f5f5;
        --primary: #ffd700;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .song-card,
    .featured-card,
    .contact-info-box,
    .bio-section {
        border-width: 2px;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0 2rem;
    }
    
    .hero-artist-image {
        width: 150px;
        height: 150px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .slideshow-wrapper {
        height: 60vh;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .hero-artist-image {
        width: 160px;
        height: 160px;
    }
    
    .social-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.125rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
