/* ==================== ZMIENNE ==================== */
:root {
    --pink-main: #ff6f91;
    --pink-light: #fff0f5;
    --pink-gradient-1: #ffafbd;
    --pink-gradient-2: #ffc3a0;
    --pink-soft: #fde2e8;
    --text-dark: #333;
}

/* ==================== GLOBAL ==================== */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--pink-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==================== NAWIGACJA ==================== */
nav {
    background-color: var(--pink-main);
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.85;
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(135deg, var(--pink-gradient-1), var(--pink-gradient-2));
    padding: 60px 20px;
    text-align: center;
    color: white;
    overflow: hidden;
}

header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3em;
    margin: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== SEKCJE ==================== */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    font-size: 2em;
    color: var(--pink-main);
    margin-bottom: 30px;
}

/* ==================== GALERIA ==================== */
.featured-gallery {
    padding: 80px 10%;
    background: linear-gradient(180deg, var(--pink-light), var(--pink-soft));
    text-align: center;
}

.featured-gallery h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #b23a48;
    margin-bottom: 10px;
}

.gallery-subtitle {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.cakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.cake-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.4s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.cake-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cake-card:hover {
    transform: translateY(-8px);
}

.cake-card:hover img {
    transform: scale(1.08);
}

.cake-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.cake-overlay h3 {
    color: white;
    font-size: 1.6rem;
}

/* ==================== PRZEPISY ==================== */
.recipes-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.recipes-sidebar {
    flex: 0 0 200px;
    background-color: var(--pink-main);
    color: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.recipes-sidebar h3 {
    margin-bottom: 15px;
}

.recipes-sidebar button {
    background: none;
    border: none;
    color: white;
    padding: 12px;
    margin: 5px 0;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.recipes-sidebar button.active,
.recipes-sidebar button:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.03);
}

.recipe-wrapper {
    display: flex;
    gap: 30px;
    flex: 1;
    flex-wrap: wrap;
}

/* ==================== SKŁADNIKI ==================== */
.ingredients {
    flex: 0 0 250px;
    background-color: #ffe6f0;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ingredients h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #b23a48;
    font-size: 1.5rem;
}

.ingredients ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

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

/* ==================== INSTRUKCJE ==================== */
.instructions {
    flex: 1;
    background-color: var(--pink-light);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.instructions h2 {
    font-family: 'Pacifico', cursive;
    color: #b23a48;
    margin-bottom: 15px;
}

.instructions p {
    margin-bottom: 15px;
}

/* ==================== FORMULARZ ==================== */
form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

form input,
form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--pink-gradient-1);
    border-radius: 8px;
    font-size: 1em;
}

form button {
    padding: 12px;
    border: none;
    background-color: var(--pink-main);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

form button:hover {
    opacity: 0.85;
}

/* ==================== STOPKA ==================== */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--pink-gradient-1);
    color: white;
}

/* ==================== RESPONSYWNOŚĆ ==================== */
@media (max-width: 900px) {
    .recipe-wrapper {
        flex-direction: column;
    }

    .ingredients {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 20px;
    }

    .instructions {
        width: 100%;
    }

    .recipes-sidebar {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding: 10px;
        margin-bottom: 20px;
    }

    .recipes-sidebar button {
        flex: 1 0 auto;
        margin: 0 5px;
        white-space: nowrap;
        text-align: center;
    }
}

@media (max-width: 800px) {
    .recipes-container {
        flex-direction: column;
    }

    .recipes-sidebar {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding: 10px;
        margin-bottom: 20px;
    }

    .recipes-sidebar button {
        flex: 1 0 auto;
        margin: 0 5px;
        text-align: center;
        white-space: nowrap;
    }

    .recipe-content {
        padding: 20px;
    }

    .cake-card img {
        height: 300px;
    }
}

@media (max-width: 600px) {
    header h1 { font-size: 2.2em; }
    h2 { font-size: 1.7em; }
    nav a { margin: 0 10px; }
}
