/*
Theme Name: RestoBar Pro
Theme URI: https://example.com/restobar-pro
Author: Your Name
Author URI: https://example.com
Description: O temă premium modernă pentru restaurante, baruri și cafenele. Include meniu interactiv, galerie foto, rezervări și design responsive.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: restobar-pro
*/

/* === CSS Variables - Customizable via Customizer === */
:root {
    --color-primary: #d4a574;
    --color-primary-dark: #b8935f;
    --color-dark: #1a1a1a;
    --color-dark-light: #2d2d2d;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-gray: #f5f5f5;
    --color-border: #e0e0e0;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
}

/* === Layout === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--color-primary);
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

.site-header.scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

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

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
}

.scrolled .site-logo {
    color: var(--color-dark);
}

.site-logo img {
    max-height: 50px;
}

/* === Navigation === */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.scrolled .main-nav a {
    color: var(--color-text);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    margin: 5px 0;
    transition: var(--transition);
}

.scrolled .menu-toggle span {
    background: var(--color-dark);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.btn-dark {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.btn-dark:hover {
    background: var(--color-dark-light);
    color: var(--color-white);
}

/* === Features/Info Section === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.info-card h3 {
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* === Menu Section === */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.menu-item-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.05);
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.menu-item-title {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.menu-item-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.menu-item-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--color-white);
    font-size: 2rem;
}

/* === Testimonials === */
.testimonial {
    background: var(--color-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-dark);
}

/* === Reservation/Contact Form === */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* === Footer === */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-widget p,
.footer-widget li {
    color: rgba(255,255,255,0.7);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255,255,255,0.7);
}

.footer-widget a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Menu Toggle - Hidden on desktop by default */
.menu-toggle {
    display: none;
}

