/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    border: 3px solid #D2691E;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-text {
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #FFF8DC;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: #F5DEB3;
    font-style: italic;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex: 1;
}

.nav-link {
    color: #FFF8DC;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    background: rgba(210, 105, 30, 0.3);
    border: 2px solid rgba(255, 248, 220, 0.3);
    font-family: 'Georgia', serif;
}

.nav-link.active {
    background: #D2691E;
    border-color: #FFD700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Clean Search */
.search-container {
    display: flex;
    align-items: center;
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    .nav-link,
    .search-btn,
    .view-recipe-btn,
    .pagination-btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .recipe-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

.search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-input {
    background: #ffffff;
    border: none;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    width: 200px;
    outline: none;
}

.search-input:focus {
    background: #ffffff;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #8B4513;
    border: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background: #A0522D;
}

/* Search Results Page */
.search-results-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 300;
    text-align: center;
}

.search-form-container {
    margin: 30px 0;
    text-align: center;
}

.search-form-container .search-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    width: 100%;
}

.search-form-container .search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #D2691E;
    border-radius: 0;
    font-size: 1rem;
    background: #fff;
    color: #8B4513;
}

.search-form-container .search-input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.search-form-container .search-btn {
    padding: 12px 20px;
    background: #D2691E;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form-container .search-btn:hover {
    background: #8B4513;
}

.search-results-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    color: #666;
}

.search-results-container {
    display: grid;
    gap: 35px;
}

/* About Section */
.about-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.about-content h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 300;
}

.about-photo {
    text-align: center;
    margin-bottom: 30px;
}

.headshot {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    border: 4px solid #8B4513;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

.about-text p:last-child {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0;
}

/* Form styles */
.recipe-form-section {
    background: #fff8dc;
    padding: 35px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
    margin-bottom: 40px;
    border: 3px solid #d2b48c;
    position: relative;
}

.recipe-form-section::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #d2b48c, #f4a460, #d2b48c);
    border-radius: 0;
    z-index: -1;
}

.recipe-form-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #8b4513;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.form-intro {
    text-align: center;
    font-style: italic;
    color: #6b5b47;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #8b4513;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #d2b48c;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    background-color: #fefefe;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2), inset 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

.submit-btn {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #fff8dc;
    padding: 15px 40px;
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    display: block;
    margin: 0 auto;
}



/* Recipes section */
.recipes-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 300;
    text-align: center;
}

.recipes-container {
    display: grid;
    gap: 35px;
}

.recipe-card {
    background: linear-gradient(135deg, #fef9e7 0%, #fdf2e9 100%);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    overflow: hidden;
    border: 2px solid #D2691E;
    cursor: pointer;
}

.recipe-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.view-recipe-btn {
    background: #D2691E;
    color: #FFF8DC;
    border: 2px solid #B8860B;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

.recipe-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.recipe-image.loaded {
    opacity: 1;
}

.recipe-content {
    padding: 25px;
}

.recipe-header {
    margin-bottom: 20px;
    text-align: center;
}

.recipe-title {
    font-size: 1.6rem;
    color: #8B4513;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Georgia', serif;
}

.recipe-meta {
    color: #A0522D;
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: center;
}

.recipe-section {
    margin-bottom: 20px;
}

.recipe-section h3 {
    font-size: 1.2rem;
    color: #8B4513;
    margin-bottom: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #D2691E;
    padding-bottom: 5px;
    font-family: 'Georgia', serif;
}

.recipe-section p,
.recipe-section ul {
    color: #8B4513;
    line-height: 1.6;
    font-size: 1rem;
}

.recipe-section ul {
    padding-left: 20px;
}

.recipe-section li {
    margin-bottom: 6px;
}

.recipe-notes {
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    padding: 30px;
    border-left: 5px solid #D2691E;
    border-radius: 0;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.1);
    border: 2px solid #D2691E;
    margin-top: 20px;
}

.recipe-notes h2 {
    color: #8B4513;
    margin-bottom: 15px;
    border: none;
    padding: 0;
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

.recipe-notes p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5a4a3a;
    margin: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
}

.empty-state p {
    font-style: italic;
    font-size: 1rem;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}


.pagination-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn.active {
    background: #e74c3c;
    font-weight: bold;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: #2980b9;
    transform: translateY(-2px);
}

.pagination-ellipsis {
    padding: 10px 5px;
    color: #7f8c8d;
    font-weight: bold;
}

.pagination-info {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

/* Recipe Page Styles */
.recipe-page {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e8e8e8;
}


.back-link {
    margin-bottom: 30px;
    margin-top: 20px;
    text-align: center;
}

.bottom-back {
    margin-top: 30px;
    margin-bottom: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #D2691E;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Georgia', serif;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.1);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #8B4513;
    color: white;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}


.full-recipe {
    background: linear-gradient(135deg, #fef9e7 0%, #fdf2e9 100%);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    overflow: hidden;
    border: 2px solid #D2691E;
}

.full-recipe-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    background-color: #f8f9fa;
    border-radius: 0;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    border: 2px solid #D2691E;
    display: block;
    margin: 40px auto 20px auto;
}

.full-recipe-image.loaded {
    opacity: 1;
}

.full-recipe-content {
    padding: 50px 60px;
    line-height: 1.7;
}

.full-recipe-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 0;
    border-bottom: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

.full-recipe-title {
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 30px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.full-recipe-meta {
    background: #f8f9fa;
    border: 2px solid #D2691E;
    padding: 25px;
    margin: 20px 0 30px 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    color: #8B4513;
    font-size: 1rem;
    line-height: 1.6;
}

.full-recipe-meta span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    margin: 4px 8px 4px 0;
    border-radius: 0;
    border: 1px solid #D2691E;
    font-size: 0.9rem;
    color: #8B4513;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.1);
    font-weight: 500;
}

.full-recipe-section {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.9);
    padding: 35px;
    border-radius: 0;
    border: 2px solid #D2691E;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.full-recipe-section h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 3px solid #D2691E;
    padding-bottom: 15px;
    font-family: 'Georgia', serif;
    position: relative;
}

.full-recipe-section h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #8B4513;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ingredients-list li {
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #D2691E;
    position: relative;
    padding-left: 50px;
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.1);
    transition: all 0.2s ease;
}

