/* ===== ZÁKLADNÍ NASTAVENÍ ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f7;
    color: #111827;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== LAYOUT & HLAVIČKA ===== */

header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-content {
    padding-bottom: 40px;
}

/* ===== NAVIGACE ===== */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #16a34a;
}

    .navbar-brand span {
        font-weight: 400;
        font-size: 0.9rem;
        color: #6b7280;
        margin-left: 6px;
    }

.navbar-links {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
}

    .navbar-links a {
        padding: 4px 0;
        border-bottom: 2px solid transparent;
    }

        .navbar-links a:hover {
            border-bottom-color: #16a34a;
        }

        .navbar-links a.active-link {
            border-bottom-color: #16a34a;
            font-weight: 600;
        }

.navbar-actions {
    display: flex;
    gap: 8px;
}

/* ===== TLAČÍTKA ===== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
}

.button-outline {
    border-color: #16a34a;
    color: #16a34a;
    background: #ffffff;
}

    .button-outline:hover {
        background: #ecfdf3;
    }

.button-primary {
    background: #16a34a;
    color: #ffffff;
}

    .button-primary:hover {
        background: #15803d;
    }

/* ===== OBECNÉ SEKCE ===== */

.section-block {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

    .section-header h1,
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .section-header p {
        max-width: 620px;
        margin: 0 auto;
        font-size: 0.95rem;
        color: #6b7280;
    }

/* ===== KARTY / GRIDY ===== */

.grid-three-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-size: 0.95rem;
}

    .info-card h3 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

.meal-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.meal-plan-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== UNIVERZÁLNÍ OBRÁZKOVÉ BOXY ===== */

/* základní box – karty, benefity atd. */
.mp-image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* vyšší hero box (např. mobilní náhled vpravo) */
.mp-image-box-hero {
    width: 100%;
    height: 230px;
    border-radius: 24px;
    overflow: hidden;
    background: #f3f4f6;
}

/* ===== HOMEPAGE VERZE A – HERO ===== */

.homepage-intro-section {
    padding: 40px 0 32px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.homepage-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
}

.homepage-intro-section h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.homepage-intro-section p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 20px;
    max-width: 540px;
}

.homepage-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.homepage-intro-note {
    font-size: 0.85rem;
    color: #6b7280;
}

.plan-preview-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.plan-preview-summary {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 10px;
}

.plan-preview-visual {
    position: relative;
}

/* šipky – jen grafika, nefunkční slider */
.preview-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,0.8);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
}

.preview-arrow-left {
    left: 10px;
}

.preview-arrow-right {
    right: 10px;
}

/* ===== HOMEPAGE VERZE B – HERO + BENEFITY ===== */

.homepage-b-hero {
    padding: 40px 0 32px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.homepage-b-feature-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.homepage-b-benefits {
    padding: 40px 0 32px;
}

.benefit-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}

    .benefit-row.reverse {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    }

    .benefit-row h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .benefit-row p {
        font-size: 0.95rem;
        color: #4b5563;
        margin-bottom: 14px;
    }

.benefit-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== STRÁNKA PLÁNY ===== */

.plans-search-bar {
    max-width: 420px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.plans-search-icon {
    font-size: 1.1rem;
    color: #9ca3af;
}

.plans-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
}

    .plans-search-input::placeholder {
        color: #9ca3af;
    }

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
}

.plan-card-content {
    display: flex;
    flex-direction: column;
}

.plan-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
}

    .plan-card-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

.plan-card-link {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #16a34a;
    font-weight: 600;
}

    .plan-card-link:hover {
        text-decoration: underline;
    }

.plans-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pagination-button {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 4px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

    .pagination-button.active-page {
        background: #111827;
        color: #ffffff;
        border-color: #111827;
    }

/* ===== RECEPTY ===== */

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.recipe-tag {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ===== DETAIL JÍDELNÍČKU ===== */

.meal-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
}

.meal-detail-day {
    margin-bottom: 16px;
}

    .meal-detail-day h3 {
        margin-bottom: 4px;
    }

.meal-detail-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.95rem;
}

/* ===== PATIČKA ===== */

.site-footer {
    padding: 18px 0 24px;
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 12px;
}