/* === Responsive === */
@media (max-width: 768px) {
    /* Menu Toggle Button - ALWAYS visible on mobile */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.15);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        z-index: 10001;
        position: relative;
    }
    
    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .scrolled .menu-toggle {
        background: rgba(0,0,0,0.1);
    }
    
    .scrolled .menu-toggle span {
        background: var(--color-dark);
    }
    
    /* Mobile Navigation Panel - COMPLETELY HIDDEN by default */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
        padding: 80px 24px 24px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
    }
    
    .main-nav.active {
        right: 0;
        opacity: 1;
        visibility: visible;
        box-shadow: -8px 0 32px rgba(0,0,0,0.4);
    }
    
    /* Close button inside menu */
    .main-nav::before {
        content: '×';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 32px;
        color: white;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .main-nav a {
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 500;
        padding: 16px 0;
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .main-nav a::before {
        content: '›';
        color: var(--color-primary);
        font-size: 1.2rem;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.2s ease;
    }
    
    .main-nav a:hover {
        color: var(--color-primary);
        padding-left: 8px;
    }
    
    .main-nav a:hover::before {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Menu Header */
    .mobile-menu-header {
        padding: 0 0 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-menu-header h3 {
        color: white;
        font-size: 1.25rem;
        margin: 0;
    }
    
    .mobile-menu-header p {
        color: rgba(255,255,255,0.6);
        font-size: 0.875rem;
        margin: 4px 0 0;
    }
    
    /* Mobile Menu Contact Section */
    .mobile-menu-contact {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-menu-phone {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #ffffff !important;
        padding: 12px 0;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .mobile-menu-phone i {
        color: var(--color-primary);
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
    
    .mobile-menu-phone span {
        color: #ffffff !important;
    }
    
    .mobile-menu-hours {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        color: rgba(255,255,255,0.8) !important;
        padding: 12px 0;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .mobile-menu-hours i {
        color: var(--color-primary);
        margin-top: 3px;
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }
    
    .mobile-menu-hours span {
        color: rgba(255,255,255,0.8) !important;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.bg-gray { background-color: var(--color-gray); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* === Print Styles === */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}

/* =============================================================================
   SISTEM DE FIDELIZARE - PAGINI CONT SI RECOMPENSE
   ============================================================================= */

/* === Auth Pages (Login/Register) === */
.auth-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.auth-wrapper-center {
    display: flex;
    justify-content: center;
}

.auth-form-narrow {
    max-width: 450px;
    width: 100%;
}

.auth-form-container {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
}

.input-with-icon .form-control {
    padding-left: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

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

.forgot-password {
    font-size: 0.9rem;
    color: var(--color-primary);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.auth-error, .auth-success {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-error {
    background: #fee2e2;
    color: #dc2626;
}

.auth-success {
    background: #d1fae5;
    color: #059669;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}

.auth-divider span {
    background: var(--color-white);
    padding: 0 1rem;
    position: relative;
    color: var(--color-text-light);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 500;
}

/* === Benefits Sidebar === */
.auth-benefits {
    color: var(--color-white);
}

.benefits-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefits-card h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benefits-list i {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.benefits-list strong {
    display: block;
    color: var(--color-white);
}

.benefits-list span {
    font-size: 0.875rem;
    opacity: 0.8;
}

.member-tiers h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.tier {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.tier-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.tier-icon.bronze { background: #cd7f32; }
.tier-icon.silver { background: #c0c0c0; }
.tier-icon.gold { background: #ffd700; color: var(--color-dark); }
.tier-icon.platinum { background: #e5e4e2; color: var(--color-dark); }

.tier-name {
    flex: 1;
    font-weight: 500;
}

.tier-points {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* === Account Dashboard === */
.account-section {
    padding: 100px 0 60px;
    background: var(--color-gray);
    min-height: 100vh;
}

.account-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.account-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.user-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    text-align: center;
}

.user-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.user-avatar .avatar-img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    font-size: 0.75rem;
}

.status-badge.bronze { background: #cd7f32; color: white; }
.status-badge.silver { background: #c0c0c0; color: white; }
.status-badge.gold { background: #ffd700; color: var(--color-dark); }
.status-badge.platinum { background: #e5e4e2; color: var(--color-dark); }

.user-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.user-status {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.user-points-preview {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.points-circle {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.points-number {
    font-size: 1.75rem;
    font-weight: 700;
}

.points-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-nav {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--color-text);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.account-nav-link:hover,
.account-nav-link.active {
    background: var(--color-gray);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.account-nav-link.logout {
    color: #dc2626;
}

.account-nav-link.logout:hover {
    background: #fee2e2;
    border-left-color: #dc2626;
}

.account-nav-link i {
    width: 20px;
    text-align: center;
}

/* === Account Content === */
.account-content {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.account-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-gray);
    border-radius: var(--border-radius);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* === Member Progress === */
.member-progress-section {
    background: var(--color-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.member-progress-section h3 {
    margin-bottom: 1rem;
}

.progress-bar-container {
    height: 12px;
    background: var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.progress-text-success {
    color: #059669;
}

/* === Quick Actions === */
.quick-actions h3 {
    margin-bottom: 1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--color-gray);
    border-radius: var(--border-radius);
    color: var(--color-text);
    transition: var(--transition);
    text-align: center;
}

.action-card:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.action-card i {
    font-size: 1.5rem;
}

.action-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* === Activity List === */
.recent-activity h3 {
    margin-bottom: 1rem;
}

.activity-list {
    margin-bottom: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-icon.earned {
    background: #10b981;
}

.activity-icon.spent {
    background: #ef4444;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.activity-points {
    font-weight: 700;
    font-size: 1.125rem;
}

.activity-points.positive {
    color: #10b981;
}

.activity-points.negative {
    color: #ef4444;
}

.view-all {
    color: var(--color-primary);
    font-weight: 500;
}

/* === History Table === */
.history-table-wrapper {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.history-table th {
    font-weight: 600;
    color: var(--color-dark);
    background: var(--color-gray);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.earned {
    background: #d1fae5;
    color: #065f46;
}

.badge.spent {
    background: #fee2e2;
    color: #991b1b;
}

.points.earned {
    color: #10b981;
    font-weight: 700;
}

.points.spent {
    color: #ef4444;
    font-weight: 700;
}

/* === Profile Form === */
.profile-form {
    max-width: 500px;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.profile-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.profile-form .form-control:disabled {
    background: var(--color-gray);
    cursor: not-allowed;
}

.profile-form small {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

/* === Rewards Page === */
.rewards-section {
    padding: 100px 0 60px;
    background: var(--color-gray);
    min-height: 100vh;
}

.rewards-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rewards-title {
    font-size: 2.5rem;
}

.rewards-title span {
    color: var(--color-primary);
}

.rewards-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.user-rewards-summary {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    min-width: 200px;
}

.summary-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
}

.summary-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* === Rewards Grid === */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.reward-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reward-card.locked {
    opacity: 0.7;
}

.reward-card.locked::before {
    content: '\f023';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-text-light);
}

.reward-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.reward-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reward-description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.reward-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.reward-form {
    margin-top: auto;
}

/* === Rewards Info === */
.rewards-info {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.rewards-info h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.info-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-step h4 {
    margin-bottom: 0.5rem;
}

.info-step p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* === Header User Widget === */
.header-user-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.scrolled .header-user-widget {
    border-left-color: var(--color-border);
}

.user-points-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 165, 116, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--color-primary);
    font-weight: 600;
}

.scrolled .user-points-badge {
    background: var(--color-primary);
    color: white;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-weight: 500;
}

.scrolled .user-menu-toggle {
    color: var(--color-dark);
}

.user-menu-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

/* Show dropdown on hover (desktop) */
.user-menu:hover .user-dropdown,
/* Show dropdown when active class is present (click) */
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Active state for user menu */
.user-menu.active .user-menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Chevron icon transition */
.user-menu-toggle i {
    transition: transform 0.3s ease;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--color-gray);
    color: var(--color-primary);
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
}

/* === Responsive === */
@media (max-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    
    .auth-benefits {
        order: -1;
    }
    
    .account-wrapper {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .user-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    
    .user-points-preview {
        border-top: none;
        border-left: 1px solid var(--color-border);
        padding-top: 0;
        padding-left: 1rem;
        margin-left: auto;
    }
    
    .points-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 0.5rem;
    }
    
    .points-number {
        font-size: 1.25rem;
    }
    
    .account-nav {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
    }
    
    .account-nav-link {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .account-nav-link:hover,
    .account-nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--color-primary);
    }
    
    .header-user-widget {
        display: none;
    }
}

/* Mobile Header Layout - Ensure menu toggle is always visible */
@media (max-width: 768px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .site-logo {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Ensure menu toggle is always visible and clickable */
    .menu-toggle {
        flex-shrink: 0;
        order: 3;
    }
}

@media (max-width: 768px) {
    .auth-form-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row-between {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .user-rewards-summary {
        flex-direction: column;
    }
    
    .summary-card {
        width: 100%;
    }
}

/* =============================================================================
   PWA - PROGRESSIVE WEB APP STYLES
   ============================================================================= */

/* Safe area for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .site-header {
        padding-top: env(safe-area-inset-top);
    }
    
    .pwa-standalone .site-header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

/* PWA Standalone Mode - Full app experience */
.pwa-standalone {
    /* Prevent pull-to-refresh and overscroll effects */
    overscroll-behavior-y: none;
}

.pwa-standalone .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.pwa-standalone body {
    padding-top: 70px;
}

/* Mobile App Navigation - Bottom Tab Bar (visible on all mobile devices) */
.pwa-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--color-border);
    z-index: 9998;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Show on all mobile devices */
@media (max-width: 768px) {
    .pwa-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Hide regular footer on mobile to save space */
    .site-footer {
        padding-bottom: 80px;
    }
}

/* Also show in PWA standalone mode */
.pwa-standalone .pwa-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}

.pwa-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--color-text-light);
    font-size: 0.75rem;
    transition: var(--transition);
}

.pwa-bottom-nav a i {
    font-size: 1.25rem;
}

.pwa-bottom-nav a.active,
.pwa-bottom-nav a:hover {
    color: var(--color-primary);
}

/* Hide regular footer in PWA mode to save space */
.pwa-standalone .site-footer {
    padding-bottom: 80px;
}

/* Add to Home Screen Button */
.add-to-home-btn {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */
    .site-header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection on UI elements */
    .btn,
    .user-menu-toggle,
    .menu-toggle {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Larger touch targets */
    .main-nav a,
    .user-dropdown a,
    .account-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Hide scrollbar but keep functionality */
    body::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Splash screen styles */
.pwa-splash {
    position: fixed;
    inset: 0;
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.pwa-splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.pwa-splash-logo {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.pwa-splash-text {
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* =============================================================================
   HOMEPAGE EVENTS SECTION
   ============================================================================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-points {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #00a32a 0%, #00d336 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.event-title a {
    color: var(--color-dark);
}

.event-title a:hover {
    color: var(--color-primary);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.event-excerpt {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
