/* Modern Recipe Website - Redesign v2 */
:root {
    --primary: #F59E0B;
    /* Amber/Orange from image */
    --primary-hover: #D97706;
    --secondary: #10B981;
    /* Green for tags */
    --dark: #1F2937;
    --gray: #6B7280;
    --light: #F3F4F6;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #FAFAFA;
    background-image:
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Yatay taşmayı kesin olarak engelle */
    -webkit-font-smoothing: antialiased;
    /* Fontları yumuşat */
    width: 100%;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo i {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--dark);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid #E5E7EB;
    background: transparent;
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--dark);
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
}

.hero-card {
    background: url('https://images.unsplash.com/photo-1598515214211-89d3c73ae83b') center/cover no-repeat;
    border-radius: var(--radius-xl);
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-left: 4rem;
    max-width: 600px;
    color: var(--white);
}

.hero-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Floating Search Bar */
.search-container {
    position: relative;
    max-width: 800px;
    margin: -30px auto 3rem;
    /* Negative margin to pull it up */
    z-index: 20;
    padding: 0 1rem;
}

.search-box {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-body);
}

.search-btn {
    background: var(--dark);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* Categories */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.categories-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 80px;
    text-decoration: none;
    color: var(--gray);
    transition: all 0.3s;
    cursor: pointer;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    /* Circle icons */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.category-pill:hover .category-icon {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-pill span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Recipe Cards */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: start;
    /* Prevents cards from stretching to match height of tallest, which can look weird with vastly different content lengths */
}

.recipe-card-v2 {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    border: 1px solid #F3F4F6;
}

.recipe-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recipe-card-v2:hover .card-img-container img {
    transform: scale(1.05);
}

.like-absolute {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    border: none;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #FBBF24;
}

.card-rating span {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Blog/Tip Section */
.tip-section {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: #FFFBEB;
    /* Light yellowish bg */
    border-radius: var(--radius-xl);
    padding: 0;
    margin-bottom: 4rem;
    overflow: hidden;
}

.tip-image {
    width: 45%;
    height: 400px;
}

.tip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tip-content {
    flex: 1;
    padding: 3rem;
}

.tip-badge {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Newsletter */
.newsletter-v2 {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form-v2 {
    background: var(--white);
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    margin-top: 2rem;
}

.newsletter-form-v2 input {
    flex: 1;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

.newsletter-form-v2 button {
    background: var(--dark);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* Footer UI from image */
footer {
    background: var(--white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    border-top: 1px solid #E5E7EB;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray);
}


/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 101;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Header & Nav */
    .header-inner {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
        /* Sağda dursun */
    }

    .header-actions {
        order: 2;
        margin-right: 1rem;
        gap: 0.5rem;
    }

    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 99;
        visibility: hidden;
        /* Kapalıyken gizle */
        opacity: 0;
    }

    nav.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--light);
    }

    /* Hero */
    .hero-card {
        height: auto;
        min-height: 400px;
        flex-direction: column;
    }

    .hero-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    }

    .hero-content {
        padding: 2rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-top: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Search */
    .search-container {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .search-box {
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    .search-box input {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .search-btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }

    /* Categories */
    .categories-scroll {
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .category-pill {
        min-width: 70px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Grids */
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Tip Section */
    .tip-section {
        flex-direction: column;
        text-align: center;
    }

    .tip-image {
        width: 100%;
        height: 250px;
    }

    .tip-content {
        padding: 2rem 1.5rem;
    }

    .tip-badge {
        justify-content: center;
    }

    .tip-title {
        font-size: 1.8rem;
    }

    /* Newsletter */
    .newsletter-v2 {
        padding: 3rem 1.5rem;
    }

    /* Newsletter Düzeltmesi */
    .newsletter-form-v2 {
        flex-direction: column;
        background: transparent;
        padding: 0;
        border-radius: 0;
        gap: 1rem;
        width: 100%;
        /* Konteyner genişliğine uy */
    }

    .newsletter-form-v2 input {
        width: 100%;
        height: 50px;
        border-radius: 25px;
        padding: 0 1.5rem;
        box-sizing: border-box;
        /* Taşmayı önle */
        border: 1px solid #ddd;
        /* Sınırları belirginleştir */
    }

    .newsletter-form-v2 button {
        width: 100%;
        height: 50px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }

    .logo {
        justify-content: center;
    }

    .footer-col .logo {
        margin-bottom: 0.5rem;
    }

    .footer-col div[style*="display: flex"] {
        justify-content: center;
    }

    .copyright {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Login/Register/Contact Pages */
    .login-card {
        padding: 2rem 1.5rem;
    }

    .contact-container {
        /* Assuming class name */
        flex-direction: column;
    }

    /* Page Header */
    .page-header {
        padding: 6rem 1rem 3rem !important;
    }

    .page-header h1 {
        font-size: 2rem;
    }

}

@media (max-width: 576px) {
    .container {
        padding: 0 0.8rem;
    }

    /* Header'da buton metinlerini gizle, sadece ikon kalsın */
    .header-actions .btn {
        padding: 0.5rem;
        aspect-ratio: 1;
        /* Kare yap */
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }

    .header-actions .btn span,
    /* Eğer span içinde yazı varsa */
    .header-actions a.btn-primary {
        /* Giriş yap butonu */
        font-size: 0;
        /* Yazıyı gizle */
        padding: 0.6rem;
    }

    .header-actions a.btn-primary::before {
        content: '\f2f6';
        /* FontAwesome user icon */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1rem;
    }

    /* Logo küçült */
    .logo {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .tip-title {
        font-size: 1.4rem;
    }

    /* Form elemanları mobilde daha kullanışlı olsun */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* iOS zoom engelleme */
    }
}