/* ===== MODÁLNÍ OKNA ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

    .modal-overlay.active {
        display: flex;
    }

.modal-window {
    background: #ffffff;
    padding: 24px 22px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .modal-title-row h2 {
        font-size: 1.2rem;
    }

.modal-close-button {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.modal-form-group {
    margin-bottom: 12px;
}

    .modal-form-group label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .modal-form-group input {
        width: 100%;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 0.9rem;
    }

        .modal-form-group input:focus {
            outline: none;
            border-color: #16a34a;
            box-shadow: 0 0 0 1px #16a34a20;
        }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.modal-checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #4b5563;
}

    .modal-checkbox-row input[type="checkbox"] {
        width: auto;
    }

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .homepage-intro-layout,
    .homepage-b-feature-grid,
    .meal-plan-grid,
    .recipes-grid,
    .meal-detail-layout,
    .grid-three-columns,
    .benefit-row,
    .benefit-row.reverse,
    .plan-card {
        grid-template-columns: 1fr;
    }

    .navbar-links {
        display: none; /* pro jednoduchost bez mobilního menu */
    }
}



/* kontakt - edit */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); /* Rozdělení na menší info a větší formulář */
    gap: 40px;
    align-items: flex-start; /* Zarovnání obsahu nahoru */
}

/* Levá info část */
.contact-info-block h1 {
    font-size: 2.2rem; /* Větší nadpis jako na wireframu */
    margin-bottom: 12px;
}

.contact-info-block > p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-icon {
    /* Styl pro ikony - wireframe použil orámované boxy */
    width: 32px;
    height: 32px;
    border: 1px solid #111827;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #16a34a; /* Barva z tvého existujícího CSS */
}

.info-item .label {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.85rem;
    color: #6b7280;
}

.stay-in-touch {
    margin-top: 30px;
    font-style: italic;
    font-size: 1rem;
    color: #4b5563;
}

/* Pravá formulářová část */
.contact-form-block .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-block .modal-form-group {
    flex: 1; /* Dělení řádku na dvě poloviny */
}

.contact-form-block textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    /* Oprava výšky pro textarea */
    resize: vertical; 
}

.btn-submit {
    display: inline-flex !important; /* Přepsání display: flex z .modal-actions, pokud by se aplikovalo */
    align-items: center;
    gap: 8px;
    margin-top: 10px; /* Mezera od textarea */
}

/* Responzivní úprava */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr; /* Na mobilu pod sebou */
        gap: 30px;
    }
    .contact-info-block {
        order: 2; /* Formulář nad info blokem, pokud bys to chtěl jinak */
    }
    .contact-form-block {
        order: 1;
    }
}

/* Úprava nadpisu pro odstranění stávajícího centrování pro tuto stránku */
.contact-info-block h1 {
    text-align: left;
}



/* ===== DETAIL RECEPTU - NOVÉ STYLY DLE WIREFRAMU FINAL ===== */

/* 1. HLAVA RECEPTU (Text vlevo, Obrázek vpravo) */

.recipe-intro-section {
    padding: 40px 0;
}

.recipe-intro-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.recipe-intro-text {
    flex: 1.5; /* Text zabere více místa */
    min-width: 0;
}

.recipe-intro-image {
    flex: 1; /* Obrázek zabere méně místa */
    min-width: 300px;
    /* Odstraněno sticky, protože to narušovalo rozvržení na plnou šířku */
}

.recipe-intro-image .mp-image-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.recipe-category-tag {
    display: inline-block;
    background-color: #d1fae5;
    color: #047857;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.recipe-header-small h1 {
    font-size: 2.5rem;
    color: #035300;
    margin-bottom: 15px;
}

