/* Akıllı Bütçe Mutfak - Ana Stil Dosyası */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --warm-orange: #FF8C42;
    --warm-yellow: #FFB347;
    --text-dark: #3E2723;
    --text-light: #6D4C41;
    --bg-light: #FFF8E7;
    --bg-white: #FFFFFF;
    --bg-cream: #FDF5E6;
    --border-color: #D7CCC8;
    --shadow-soft: rgba(139, 69, 19, 0.1);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #FFF8E7 0%, #FDF5E6 50%, #FFF8E7 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 231, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--warm-orange);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}


.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    font-style: italic;
    text-shadow: 2px 2px 4px var(--shadow-soft);
    transition: color 0.3s;
}

.logo:hover .logo-text {
    color: var(--warm-orange);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-overlay {
    display: none !important;
}

.main-nav {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list li {
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--warm-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 80%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    background: rgba(139, 69, 19, 0.05);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 80px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--warm-orange) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d65a3f;
}

/* Content Blocks */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.content-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-soft);
    border: 2px solid var(--bg-cream);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    max-width: 100%;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.1), transparent);
    transition: left 0.5s;
}

.content-card:hover::before {
    left: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-soft);
    border-color: var(--warm-orange);
}

.content-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-card h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.content-card ul {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
}

.content-card ul li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.content-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Recipe Cards */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.recipe-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid var(--bg-cream);
    position: relative;
}

.recipe-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.recipe-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 35px var(--shadow-soft);
    border-color: var(--warm-orange);
}

.recipe-card:hover::after {
    opacity: 1;
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.95);
}

