@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Renk Paleti (Gastronomy - Premium/Earth Tones) */
    --bg-primary: #FAFAF9;
    /* Stone 50 */
    --bg-secondary: #ffffff;
    --bg-dark: #1C1917;

    --text-primary: #1C1917;
    /* Stone 900 */
    --text-secondary: #57534E;
    /* Stone 600 */
    --text-light: #F5F5F4;

    --accent-color: #5e8556;
    /* Revised Sage Green */
    --accent-hover: #4b6b45;
    --gold-color: #D4AF37;
    /* Premium Gold */

    /* Fontlar */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1400px;
    /* Wider for gallery feel */
    --header-height: 90px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    /* -webkit-font-smoothing: antialiased; */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    min-height: calc(100vh - 300px);
}

/* --- Header Styles --- */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    z-index: 1001;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--accent-color);
}

.social-links-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 1.75rem;
    height: 1.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    width: 1.75rem;
    height: 0.2rem;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.auth-link-wrapper {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.auth-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--accent-color);
}


/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .hamburger.open .bar:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger.open .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger.open .bar:nth-child(3) {
        transform: rotate(-45deg);
    }

    .auth-link-wrapper {
        margin: 0;
        padding: 0;
        border: none;
        margin-top: 1rem;
    }

    .social-links-mobile {
        /* Mobile only styles already applied via layout */
    }
}

@media (min-width: 769px) {
    .social-links-mobile {
        display: none;
    }
}


/* --- Footer Styles --- */
.footer {
    padding: 1.5rem 0;
    background-color: var(--accent-color);
    color: #fff;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* --- Recipe Card Styles --- */
.recipe-card {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    /* 3:2 Aspect Ratio */
    background-color: #f0f0f0;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-card:hover .card-image {
    transform: scale(1.08);
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 2px;
}

.recipe-card:hover .play-icon-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--accent-color);
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #888;
    font-family: var(--font-body);
    font-weight: 500;
}

.meta-separator {
    margin: 0 0.5rem;
    color: #ccc;
}


/* --- Page Specific Styles (Home) --- */
.hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
}

.featured-section {
    margin-bottom: 4rem;
}

.featured-card {
    position: relative;
    display: block;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.03);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    text-align: left;
}

.featured-label {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .featured-card {
        height: 50vh;
        min-height: 400px;
    }

    .featured-title {
        font-size: 2rem;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* --- Video Player --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- Comments & Forms --- */
.comments-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.comment-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    resize: vertical;
    min-height: 120px;
    margin-bottom: 1rem;
    transition: border-color var(--transition-fast);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.submit-button:hover {
    background-color: var(--accent-hover);
}

.auth-prompt {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 2rem;
    border: 1px dashed #ccc;
}

.auth-prompt p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.login-button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
}

.login-button:hover {
    transform: scale(1.05);
}


/* --- Recipe Detail Styles --- */
.recipe-detail-container {
    max-width: 800px;
    /* Reading width */
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.recipe-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recipe-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.recipe-meta-big {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-section,
.instructions-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredient-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: baseline;
}

.ingredient-item::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}

.instructions-list {
    counter-reset: step;
    list-style: none;
}

.instruction-step {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.instruction-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- About Page --- */
.about-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.about-social {
    text-align: center;
    padding: 3rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--text-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.2s;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.youtube {
    background-color: #FF0000;
}

.social-btn:hover {
    transform: translateY(-2px);
}


/* --- Login Page --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1.5rem;
}

.login-card {
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}