.recipe-summary-intro {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* NOVÝ GRID pro 5 detailů (Komplexita, Doba, Porce, Vhodný pro, Hodnocení) */
.recipe-stats-grid-complex {
    display: grid;
    /* Dva sloupce pro lepší zarovnání vedle obrázku */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 25px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.info-item-small-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-item-small-box .recipe-icon {
    font-size: 1.2rem;
    color: #035300;
    margin-bottom: 5px;
}

.info-item-small-box .label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
}

.info-item-small-box .value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

/* Speciální styly pro Hodnocení (5 hvězd) */
.rating-box .recipe-icon {
    color: gold;
}

.rating-stars {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 1.1rem;
    font-weight: 700;
}

.rating-stars i {
    font-size: 1em;
    color: gold;
}
/* Konec sekce Hodnocení */


.separator {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

/* 2. INGREDINENCE & POSTUP (Plná šířka kontejneru) */

.recipe-content-section {
    padding: 40px 0;
}

/* Odstraněna max-width, aby se roztáhlo na šířku page-container (a tím i na šířku sekce výše) */
.recipe-content-layout {
    margin: 0;
}

.recipe-ingredients-block,
.recipe-instructions-block {
    margin-bottom: 40px;
}

.recipe-content-layout h2 {
    color: #035300;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 2px solid #a7f3d0;
    padding-bottom: 10px;
}

.recipe-content-layout h2 i {
    margin-right: 10px;
}

.recipe-ingredients-block ul,
.recipe-instructions-block ol {
    padding-left: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.recipe-ingredients-block li {
    list-style-type: disc;
    color: #4b5563;
}

.recipe-ingredients-block li strong,
.recipe-instructions-block li strong {
    color: #111827;
    font-weight: 700;
}

.recipe-instructions-block li {
    list-style-type: decimal;
    margin-bottom: 15px;
    color: #4b5563;
}


/* 3. KOMENTÁŘE (Plná šířka kontejneru) */

.recipe-comments-section {
    padding: 40px 0;
    /* Odstraněna max-width */
    margin: 0;
}

.recipe-comments-section h2 {
    color: #035300;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid #a7f3d0;
    padding-bottom: 10px;
}

.comments-list {
    margin-bottom: 40px;
}

.comment-item {
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #ffffff;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 700;
    color: #035300;
}

.comment-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #111827;
}

.add-comment-form h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.add-comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 10px;
    resize: vertical;
    font-size: 1rem;
}


/* Media Query pro responzivitu */
@media (max-width: 900px) {
    .recipe-intro-layout {
        flex-direction: column; /* Na menších obrazovkách pod sebou */
    }

    .recipe-intro-image {
        order: -1; /* Obrázek nahoře */
        min-width: auto;
        margin-bottom: 20px;
    }

    .recipe-header-small h1 {
        font-size: 2rem;
    }

    /* Na mobilu se 5 detailů ve 2 sloupcích nezobrazí dobře, změníme na 1 sloupec */
    .recipe-stats-grid-complex {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .recipe-content-layout {
        padding: 0 16px;
    }
}

/* ===== MŮJ PROFIL – LAYOUT ===== */

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.05fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: flex-start;
}

.profile-divider {
    border-left: 1px solid #e5e7eb;
    height: 100%;
}

/* už máš, ale pro jistotu */
.profile-section-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

/* ===== NÁKUPNÍ SEZNAM – CHECKLISTY ===== */

.shopping-section-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.shopping-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 14px;
}

.shopping-plan-select {
    margin-bottom: 14px;
}

    .shopping-plan-select label {
        font-size: 0.85rem;
        font-weight: 600;
        margin-right: 8px;
    }

    .shopping-plan-select select {
        padding: 6px 8px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 0.9rem;
    }

.shopping-checklist {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    max-height: 220px;
    overflow-y: auto;
}

.shopping-checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

    .shopping-checklist-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

.shopping-update-row {
    margin: 12px 0;
}

/* Modál pro ingredience – šířka */
.ingredients-window {
    max-width: 420px;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-divider {
        display: none;
    }
}

/* MODAL – INGREDIENCE */

.ingredients-window {
  max-width: 420px;
}

.ingredient-row {
  margin-bottom: 16px;
}

.ingredient-row label {
  font-size: 0.9rem;
  font-weight: 600;
}

.ingredient-input {
  margin-top: 4px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.ingredient-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 1px #16a34a20;
}

/* Nákupní seznam – checklist */
.shopping-checklist {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    max-height: 220px;
    overflow-y: auto;
}

.shopping-checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

    .shopping-checklist-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

/* Modál pro ingredience – trochu užší */
.ingredients-window {
    max-width: 420px;
}

/* ===== MŮJ PROFIL – FINÁLNÍ VERZE ===== */

/* hlavička sekce Můj profil */
.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.profile-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.profile-top-buttons {
    display: flex;
    gap: 12px;
}

    .profile-top-buttons .button {
        padding-inline: 18px;
    }

/* dvousloupcový layout – profil vlevo, nákupní seznam vpravo */
.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 1px minmax(0, 1.3fr);
    gap: 40px;
    align-items: flex-start;
}

/* svislá dělící čára */
.profile-divider {
    background: #e5e7eb;
    width: 1px;
    height: 100%;
}

/* nadpisy sekcí */
.profile-section-title,
.shopping-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* text pod nadpisem vpravo */
.shopping-subtitle {
    font-size: 0.92rem;
    color: #6b7280;
    max-width: 460px;
    margin-bottom: 18px;
}

