/* Custom CSS to match DessertPoint design exactly with Bootstrap integration */

/* Root Variables */
:root {
    --primary-color: #8B4513;
    --primary-hover: #A0522D;
    --secondary-color: #CD853F;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow-light: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.12);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F2A65A 0%, #A0522D 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(160,82,45,0.35);
}

.logo-icon i {
    font-size: 1.1rem;
}

.logo-wordmark {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.logo-wordmark span {
    color: #F2A65A;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(90, 46, 14, 0.9) 0%, rgba(160, 82, 45, 0.85) 50%, rgba(242, 166, 90, 0.85) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="dessert-pattern" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="3" fill="%23ffffff" opacity="0.1"/><circle cx="150" cy="150" r="2" fill="%23ffffff" opacity="0.08"/><circle cx="100" cy="30" r="1.5" fill="%23ffffff" opacity="0.12"/><circle cx="30" cy="120" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="170" cy="80" r="1" fill="%23ffffff" opacity="0.08"/><path d="M25 25 L175 25 L175 175 L25 175 Z" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.05"/><path d="M75 75 L125 75 L125 125 L75 125 Z" fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.08"/></pattern></defs><rect width="1200" height="800" fill="url(%23dessert-pattern)"/></svg>');
    background-size: cover, 200px 200px;
    background-position: center, 0 0;
    background-attachment: fixed, scroll;
    color: var(--white);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 1;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    z-index: 2;
}

/* Floating dessert icons */
.hero .floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

/* Floating cake photos (background decorations) */
.hero .floating-photo {
    position: absolute;
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    opacity: 0.16;
    transform: rotate(-6deg);
    animation: float 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
.hero .floating-photo.photo-1 { top: 12%; left: 6%; animation-delay: 0s; }
.hero .floating-photo.photo-2 { bottom: 10%; right: 8%; transform: rotate(5deg); animation-delay: 2s; }
.hero .floating-photo.photo-3 { top: 28%; right: 20%; transform: rotate(-3deg); animation-delay: 4s; }
.hero .floating-photo.photo-4 { bottom: 25%; left: 18%; transform: rotate(8deg); animation-delay: 1s; }

@media (max-width: 1200px) {
    .hero .floating-photo { width: 260px; height: 260px; }
}

@media (max-width: 992px) {
    .hero .floating-photo { width: 200px; height: 200px; opacity: 0.14; }
}

@media (max-width: 576px) {
    .hero .floating-photo { width: 150px; height: 150px; opacity: 0.12; }
}

.hero .floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero .floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.hero .floating-icon:nth-child(3) {
    top: 30%;
    right: 25%;
    animation-delay: 4s;
}

.hero .floating-icon:nth-child(4) {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

.hero .floating-icon:nth-child(5) {
    top: 70%;
    left: 5%;
    animation-delay: 3s;
}

.hero .floating-icon:nth-child(6) {
    top: 15%;
    right: 5%;
    animation-delay: 5s;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 400;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-btn {
    position: relative;
    z-index: 3;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 30px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Categories Section */
.categories {
    background-color: var(--bg-light);
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Recipe Cards */
.recipe-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    margin-bottom: 2rem;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.recipe-image {
    position: relative;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.recipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.recipe-card:hover .recipe-overlay {
    opacity: 1;
}

.recipe-card .card-body {
    padding: 2rem;
}

.recipe-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.recipe-card .card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.recipe-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(139, 69, 19, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.meta-item i {
    font-size: 0.8rem;
}

.recipe-card .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
}

.recipe-card .btn:hover {
    transform: translateY(-2px);
}

/* Featured Recipes Section */
.featured-recipes {
    padding: 100px 0;
    background-color: #fff;
}

.featured-recipes h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: #333;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.feature-card {
    padding: 2rem 1rem;
}

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

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.stat-card {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Contact Section */
.contact-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contact-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-card .card-text {
    color: var(--text-light);
    line-height: 1.8;
}

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

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
}
.newsletter .title {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}
.newsletter .subtitle {
    opacity: 0.95;
    margin-bottom: 1.25rem;
}
.newsletter .form-control {
    border-radius: 30px;
    padding: 0.8rem 1.1rem;
    border: none;
}
.newsletter .btn {
    border-radius: 30px;
    padding: 0.8rem 1.4rem;
    font-weight: 700;
}
.newsletter .consent {
    font-size: 0.9rem;
    opacity: 0.9;
}
.newsletter .consent a {
    color: #ffd7b0;
    text-decoration: underline;
}

.footer-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .recipe-card .card-body {
        padding: 1.5rem;
    }
    
    .recipe-meta {
        gap: 1rem;
        justify-content: center;
    }
    
    .meta-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .recipe-card .card-body {
        padding: 1rem;
    }
    
    .recipe-card .card-title {
        font-size: 1.2rem;
    }
    
    .recipe-card .card-text {
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.recipe-image img {
    transition: opacity 0.3s ease;
}

.recipe-image img[src=""] {
    opacity: 0;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* GDPR Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-text {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.cookie-buttons {
    text-align: right;
}

.cookie-banner .btn {
    border-radius: 20px;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

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

.cookie-banner .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.cookie-banner .btn-outline-light {
    border-color: #ccc;
    color: #ccc;
}

.cookie-banner .btn-outline-light:hover {
    background-color: #ccc;
    color: #2c2c2c;
}

/* Responsive cookie banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        text-align: center;
    }
    
    .cookie-banner .btn {
        margin: 0.25rem;
        display: inline-block;
    }
}

/* Cookie Alert Messages */
.cookie-alert {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 10px;
}

.cookie-alert .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.7;
}

.cookie-alert .btn-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .cookie-alert {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
