/* Custom Styles for Premium Food Gallery Site */

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FAF8F5;
    color: #1C1C1C;
}

/* Navigation Styles */
nav a {
    transition: all 0.3s ease;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 1px solid #E8E3DD;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 42, 37, 0.15);
}

/* Category Bars */
.category-bar {
    height: 4px;
    background: linear-gradient(90deg, #C8A45D, #5A4A42, #C8A45D);
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background-color: #2E2A25;
    border-color: #2E2A25;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5A4A42;
    border-color: #5A4A42;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 42, 37, 0.3);
}

.btn-secondary {
    background-color: #C8A45D;
    border-color: #C8A45D;
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #B89552;
    border-color: #B89552;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 164, 93, 0.3);
}

.btn-accent {
    background-color: #C8A45D;
    border-color: #C8A45D;
    color: #2E2A25;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #B89552;
    border-color: #B89552;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 164, 93, 0.4);
}

/* Form Styles */
.form-input {
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* Hero Section */
.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 80vh;
    min-height: 600px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 42, 37, 0.2), rgba(90, 74, 66, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #C8A45D;
    border-color: #C8A45D;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 42, 37, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: #C8A45D;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

/* Image Gallery */
.image-gallery img {
    transition: transform 0.3s ease;
}

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

/* Testimonials */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff, #FAF8F5);
    border: 1px solid #E8E3DD;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(46, 42, 37, 0.15);
}

/* Stats Counter */
.stats-counter {
    background: linear-gradient(135deg, #2E2A25, #5A4A42);
    color: white;
}

.stats-counter .number {
    font-size: 3rem;
    font-weight: 700;
    color: #C8A45D;
    margin-bottom: 0.5rem;
}

/* Featured Products Section */
.featured-products {
    background: linear-gradient(135deg, #FAF8F5 0%, #F5F2ED 100%);
}

.product-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.product-showcase:hover {
    transform: scale(1.02);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(46, 42, 37, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-showcase:hover .product-overlay {
    opacity: 10;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #2E2A25, #5A4A42);
    color: white;
}

/* Services Section */
.service-card {
    background: white;
    border: 1px solid #E8E3DD;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 42, 37, 0.15);
    border-color: #C8A45D;
}

/* Quality Section */
.quality-section {
    background: linear-gradient(135deg, #FAF8F5 0%, #F0EDE6 100%);
}

/* CTA Section (Inverted Colors) */
.cta-section {
    background: white;
    color: #1C1C1C;
    border-top: 1px solid #E8E3DD;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 136, 229, 0.3);
    border-radius: 50%;
    border-top-color: #1e88e5;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design Helpers */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Admin Styles */
.admin-sidebar {
    background: linear-gradient(180deg, #1e88e5, #1565c0);
    min-height: 100vh;
}

.admin-nav-link {
    transition: all 0.3s ease;
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Modal Styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background-color: #10b981;
}

.notification-error {
    background-color: #ef4444;
}

.notification-info {
    background-color: #1e88e5;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* About Page Specific Styles */

/* Timeline Animations */
.timeline-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.reverse {
    transform: translateX(50px);
}

.timeline-item.reverse.active {
    transform: translateX(0);
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Card Hover Effects */
.about-card {
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 93, 0.1), transparent);
    transition: left 0.5s;
}

.about-card:hover::before {
    left: 100%;
}

/* Team Card Hover Effects */
.team-card {
    position: relative;
    overflow: hidden;
}

.team-card .social-links {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .social-links {
    transform: translateY(0);
    opacity: 1;
}

/* Interactive CTA Buttons */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Pulse Animation */
.pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utility Classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-soft {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
.footer-food-icons {
    animation: float 4s ease-in-out infinite;
}

.footer-newsletter input:focus {
    box-shadow: 0 0 0 2px rgba(200, 164, 93, 0.3);
}

.footer-newsletter button:hover {
    background-color: #B89552;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-5px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* Enhanced Back to Top Button */
#back-to-top {
    background: linear-gradient(135deg, #C8A45D, #B89552);
    box-shadow: 0 8px 25px rgba(200, 164, 93, 0.3);
}

#back-to-top:hover {
    background: linear-gradient(135deg, #B89552, #A78545);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 35px rgba(200, 164, 93, 0.4);
}

/* Footer Link Animations */
.footer-link {
    position: relative;
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #C8A45D;
    transition: width 0.3s ease;
}

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

/* Newsletter Input Focus */
.footer-newsletter input:focus {
    box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.2);
}

/* Social Media Icons */
.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    transform: translateY(-3px) rotate(5deg);
}

/* Quill.js Editor Styles */
.ql-editor {
    font-size: 16px;
    line-height: 1.6;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.ql-editor h1 { font-size: 2em; }
.ql-editor h2 { font-size: 1.5em; }
.ql-editor h3 { font-size: 1.25em; }

.ql-editor p {
    margin-bottom: 1em;
}

.ql-editor blockquote {
    border-left: 4px solid #ccc;
    padding-left: 16px;
    margin: 1.5em 0;
    font-style: italic;
    color: #666;
}

.ql-editor pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.ql-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.ql-editor table td, .ql-editor table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.ql-editor table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
}

.ql-editor a {
    color: #1e88e5;
    text-decoration: underline;
}

.ql-editor a:hover {
    color: #1565c0;
}

.ql-editor ul, .ql-editor ol {
    padding-left: 2em;
    margin: 1em 0;
}

.ql-editor li {
    margin-bottom: 0.5em;
}

/* Responsive tables */
@media (max-width: 768px) {
    .ql-editor table {
        font-size: 14px;
    }

    .ql-editor table td, .ql-editor table th {
        padding: 6px 8px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .page-break {
        page-break-before: always;
    }
}