/* formuláře vlevo */
.profile-form-group {
    margin-bottom: 14px;
}

    .profile-form-group label {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

.profile-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

    .profile-input:focus {
        outline: none;
        border-color: #16a34a;
        box-shadow: 0 0 0 1px #16a34a33;
    }

/* tlačítka vlevo pod heslem */
.profile-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

/* výběr plánu vpravo */
.shopping-plan-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

    .shopping-plan-select label {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .shopping-plan-select select {
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 0.9rem;
    }

/* checklist boxy */
.shopping-checklist {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    max-height: 210px;
    overflow-y: auto;
}

.shopping-checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

    .shopping-checklist-item:last-child {
        margin-bottom: 0;
    }

    .shopping-checklist-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

/* řádek s tlačítkem „Upravit“ */
.shopping-update-row {
    margin: 14px 0 18px;
}

/* modál na úpravu ingrediencí */
.ingredients-window {
    max-width: 420px;
}

@media (max-width: 980px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-divider {
        display: none;
    }

    .profile-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .profile-top-buttons {
        align-self: flex-start;
    }
}

/* ===== ADMIN HLAVIČKA A VYHLEDÁVÁNÍ ===== */

.admin-header-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-header-search h1 {
    font-size: 2rem;
    margin: 0;
    color: #1f2937;
}

.search-bar-wrapper {
    position: relative;
    width: 300px; /* Nastavení šířky search baru */
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 40px; /* Padding vlevo kvůli ikoně */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #035300;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* ===== ADMIN TABULKA UŽIVATELŮ (.data-table) ===== */

.data-table {
    width: 100%;
    border-collapse: collapse; /* Odstraní mezery mezi buňkami */
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px; /* Kulaté rohy */
    overflow: hidden; /* Důležité pro oříznutí obsahu v rozích */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Jemné stínování */
}

/* Styly pro hlavičku a buňky */
.data-table th,
.data-table td {
    padding: 14px 18px; /* Větší padding pro lepší čitelnost */
    text-align: left;
    border-bottom: 1px solid #e5e7eb; /* Jen oddělení řádků, žádné vertikální čáry */
}

.data-table th {
    background-color: #f9fafb; /* Světle šedé pozadí hlavičky */
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Střídání barev řádků (Striped Rows) */
.data-table tbody tr:nth-child(even) {
    background-color: #f7f7f7; /* Mírně šedé pozadí pro sudé řádky */
}

.data-table tbody tr:hover {
    background-color: #f3f4f6;
}

/* Akční tlačítka */
.button-danger {
    background-color: #dc2626;
    color: white;
    border: 1px solid #dc2626;
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-danger:hover {
    background-color: #b91c1c;
}

/* ===== Moje recepty & Můj plán – nové styly ===== */

.user-plan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.user-plan-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.user-plan-tab {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 0.85rem;
}

    .user-plan-tab.active {
        border-color: #16a34a;
        background: #dcfce7;
        color: #166534;
    }

.user-plan-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.user-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    margin: 12px 0 8px;
}

.user-plan-calendar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-size: 0.85rem;
}

.user-plan-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.8rem;
}

    .user-plan-calendar th,
    .user-plan-calendar td {
        padding: 4px 6px;
        text-align: center;
    }

    .user-plan-calendar th {
        font-weight: 600;
        color: #4b5563;
    }

    .user-plan-calendar td {
        color: #6b7280;
    }

        .user-plan-calendar td.today {
            background: #dcfce7;
            border-radius: 999px;
            font-weight: 600;
            color: #166534;
        }

.user-plan-section {
    margin-top: 26px;
}

    .user-plan-section h2 {
        margin-bottom: 10px;
    }

.user-plan-ingredients-list {
    list-style: disc;
    padding-left: 20px;
}

/* Moje recepty – list */

.my-recipes-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.my-recipes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-recipes-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.my-recipes-card-meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.my-recipes-card h3 {
    margin-bottom: 6px;
}

.my-recipes-card-image {
    background: #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Tvorba receptu / plánu */

.create-page-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.upload-box {
    width: 260px;
    height: 200px;
    border-radius: 16px;
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
    padding: 12px;
    color: #6b7280;
}

/* Tabulka pro tvorbu plánu */

.mealplan-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

    .mealplan-table th,
    .mealplan-table td {
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .mealplan-table th {
        background: #f9fafb;
        text-align: left;
        font-weight: 600;
    }

    .mealplan-table select {
        width: 100%;
        padding: 6px 8px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 0.85rem;
    }

/* placeholder položka v selectu – "Vyhledat recept…" */
select.profile-input option.select-placeholder {
    color: #9ca3af; /* světle šedý text */
    background-color: #f9fafb;
    font-style: italic;
}

    /* pro jistotu, aby ji nešlo omylem zvolit (už je disabled, ale kdyby něco) */
    select.profile-input option.select-placeholder:checked {
        background-color: #f9fafb;
    }

/* ===== MŮJ PLÁN – LAYOUT ===== */

/* řádek: Můj plán + tlačítko vpravo */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* záložky (Snídaně / Svačina 1 / …) */
.plan-tabs {
    display: inline-flex;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 4px;
    gap: 4px;
    margin-bottom: 8px;
    margin-top: 8px;
}

.plan-tab {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #4b5563;
}

    .plan-tab.active {
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15,23,42,0.08);
        color: #16a34a;
        font-weight: 500;
    }

.plan-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0 20px;
}

/* horní část: detail jídla + kalendář */
.plan-top-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.plan-meal-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* box s obrázkem a statistikami */
.plan-main-box {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15,23,42,0.06);
}

/* obrázek/placeholder receptu */
.plan-image-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-image-box {
    width: 100%;
    min-height: 160px;
    border-radius: 16px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-image-placeholder {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* pravý sloupec v boxu – Komplexita / Doba přípravy / Počet porcí */
.plan-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item-small-box {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

    .info-item-small-box .label {
        display: block;
        font-size: 0.8rem;
        color: #6b7280;
        margin-bottom: 2px;
    }

    .info-item-small-box .value {
        font-weight: 600;
    }

/* ===== KALENDÁŘ VPRAVO ===== */

.plan-calendar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 25px rgba(15,23,42,0.06);
    font-size: 0.85rem;
}

.plan-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.plan-calendar {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

    .plan-calendar th,
    .plan-calendar td {
        text-align: center;
        padding: 4px 6px;
    }

    .plan-calendar th {
        color: #4b5563;
        font-weight: 600;
    }

    .plan-calendar td {
        color: #6b7280;
    }

        .plan-calendar td.today {
            background: #dcfce7;
            border-radius: 999px;
            font-weight: 700;
            color: #166534;
        }

.plan-calendar-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== SPODNÍ ČÁST – INGREDIENCE + POSTUP ===== */

.plan-bottom {
    margin-top: 28px;
}

.recipe-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: flex-start;
}

.recipe-ingredients-block,
.recipe-instructions-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(15,23,42,0.05);
}

    .recipe-ingredients-block h2,
    .recipe-instructions-block h2 {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .recipe-ingredients-block ul {
        padding-left: 20px;
    }

    .recipe-instructions-block ol {
        padding-left: 20px;
    }

    .recipe-instructions-block li + li {
        margin-top: 4px;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .plan-top-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan-main-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .recipe-content-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== ZÁLOŽKY V MŮJ PLÁN – ČISTĚ CSS ===== */

/* wrapper kolem radio buttonů + záložek + obsahu */
.plan-tabs-wrapper {
    margin-top: 8px;
}

    /* radio buttony schováme – slouží jen pro logiku :checked */
    .plan-tabs-wrapper input[type="radio"] {
        display: none;
    }

/* Základní vzhled záložek už máš,
   tady jen doplníme aktivní stav podle :checked */

/* výchozí – všechny záložky vypadají jako neaktivní */
.plan-tab {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #4b5563;
}

/* aktivní záložka – pro každé radio zvlášť */
#tab-snidane:checked ~ .plan-tabs label[for="tab-snidane"],
#tab-svacina1:checked ~ .plan-tabs label[for="tab-svacina1"],
#tab-obed:checked ~ .plan-tabs label[for="tab-obed"],
#tab-svacina2:checked ~ .plan-tabs label[for="tab-svacina2"],
#tab-vecere:checked ~ .plan-tabs label[for="tab-vecere"] {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15,23,42,0.12);
    color: #16a34a;
    font-weight: 500;
}

/* obsah jednotlivých tabů – defaultně skrytý */
.plan-content {
    display: none;
}

/* podle toho, které radio je zaškrtnuté, ukážeme konkrétní obsah */
#tab-snidane:checked ~ .plan-contents .content-snidane {
    display: block;
}

#tab-svacina1:checked ~ .plan-contents .content-svacina1 {
    display: block;
}

#tab-obed:checked ~ .plan-contents .content-obed {
    display: block;
}

#tab-svacina2:checked ~ .plan-contents .content-svacina2 {
    display: block;
}

#tab-vecere:checked ~ .plan-contents .content-vecere {
    display: block;
}

/* ===== RECEPTY – HLAVIČKA ===== */

.recipes-header {
    text-align: center;
    margin-bottom: 32px;
    margin-top: 10px;
}

.recipes-header-row {
    display: flex;
    align-items: center;
    justify-content: center; /* nadpis uprostřed */
    position: relative;
    margin-bottom: 6px;
}

/* tlačítko napravo, ale bez narušení centrování nadpisu */
.recipes-create-btn {
    position: absolute;
    right: 0;
}

/* nadpis */
.recipes-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* podnadpis */
.recipes-subtitle {
    color: #6b7280;
    margin-bottom: 20px;
}



