/* css/navigation.css - iPhone 11 optimized navigation styles */

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    height: 83px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 6px;
    min-height: 44px; /* iOS touch target minimum */
}

/* Mobile-first: No hover effects */

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff6600);
    border-radius: 0 0 2px 2px;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 3px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
    color: #ff0000;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    color: #cccccc;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    line-height: 1.2;
}

.nav-item.active .nav-label {
    color: #ffffff;
    font-weight: 600;
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
    padding: 16px;
    padding-bottom: calc(83px + env(safe-area-inset-bottom));
    min-height: calc(100vh - 83px);
    background: #000000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
}

.page-content.active {
    display: block;
}

/* ============================================
   HEADERS AND TITLES
   ============================================ */

.page-title {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: -0.022em;
    text-align: center;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    letter-spacing: -0.022em;
}

/* ============================================
   USER PROFILE SECTION
   ============================================ */

.user-profile {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #ff6600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-right: 16px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.user-details {
    flex: 1;
}

.user-name-large {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.022em;
}

.user-email {
    font-size: 15px;
    color: #cccccc;
    letter-spacing: -0.022em;
}

.premium-status {
    display: flex;
    align-items: center;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.premium-icon {
    font-size: 16px;
    margin-right: 8px;
    color: #ffd700;
}

.premium-text {
    font-size: 15px;
    color: #ffd700;
    font-weight: 600;
}

/* ============================================
   WALLET SECTION
   ============================================ */

.wallet-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wallet-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.wallet-icon {
    font-size: 20px;
    margin-right: 12px;
    color: #ff6600;
}

.wallet-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.token-balance {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid #ff6600;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.token-amount {
    font-size: 24px;
    font-weight: 700;
    color: #ff6600;
    margin-bottom: 4px;
}

.token-label {
    font-size: 14px;
    color: #cccccc;
}

.wallet-actions {
    display: flex;
    gap: 12px;
}

.wallet-action-btn {
    flex: 1;
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile-first: No hover effects */

/* ============================================
   ADMIN PANEL
   ============================================ */

.admin-panel {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.admin-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.admin-icon {
    font-size: 20px;
    margin-right: 12px;
    color: #ff0000;
}

.admin-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Mobile-first: No hover effects */

.admin-btn i {
    font-size: 16px;
}

/* ============================================
   FILM CAROUSELS
   ============================================ */

.film-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding: 0 8px;
}

.film-carousel::-webkit-scrollbar {
    display: none;
}

.film-carousel .film-grid-item {
    flex-shrink: 0;
    width: 140px;
}

.film-grid-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
}

/* Mobile-first: No hover effects */

.film-thumbnail {
    width: 100%;
    aspect-ratio: 2/3; /* 2:3 aspect ratio for better proportions */
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.film-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.film-info {
    padding: 0 4px;
}

.film-title {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-rating {
    font-size: 13px;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   GENRE PAGE STYLES
   ============================================ */

/* Override excessive spacing for genre page */
#genrePage.page-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: calc(83px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    overflow-y: auto !important;
    background: #000000 !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100vw !important;
}

/* Ensure no extra margin on genre page elements */
#genrePage .page-header {
    margin: 0;
    padding: 16px;
    padding-bottom: 0;
    background: #000000;
    flex-shrink: 0;
    border-bottom: 1px solid #333;
}

#genrePage .page-title {
    margin-bottom: 16px;
    margin-top: 0;
}

/* Add padding to genre page content */
#genrePage .genre-page-content {
    padding: 16px;
    padding-top: 0;
    flex: 1;
    overflow-y: auto;
}

/* ============================================
   GENRE GRID
   ============================================ */

.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.genre-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
}

/* Mobile-first: No hover effects */

.genre-icon {
    width: 100%;
    aspect-ratio: 2/3; /* 2:3 aspect ratio for better proportions */
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.genre-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.genre-name {
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
    line-height: 1.2;
}

/* ============================================
   ALL FILMS GRID
   ============================================ */

.all-films-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    margin-top: 10px;
}

.all-films-grid .film-grid-item {
    max-width: 140px;
    justify-self: center;
}

.all-films-grid .film-grid-item .film-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 24px; }

.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 24px; }

.p-1 { padding: 6px; }
.p-2 { padding: 12px; }
.p-3 { padding: 16px; }
.p-4 { padding: 20px; }
.p-5 { padding: 24px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* ============================================
   IPHONE 11 SPECIFIC OPTIMIZATIONS
   ============================================ */

@media (max-width: 414px) {
    .page-title {
        font-size: 24px;
    }
    
    .user-avatar-large {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .user-name-large {
        font-size: 18px;
    }
    
    .token-amount {
        font-size: 22px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    .genre-icon {
        aspect-ratio: 9/16;
    }
    
    .film-carousel .film-grid-item {
        width: 130px;
    }
    
    .film-thumbnail {
        aspect-ratio: 9/16;
    }
    
    .all-films-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .genre-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .genre-item {
        aspect-ratio: 9/16;
    }
    
    .genre-name {
        font-size: 14px;
    }
} 