/* Custom CSS for Golden Fork Restaurant - Enhanced Stylish Version */

:root {
    --gold-primary: #D4AF37;
    --gold-light: #F5E07A;
    --gold-dark: #B8860B;
    --gold-accent: #FFD700;
    --charcoal-primary: #2C2C2C;
    --charcoal-light: #434343;
    --charcoal-dark: #1A1A1A;
    --cream-primary: #F8F6F0;
    --cream-light: #FEFEFE;
    --cream-dark: #F0EDE5;
    --text-light-gray: #CCCCCC;
    --text-medium-gray: #999999;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    --gradient-gold: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    --gradient-charcoal: linear-gradient(135deg, var(--charcoal-primary), var(--charcoal-light));
}

/* Typography Enhancements */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--charcoal-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.font-serif {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Enhanced Color Classes */
.bg-gold { background: var(--gradient-gold) !important; }
.bg-gold-solid { background-color: var(--gold-primary) !important; }
.bg-cream { background-color: var(--cream-primary) !important; }
.bg-cream-dark { background-color: var(--cream-dark) !important; }
.bg-charcoal { background: var(--gradient-charcoal) !important; }
.text-gold { color: var(--gold-primary) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-light-gray { color: var(--text-light-gray) !important; }
.text-medium-gray { color: var(--text-medium-gray) !important; }

/* Enhanced Button Styles */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    padding: 14px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-gold {
    background: var(--gradient-gold);
    border: none;
    color: var(--charcoal-primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    color: var(--charcoal-primary);
}

.btn-outline-gold {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-gold:hover {
    background: var(--gradient-gold);
    color: var(--charcoal-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.75rem;
}

/* Enhanced Header Styles */
.top-bar {
    background: var(--gradient-charcoal);
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.main-header {
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px var(--shadow-light);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo-circle {
    width: 55px;
    height: 55px;
    background: var(--gradient-gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--charcoal-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--charcoal-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.brand-tagline {
    color: var(--text-medium-gray);
    font-size: 0.75rem;
    margin-top: -3px;
    font-style: italic;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 1rem 1.25rem !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 25px;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-primary) !important;
    background: rgba(212, 175, 55, 0.1);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Enhanced Hero Section */
.hero-section {
    background: var(--gradient-charcoal);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
    filter: sepia(20%) saturate(1.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card-hover {
    box-shadow: 0 10px 40px var(--shadow-light);
}

.card-hover:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px var(--shadow-medium);
}

.card-body {
    padding: 2rem;
}

.card-header {
    background: rgba(248, 246, 240, 0.8);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1.5rem 2rem;
}

/* Enhanced Feature Icons */
.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-gold);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-icon:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.4);
}

.feature-icon:hover::before {
    opacity: 0.3;
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--charcoal-primary);
    transition: transform 0.3s ease;
}

.feature-icon:hover i {
    transform: scale(1.1);
}

/* Enhanced Menu Items */
.menu-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.menu-item img {
    height: 220px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: saturate(1.1);
}

.menu-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.3) brightness(1.1);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-gold);
    color: var(--charcoal-primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 60px var(--shadow-medium);
}

.gallery-item img {
    transition: all 0.4s ease;
    filter: saturate(1.1);
}

.gallery-item:hover img {
    transform: scale(1.15);
    filter: saturate(1.3) brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

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

.gallery-overlay i {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Enhanced Forms */
.form-control, .form-select {
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.15);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--charcoal-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-control-lg, .form-select-lg {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 18px;
}

/* Enhanced Footer */
footer {
    background: var(--gradient-charcoal) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
}

.footer-link {
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: var(--gold-primary) !important;
    transform: translateX(5px);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.social-link:hover {
    background: var(--gradient-gold);
    color: var(--charcoal-primary) !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Enhanced Admin Panel */
.admin-sidebar {
    background: var(--gradient-charcoal);
    min-height: 100vh;
    box-shadow: 4px 0 20px var(--shadow-light);
}

.admin-nav-link {
    color: var(--text-light-gray);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 0.25rem 0;
    border-radius: 0 25px 25px 0;
    position: relative;
    overflow: hidden;
}

.admin-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s;
}

.admin-nav-link:hover::before {
    left: 100%;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    border-left-color: var(--gold-primary);
    transform: translateX(5px);
}

.admin-nav-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up-delay {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* Enhanced Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Rating Input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.star-label {
    color: #ddd;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.rating-input input[type="radio"]:checked ~ .star-label,
.rating-input input[type="radio"]:hover ~ .star-label,
.star-label:hover {
    color: var(--gold-primary);
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

/* Enhanced Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

/* Enhanced Utility Classes */
.text-shadow {
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.text-shadow-light {
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.border-gold {
    border-color: var(--gold-primary) !important;
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

.bg-overlay > * {
    position: relative;
    z-index: 2;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
    
    .feature-icon {
        width: 75px;
        height: 75px;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.8rem;
    }
    
    .form-control, .form-select {
        padding: 0.875rem 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Enhanced Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Focus States */
*:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Enhanced Selection */
::selection {
    background: var(--gold-primary);
    color: var(--charcoal-primary);
}

::-moz-selection {
    background: var(--gold-primary);
    color: var(--charcoal-primary);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Performance Optimizations */
.card-hover,
.menu-item,
.gallery-item,
.feature-icon,
.btn {
    will-change: transform;
}

/* Print Styles */
@media print {
    .btn, .navbar, .admin-sidebar, footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}