/* style.css - Праздничный дизайн в стиле СССР */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    background-color: #fdf5e6; /* цвет старой бумаги */
    color: #2c3e50;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,215,0,0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(178,34,34,0.03) 0%, transparent 30%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M10,50 L30,30 L50,50 L70,30 L90,50 L70,70 L50,50 L30,70 Z" fill="%23b22222"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
}

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

/* Шапка в стиле праздничного плаката */
header {
    background: linear-gradient(135deg, #b22222 0%, #8b0000 100%);
    color: #fff;
    padding: 30px 0 20px;
    border-bottom: 8px solid #ffd700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}

header::after {
    content: "★ ★ ★";
    display: block;
    font-size: 24px;
    color: #ffd700;
    letter-spacing: 10px;
    margin-top: 5px;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #4a0404;
    margin-bottom: 10px;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 2px;
}

header p {
    font-size: 1.3rem;
    font-style: italic;
    background-color: rgba(255,215,0,0.2);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 30px;
    margin-top: 5px;
}

nav {
    margin-top: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 15px;
    padding: 8px 20px;
    border: 2px solid transparent;
    border-radius: 40px;
    transition: all 0.3s;
    background-color: rgba(0,0,0,0.1);
}

nav a:hover {
    background-color: #ffd700;
    color: #8b0000;
    border-color: #fff;
    transform: scale(1.05);
}

/* Основной контент */
main {
    padding: 50px 0;
}

h2 {
    font-size: 2.5rem;
    color: #8b0000;
    margin-bottom: 20px;
    border-left: 15px solid #ffd700;
    padding-left: 20px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 1px 1px 0 #ccc;
}

h3 {
    font-size: 2rem;
    color: #b22222;
    margin: 30px 0 15px;
    border-bottom: 3px dashed #ffd700;
    padding-bottom: 5px;
    display: inline-block;
}

/* Карточки рецептов (праздничные) */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.recipe-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(139,0,0,0.2);
    padding: 25px 20px;
    transition: all 0.3s;
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.recipe-card::before {
    content: "★";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 60px;
    color: rgba(255,215,0,0.2);
    transform: rotate(15deg);
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(178,34,34,0.3);
    border-color: #b22222;
}

.recipe-card h3 {
    font-size: 1.8rem;
    color: #8b0000;
    margin-top: 0;
    border-bottom: none;
}

.recipe-card p {
    margin: 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.recipe-card .btn {
    display: inline-block;
    background: linear-gradient(145deg, #b22222, #8b0000);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 40px;
    font-weight: bold;
    border: 2px solid #ffd700;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #4a0404;
}

.recipe-card .btn:hover {
    background: #ffd700;
    color: #8b0000;
    border-color: #8b0000;
    box-shadow: 0 4px 0 #b22222;
}

/* Страница рецепта */
.recipe-page {
    background-color: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 2px solid #ffd700;
    position: relative;
}

.recipe-page::after {
    content: "☭";
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 60px;
    color: rgba(178,34,34,0.1);
    font-family: serif;
}

.recipe-page h2 {
    border-left-color: #b22222;
}

.ingredients, .instructions {
    margin: 30px 0;
    padding: 20px;
    background-color: #fef9e7;
    border-radius: 20px;
    border-left: 10px solid #ffd700;
}

.ingredients ul, .instructions ol {
    margin-left: 30px;
    font-size: 1.1rem;
}

.ingredients li, .instructions li {
    margin-bottom: 10px;
}

/* Подвал */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 25px 0;
    border-top: 8px solid #ffd700;
    font-size: 1rem;
    position: relative;
}

footer::before {
    content: "★ 1961 ★ 2025 ★";
    display: block;
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    nav a {
        display: inline-block;
        margin: 5px 8px;
        padding: 5px 15px;
    }
    h2 {
        font-size: 2rem;
    }
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}