/* =========================================
   PAGES.CSS - Page-Specific Styles
   ========================================= */

/* =========================================
   1. Shared Hero Components
   ========================================= */
.hero,
.page-hero,
.about-hero,
.auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero,
.about-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
}

@keyframes heroShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes floatDecor {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.page-hero-overlay,
.about-hero-overlay,
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="80" r="1" fill="rgba(255,255,255,0.04)"/></svg>');
    background-size: 50px 50px;
}

.page-hero::after,
.about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: heroShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

.page-hero-content::before,
.about-hero-content::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -40px;
    right: -60px;
    animation: floatDecor 6s ease-in-out infinite;
}

.page-hero-content::after,
.about-hero-content::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    bottom: -30px;
    left: -40px;
    animation: floatDecor 8s ease-in-out infinite reverse;
}

.page-hero-content,
.about-hero-content,
.auth-brand-content,
.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.page-hero h1,
.about-hero h1,
.auth-brand h2,
.hero-title {
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 700;
}

/* =========================================
   2. Home Page
   ========================================= */
.hero {
    background: linear-gradient(135deg, rgba(44,62,80,0.85), rgba(44,62,80,0.7)), url('../images/hero_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    min-height: 85vh;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--color-off-white), transparent);
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        background-attachment: scroll;
    }
    .hero-title { font-size: 2.5rem; }
}

.cta-section {
    background: linear-gradient(-45deg, var(--color-secondary), var(--color-secondary-light), var(--color-primary-dark), var(--color-secondary));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-full);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-full);
}

.bg-gray-light { background-color: #f5f5f5; }

/* =========================================
   3. Internal Page Hero
   ========================================= */
.page-hero {
    min-height: 35vh;
}

.page-hero-content {
    padding: 50px 20px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .page-hero { min-height: 30vh; }
    .page-hero h1 { font-size: 2.25rem; }
}

/* =========================================
   4. About Page
   ========================================= */
.about-hero {
    min-height: 50vh;
}

.about-hero-content {
    padding: 60px 20px;
}

.about-hero h1 {
    font-size: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-grid.reverse { direction: rtl; }
.about-grid.reverse > * { direction: ltr; }

.about-image img {
    width: 100%;
    height: auto;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--color-cream);
    transition: var(--transition-normal);
    flex: 1;
}

.stat:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-section { background: var(--color-cream); }

.mission-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.value-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.value-item h4 { margin-bottom: 8px; }
.value-item p { margin-bottom: 0; font-size: 0.9rem; }

.chef-name {
    color: var(--color-primary);
    margin-bottom: 4px;
}

.chef-title {
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.chef-quote {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--color-cream);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .about-hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-grid.reverse { direction: ltr; }
    .about-stats { flex-wrap: wrap; justify-content: center; }
    .mission-values { grid-template-columns: 1fr; }
}

/* =========================================
   5. Auth Pages
   ========================================= */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 60px);
}

.auth-brand {
    background: linear-gradient(135deg, rgba(107, 68, 35, 0.9) 0%, rgba(28, 40, 51, 0.95) 100%),
                url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=800&q=80') center/cover no-repeat;
    padding: 60px;
}

.auth-brand::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 40% 60% 70% 30% / 40% 30% 60% 50%;
    bottom: 10%;
    right: 10%;
    animation: floatDecor 10s ease-in-out infinite;
}

.auth-brand-content { max-width: 400px; }
.auth-brand h2 { font-size: 2.5rem; }

.auth-brand p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-feature {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: var(--color-white);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-form-wrapper h1 { margin-bottom: 8px; }

.auth-subtitle {
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--color-text-light);
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 600;
}

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

@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { padding: 40px 20px; min-height: 0; }
    .auth-brand h2 { font-size: 2rem; }
    .auth-form-panel { padding: 40px 20px; }
}

/* =========================================
   6. Feedback Page
   ========================================= */
.feedback-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.reviews-section { background: var(--color-cream); }

.review-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 4px solid var(--color-primary);
    transition: var(--transition-normal);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.review-stars {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.review-name {
    font-weight: 600;
    color: var(--color-secondary);
}

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

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

.testimonial-card {
    background: var(--color-off-white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-secondary);
}

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

.stars {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* =========================================
   7. Contact Page
   ========================================= */
.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.contact-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-card p { margin-bottom: 0; font-size: 0.9rem; }

@media (max-width: 600px) {
    .contact-cards { grid-template-columns: 1fr; }
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-iframe {
    width: 100%;
    height: 300px;
    border: none;
    pointer-events: auto;
}

/* =========================================
   8. Menu Page - Search
   ========================================= */
.menu-search {
    background: var(--color-cream);
    padding: 40px 0;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 4px 16px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.15);
}

.search-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-text-light);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.search-box:focus-within .search-icon {
    fill: var(--color-primary);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-main);
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-light);
}

.search-clear {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-border);
    color: var(--color-text-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: var(--transition-fast);
}

.search-clear:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.search-clear.hidden {
    display: none;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-main);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

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

@media (max-width: 600px) {
    .menu-search {
        padding: 30px 0;
    }
    
    .search-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