.ingredients-list li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ingredients-list li::before {
    content: '✓';
    color: #8B4513;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    width: 24px;
    height: 24px;
    border-radius: 0;
    border: 1px solid #D2691E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 20px;
}

.instructions-list li {
    counter-increment: step-counter;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #D2691E;
    position: relative;
    padding-left: 80px;
    line-height: 1.7;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.1);
    transition: all 0.2s ease;
}

.instructions-list li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 25px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: 2px solid #D2691E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
}

.error-state h2 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-text {
        text-align: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
        padding: 8px;
    }
    
    .header-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .search-container {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .search-form {
        width: 100%;
        max-width: 300px;
    }
    
    .search-input {
        width: 100%;
        flex: 1;
        min-width: 0;
    }
    
    .search-btn {
        flex-shrink: 0;
    }
    
    .recipe-form-section,
    .about-section {
        padding: 25px;
    }
    
    .recipe-content {
        padding: 20px;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .recipe-title {
        font-size: 1.4rem;
    }
    
    .recipe-section h3 {
        font-size: 1.1rem;
    }
    
    .recipe-page {
        margin: 0 10px;
        border-radius: 0;
    }
    
    .full-recipe-content {
        padding: 30px 25px;
    }
    
    .full-recipe-image {
        width: 300px;
        height: 300px;
        margin: 30px auto 15px auto;
    }
    
    .full-recipe-header {
        margin: 0;
        padding: 0;
    }
    
    .full-recipe-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 25px;
    }
    
    .full-recipe-meta {
        padding: 20px;
        margin: 20px 0;
    }
    
    .full-recipe-meta span {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin: 3px 6px 3px 0;
    }
    
    .full-recipe-section {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .full-recipe-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .ingredients-list li {
        padding: 12px 15px;
        padding-left: 45px;
        font-size: 1rem;
    }
    
    .ingredients-list li::before {
        left: 15px;
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }
    
    .instructions-list li {
        padding: 20px 20px;
        padding-left: 70px;
        font-size: 1rem;
    }
    
    .instructions-list li::before {
        left: 20px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Search results page mobile styles */
    .search-results-section h2 {
        font-size: 1.8rem;
    }
    
    .search-results-info {
        padding: 12px;
        font-size: 14px;
    }
    
    .search-results-container {
        gap: 25px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        padding: 6px;
    }
    
    .main-nav {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-form {
        max-width: 280px;
    }
    
    .search-input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .recipe-content {
        padding: 15px;
    }
    
    .recipe-title {
        font-size: 1.3rem;
    }
    
    .recipe-section h3 {
        font-size: 1rem;
    }
    
    .recipe-meta {
        font-size: 0.85rem;
    }
    
    /* Improve text readability on mobile */
    .recipe-section p,
    .recipe-section ul {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .recipe-section li {
        margin-bottom: 8px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .recipe-page {
        margin: 0 5px;
        border-radius: 6px;
    }
    
    .full-recipe-content {
        padding: 20px 15px;
    }
    
    .full-recipe-image {
        width: 250px;
        height: 250px;
        margin: 25px auto 15px auto;
    }
    
    .full-recipe-header {
        margin: 0;
        padding: 0;
    }
    
    .full-recipe-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .full-recipe-meta {
        padding: 15px;
        margin: 15px 0;
    }
    
    .full-recipe-meta span {
        padding: 5px 10px;
        font-size: 0.8rem;
        margin: 2px 4px 2px 0;
    }
    
    .full-recipe-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .full-recipe-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .ingredients-list li {
        padding: 10px 12px;
        padding-left: 40px;
        font-size: 0.95rem;
    }
    
    .ingredients-list li::before {
        left: 12px;
        width: 18px;
        height: 18px;
        font-size: 0.9rem;
    }
    
    .instructions-list li {
        padding: 15px 15px;
        padding-left: 60px;
        font-size: 0.95rem;
    }
    
    .instructions-list li::before {
        left: 15px;
        top: 15px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .search-results-section h2 {
        font-size: 1.6rem;
    }
    
    .search-results-info {
        padding: 10px;
        font-size: 13px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Footer mobile styles */
    .grandma-footer {
        padding: 30px 15px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .contact-info {
        font-size: 1rem;
    }
    
    .footer-quote {
        font-size: 1rem;
    }
}

/* Grandma Footer */
.grandma-footer {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    color: #FFF8DC;
    padding: 40px 20px 20px;
    margin-top: 50px;
    border-top: 4px solid #D2691E;
    position: relative;
    font-family: 'Georgia', serif;
}

.grandma-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #D2691E 0px,
        #D2691E 10px,
        #FFD700 10px,
        #FFD700 20px
    );
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #FFD700;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #D2691E;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-info {
    font-weight: bold;
    color: #FFD700;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #D2691E;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.footer-quote {
    font-style: italic;
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Simple Resources Page - 70s Style */
.simple-resources {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #8B4513;
    font-family: 'Georgia', serif;
}

.simple-resources h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 10px;
}

.simple-resources p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

.simple-resources h3 {
    font-size: 1.4rem;
    color: #8B4513;
    margin: 30px 0 15px 0;
    font-weight: bold;
    border-left: 4px solid #8B4513;
    padding-left: 15px;
}

.simple-resources ul {
    margin: 0 0 25px 0;
    padding-left: 0;
    list-style: none;
}

.simple-resources li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.6;
}

.simple-resources li:last-child {
    border-bottom: none;
}

.simple-resources a {
    color: #8B4513;
    text-decoration: underline;
    font-weight: bold;
}

/* Recipe content links */
.recipe-content a {
    color: #8B4513;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recipe-content a:hover {
    color: #A0522D;
    text-decoration: none;
}

.recipe-content a:visited {
    color: #654321;
}

.simple-resources a:hover {
    color: #A0522D;
    text-decoration: none;
}

.simple-resources strong {
    color: #8B4513;
    font-weight: bold;
}

/* Responsive design for simple resources */
@media (max-width: 768px) {
    .simple-resources {
        padding: 20px;
    }
    
    .simple-resources h2 {
        font-size: 1.8rem;
    }
    
    .simple-resources h3 {
        font-size: 1.2rem;
    }
}

/* Decorative elements removed for cleaner look */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    border-radius: 0;
}

/* Google AdSense Styles */
.ad-container {
    margin: 20px 0;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container.header-ad {
    margin: 0 0 30px 0;
    background: #fff;
    border: 2px solid #dee2e6;
}

.ad-container.sidebar-ad {
    position: sticky;
    top: 20px;
    margin: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ad-container.content-ad {
    margin: 30px 0;
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ad-container.footer-ad {
    margin: 30px 0 0 0;
    background: #fff;
    border: 2px solid #dee2e6;
}

.ad-container.mobile-ad {
    margin: 15px 0;
    background: #fff;
    border: 1px solid #dee2e6;
    min-height: 50px;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
    .ad-container.header-ad,
    .ad-container.footer-ad {
        margin: 15px 0;
        padding: 8px;
    }
    
    .ad-container.sidebar-ad {
        position: static;
        margin: 20px 0;
    }
    
    .ad-container.content-ad {
        margin: 20px 0;
    }
}

/* Ad loading state */
.ad-container:empty::before {
    content: "Loading ad...";
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

/* AdSense responsive adjustments */
.adsbygoogle {
    display: block !important;
    margin: 0 auto;
}

/* Recipe page specific ad placements */
.recipe-content .ad-container {
    margin: 25px 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

/* Search results ad placement */
.search-results-container .ad-container {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
}

/* Hide ads on very small screens if needed */
@media (max-width: 320px) {
    .ad-container.header-ad,
    .ad-container.footer-ad {
        display: none;
    }
}

/* Print styles - hide ads */
@media print {
    .ad-container {
        display: none !important;
    }
}
