* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background-color: #e8e6e3;
    color: #1a1a1a;
    line-height: 1.8;
}

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

/* Header */
header {
    background-color: #f5f5f5;
    color: #1a1a1a;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-bottom: 2px solid #c8c8c8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    flex: 1;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Brush Script MT', cursive, serif;
    font-weight: normal;
    letter-spacing: 1px;
    color: #1a1a1a;
}

nav {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    border-bottom: 2px solid #1a1a1a;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #c8c8c8;
    background-color: #f8f8f8;
    color: #1a1a1a;
    font-size: 1rem;
    width: 250px;
    font-family: 'Courier New', 'Courier', monospace;
}

.search-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.search-btn {
    padding: 0.5rem 1.5rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: #404040;
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Image */
.hero-image-container {
    margin-bottom: 2rem;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ececec;
    border: 2px solid #c8c8c8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid #c8c8c8;
    pointer-events: none;
}

.hero-image-placeholder p {
    color: #999999;
    font-size: 1.5rem;
    font-style: italic;
    font-family: 'Brush Script MT', cursive, serif;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0 3rem;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: 'Brush Script MT', cursive, serif;
    font-weight: normal;
}

.hero p {
    font-size: 1.2rem;
    color: #666666;
    font-style: italic;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recipe-card {
    background: #f8f8f8;
    padding: 2rem;
    border: 1px solid #c8c8c8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recipe-card h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Brush Script MT', cursive, serif;
    font-weight: normal;
}

.recipe-card p {
    margin-bottom: 1.5rem;
    color: #666666;
    font-size: 0.95rem;
}

/* Button */
.btn {
    display: inline-block;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border: none;
    transition: all 0.3s;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn:hover {
    background-color: #404040;
}

/* Recipe Detail Page */
.recipe-detail {
    background: #f8f8f8;
    padding: 3rem;
    border: 1px solid #c8c8c8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.recipe-title-area {
    border-bottom: 2px solid #c8c8c8;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.recipe-detail h2 {
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    font-family: 'Brush Script MT', cursive, serif;
    font-weight: normal;
    text-align: center;
}

.recipe-author-byline {
    font-family: 'Brush Script MT', cursive, serif;
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: normal;
    font-style: normal;
    text-align: center;
    margin: 0;
    background: none;
    padding: 0;
    border: none;
}

.recipe-meta {
    color: #666666;
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid #d4d4d4;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.recipe-section {
    margin: 2rem 0;
}

.recipe-section h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    font-weight: bold;
}

.recipe-section ul,
.recipe-section ol {
    margin-left: 2rem;
}

.recipe-section li {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.recipe-section p {
    background-color: #e8e6e3;
    padding: 1rem;
    border-left: 3px solid #c8c8c8;
    font-style: italic;
    color: #666666;
}

/* Footer */
footer {
    background-color: #f5f5f5;
    color: #666666;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #c8c8c8;
    font-style: italic;
    font-size: 0.9rem;
}

/* AI Assistant Chat */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 1000;
}

.chat-button:hover {
    background-color: #404040;
    transform: scale(1.1);
}

.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background-color: #f8f8f8;
    border: 1px solid #c8c8c8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.chat-container.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.chat-close:hover {
    opacity: 0.7;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 0.75rem;
    border-radius: 4px;
    max-width: 80%;
    line-height: 1.5;
}

.chat-message.bot {
    background-color: #e8e6e3;
    align-self: flex-start;
    border-left: 3px solid #1a1a1a;
}

.chat-message.user {
    background-color: #1a1a1a;
    color: #ffffff;
    align-self: flex-end;
}

.chat-input-container {
    padding: 1rem;
    background-color: #f8f8f8;
    border-top: 1px solid #c8c8c8;
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #c8c8c8;
    background-color: #ffffff;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 0.9rem;
}

.chat-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.chat-send {
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

.chat-send:hover {
    background-color: #404040;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        width: 100%;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    .hero-image-placeholder {
        height: 250px;
    }
    
    .hero-image-placeholder p {
        font-size: 1.2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .recipe-detail {
        padding: 1.5rem;
    }

    .chat-container {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
        height: 450px;
    }

    .chat-button {
        right: 20px;
        bottom: 20px;
    }
}
