/* TOM KRAY - Mobile Responsive (Perfect) */

@media (max-width: 968px) {
    /* Base */
    * {
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Header Mobile */
    .header {
        padding: 15px 20px;
        flex-wrap: nowrap;
    }
    
    .header-left {
        flex: 0 0 auto;
    }
    
    .logo-image {
        height: 45px;
        width: auto;
    }
    
    /* Hide desktop nav */
    .header-center {
        display: none !important;
    }
    
    /* Mobile menu button */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
        padding: 5px 10px;
        margin-right: auto;
        order: -1;
    }
    
    /* Header right - compact */
    .header-right {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    .header-auth {
        display: flex !important;
        gap: 8px;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .btn-cart {
        padding: 8px;
    }
    
    .btn-connect-wallet,
    .btn-login {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .header-user-info {
        display: flex;
        gap: 8px;
        align-items: center;
        font-size: 12px;
    }
    
    .header-user-rank {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .header-user-name {
        display: none; /* Hide on small screens */
    }
    
    .header-user-avatar,
    .header-user-avatar img,
    .header-user-avatar div {
        width: 28px !important;
        height: 28px !important;
    }
    
    .btn-logout {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    /* Mobile Menu Sidebar */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #000;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }
    
    .mobile-menu.show,
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 32px;
        cursor: pointer;
    }
    
    .mobile-menu .nav-link {
        display: block;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Slider Mobile */
    .slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-content {
        padding: 40px 20px;
    }
    
    .slide-title {
        font-size: 48px;
        letter-spacing: 8px;
    }
    
    .slide-subtitle {
        font-size: 14px;
        letter-spacing: 3px;
    }
    
    /* Controls Mobile */
    .controls {
        bottom: 30px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
    }
    
    .pagination {
        font-size: 14px;
    }
    
    .dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    /* Sections Mobile */
    .page-section {
        padding: 80px 20px;
    }
    
    .section-title {
        font-size: 48px;
        letter-spacing: 8px;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }
    
    /* Membership Cards Mobile */
    .membership-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .membership-card {
        max-width: 100%;
    }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .gallery-item.large {
        height: 400px;
    }
    
    .gallery-item.tall {
        height: 500px;
    }
    
    /* Tour Mobile */
    .tour-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calendar-wrapper {
        padding: 20px;
    }
    
    .event-details {
        min-height: 400px;
    }
    
    #tour-map {
        height: 250px !important;
    }
    
    /* Shop Mobile */
    .shop-filter-tabs {
        overflow-x: auto;
        gap: 10px;
        padding: 10px 20px;
    }
    
    .filter-tab {
        font-size: 12px;
        padding: 8px 16px;
        white-space: nowrap;
    }
    
    #products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    /* Profile Mobile */
    .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 20px;
    }
    
    .avatar-large {
        width: 100px;
        height: 100px;
    }
    
    /* Club Mobile */
    .proposals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    /* Forms Mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons Mobile */
    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    /* Modals Mobile */
    .modal-content {
        width: 90%;
        max-width: 400px;
        padding: 30px 20px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    /* Cart Sidebar Mobile */
    .cart-sidebar {
        width: 90%;
        max-width: 350px;
    }
    
    /* Music Player Mobile */
    .music-player {
        padding: 10px 15px;
    }
    
    .music-player-container {
        gap: 10px;
        font-size: 12px;
    }
    
    .music-player-thumbnail {
        width: 45px;
        height: 45px;
    }
    
    .music-player-title {
        font-size: 13px;
    }
    
    .music-player-artist {
        font-size: 11px;
    }
    
    .music-player-btn {
        padding: 6px;
    }
    
    .music-player-toggle {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .music-player.show + .music-player-toggle {
        bottom: 90px;
    }
    
    /* Hide volume on mobile */
    .music-player-volume {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .section-title {
        font-size: 36px;
        letter-spacing: 6px;
    }
    
    .slide-title {
        font-size: 36px;
        letter-spacing: 6px;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .mobile-menu {
        width: 250px;
    }
}

/* Safari iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari fixes */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix viewport on iOS */
    .header {
        position: -webkit-sticky;
        position: sticky;
    }
    
    /* Fix video autoplay on iOS */
    video {
        -webkit-playsinline: true;
        playsinline: true;
    }
    
    /* Fix input zoom on iOS */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Wallet Modal Mobile */
@media (max-width: 768px) {
    .wallet-modal-content {
        width: 90%;
        max-width: 350px;
        padding: 25px 20px;
    }
    
    .wallet-modal-header h3 {
        font-size: 18px;
    }
    
    .wallet-option {
        padding: 15px;
    }
    
    .wallet-icon {
        width: 35px;
        height: 35px;
    }
    
    .wallet-name {
        font-size: 14px;
    }
    
    .wallet-tag {
        font-size: 10px;
    }
}