.recipe-card:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.recipe-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.recipe-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.meta-item {
    padding: 0.3rem 0.8rem;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.difficulty-kolay {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.difficulty-orta {
    background: #fff3e0;
    color: #e65100;
    font-weight: 600;
}

.recipe-category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tavuk {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.category-sebze {
    background: linear-gradient(135deg, #51CF66 0%, #40C057 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(81, 207, 102, 0.3);
}

.category-bakliyat {
    background: linear-gradient(135deg, #FFD93D 0%, #F6C23E 100%);
    color: #3E2723;
    box-shadow: 0 2px 8px rgba(255, 217, 61, 0.3);
}

.category-çorba {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.category-tatlı {
    background: linear-gradient(135deg, #A8E6CF 0%, #88D8A3 100%);
    color: #3E2723;
    box-shadow: 0 2px 8px rgba(168, 230, 207, 0.3);
}

.recipe-meta-badge {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 1.2rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow-soft);
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.recipe-meta-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
}

.meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.difficulty-badge.difficulty-kolay {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.difficulty-badge.difficulty-kolay .meta-value {
    color: #2e7d32;
}

.difficulty-badge.difficulty-orta {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.difficulty-badge.difficulty-orta .meta-value {
    color: #e65100;
}

/* Recipe Detail Page */
.recipe-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.recipe-image {
    width: 100%;
    border-radius: 8px;
}

.recipe-info {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
}

.recipe-info h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recipe-info-section {
    margin: 1.5rem 0;
}

.recipe-info-section h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.ingredients-list, .steps-list {
    list-style: none;
    padding-left: 0;
}

.ingredients-list li {
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--warm-orange);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.ingredients-list li:hover {
    background: var(--bg-cream);
    transform: translateX(5px);
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.steps-list li {
    counter-increment: step-counter;
    padding: 1rem 0 1rem 4rem;
    margin: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
}

.steps-list {
    counter-reset: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px var(--shadow-soft);
}

/* Weekly Plan Table */
.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 5px 20px var(--shadow-soft);
    border-radius: 15px;
    position: relative;
    display: block;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.plan-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-white);
    border-radius: 15px;
    overflow: visible;
    margin: 0;
    box-shadow: none;
    border: 2px solid var(--bg-cream);
    table-layout: auto;
    display: table;
}

.plan-table th,
.plan-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 200px;
    white-space: normal;
}

.plan-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    padding: 1.2rem 1rem;
    white-space: nowrap;
}

.plan-table tr {
    transition: all 0.2s ease;
}

.plan-table tr:hover {
    background: linear-gradient(90deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    transform: scale(1.01);
}

/* Shopping List */
.shopping-list {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.shopping-list h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.shopping-list ul {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
}

.shopping-list li {
    padding: 0.5rem 0;
    break-inside: avoid;
}

/* Filters */
.filters {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px var(--shadow-soft);
    border: 2px solid var(--bg-cream);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 650;
    color: var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover {
    border-color: var(--warm-orange);
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* FAQ */
.faq-list {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.faq-item {
    margin: 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Blog Article */
.blog-article {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-article h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-article .meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.toc {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.toc h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    padding-left: 1rem;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--primary-color) 0%, #5D2F0A 100%);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 4px solid var(--warm-orange);
    box-shadow: 0 -5px 20px var(--shadow-soft);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 10000;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner p {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn-accept:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cookie-btn-reject {
    background-color: var(--text-light);
    color: white;
}

.cookie-btn-reject:hover {
    background-color: #5D4037;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cookie-btn-settings {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cookie-btn-settings:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 1rem;
}

.cookie-category {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle.active {
    background: var(--primary-color);
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(26px);
}

/* Form Styles */
.form-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--warm-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input[type="checkbox"] {
    width: auto;
}

.form-submit {
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 650;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px var(--shadow-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--warm-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-soft);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--warm-orange);
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
}

ul li, ol li {
    margin: 0.5rem 0;
    line-height: 1.8;
}

ul li::marker,
ol li::marker {
    color: var(--warm-orange);
    font-weight: bold;
}

/* Text improvements */
p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    text-align: justify;
    font-size: 1.05rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    font-weight: 650;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

h4, h5, h6 {
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

strong {
    font-weight: 650;
    color: var(--text-dark);
}

/* Footer links */
.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin: 0.5rem 0;
    padding-left: 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
    position: relative;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--warm-yellow);
}

/* Footer copyright centering */
footer > div:last-child {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

footer > div:last-child p {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Form Notification */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #formNotification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    .header-container {
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        max-height: 100vh;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 231, 0.98) 100%);
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 20px var(--shadow-soft);
        z-index: 999;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .main-nav.active {
        right: 0;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list a {
        padding: 1rem;
        display: block;
        border-radius: 0;
    }

    .nav-list a::after {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .recipe-detail {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .shopping-list ul {
        columns: 1;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .content-card > div[style*="display: flex"] {
        flex-direction: column;
    }
    
    .content-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .content-card > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .content-card > div[style*="display: flex"] > div[style*="flex: 1"] {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .content-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: hidden;
    }
    
    .content-card h2,
    .content-card h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .content-card ul {
        margin-left: 1.5rem !important;
        padding-left: 0 !important;
        max-width: calc(100% - 1.5rem) !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
        width: auto !important;
    }
    
    .content-card > div[style*="display: flex"] ul {
        margin-left: 1.5rem !important;
        padding-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .content-card ul li {
        margin-left: 0 !important;
        padding-left: 0 !important;
        max-width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .recipe-detail > div[style*="display: flex"] {
        flex-direction: column;
    }
    
    main {
        margin-top: 70px;
        padding: 1rem;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    div[style*="background"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    div[style*="background"] > .table-wrapper {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important;
        max-width: calc(100% + 2rem) !important;
    }
    
    /* Responsive table styles */
    .table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        border-radius: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        display: block;
        position: relative;
    }
    
    .plan-table {
        min-width: 500px;
        font-size: 0.8rem;
        border-radius: 0;
        display: table;
        width: auto;
    }
    
    .plan-table th,
    .plan-table td {
        padding: 0.5rem 0.25rem;
        max-width: 90px;
        font-size: 0.7rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.2;
    }
    
    .plan-table th {
        font-size: 0.65rem;
        white-space: nowrap;
        padding: 0.6rem 0.25rem;
    }
    
    .plan-table td {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .plan-table td strong {
        font-size: 0.7rem;
    }
    
    .plan-table thead th:first-child,
    .plan-table tbody td:first-child {
        position: sticky;
        left: 0;
        background: var(--bg-white);
        z-index: 10;
        min-width: 70px;
        max-width: 70px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .plan-table thead th:first-child {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }
    
    .plan-table tbody td:first-child strong {
        display: block;
        font-size: 0.7rem;
    }
    
    .plan-table th {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
        white-space: normal;
    }
}

/* Tablet styles (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .plan-table {
        min-width: 550px;
        font-size: 0.9rem;
    }
    
    .plan-table th,
    .plan-table td {
        padding: 0.7rem 0.5rem;
        font-size: 0.85rem;
        max-width: 140px;
    }
    
    .plan-table thead th:first-child,
    .plan-table tbody td:first-child {
        position: sticky;
        left: 0;
        background: var(--bg-white);
        z-index: 10;
    }
    
    .plan-table thead th:first-child {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
    }
}

/* Laptop/Tablet styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-card > div[style*="display: flex"] {
        flex-direction: column;
    }
    
    .content-card img {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
        height: auto !important;
    }
    
    .content-card > div[style*="display: flex"] > div[style*="flex: 1"] {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .content-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: hidden;
    }
}

/* Additional responsive styles for content cards */
@media (max-width: 1200px) {
    .content-card > div[style*="display: flex"] {
        flex-wrap: wrap;
    }
    
    .content-card > div[style*="display: flex"] img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .content-card > div[style*="display: flex"] > div[style*="flex: 1"] {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .content-card ul li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

/* Ensure images in content cards are responsive on all screens */
.content-card img {
    max-width: 100%;
    height: auto;
}
