/*
Theme Name: EkoKuhinja
Description: Eco-friendly seasonal recipe platform with bilingual support
Version: 2.0.0
Author: EkoKuhinja Team
Text Domain: ekokuhinja
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: hsl(80, 31%, 19%);
    background-color: hsl(0, 0%, 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles - Matching Original */
.site-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 1rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: hsl(80, 67%, 16%);
}

.site-title a {
    color: hsl(80, 67%, 16%);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-title::before {
    content: "🌿";
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.site-description {
    display: none;
}

/* Navigation - Matching Original */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid hsl(80, 67%, 16%);
    color: hsl(80, 67%, 16%);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
}

.menu, .default-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu li, .default-menu li {
    margin-left: 2rem;
}

.menu a, .default-menu a {
    color: hsl(80, 31%, 19%);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

.menu a:hover, .default-menu a:hover {
    color: hsl(80, 67%, 16%);
}

.menu a.active, .default-menu a.active {
    color: hsl(80, 67%, 16%);
    font-weight: 500;
}

.menu a.active::after, .default-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: hsl(76, 49%, 44%);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-toggle {
        display: none;
        margin-top: 1rem;
    }
    
    .menu, .default-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .menu li, .default-menu li {
        margin: 0;
        border-top: 1px solid #4A7C59;
    }
    
    .menu a, .default-menu a {
        padding: 1rem 0;
    }
}

/* Main Content */
.site-content {
    min-height: 60vh;
    padding: 2rem 0;
}

/* Hero Section - Matching Original */
.hero {
    background: hsl(48, 33%, 96%);
    padding: 4rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: hsl(80, 67%, 16%);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: hsl(80, 31%, 19%);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-search {
    max-width: 32rem;
    margin: 0 auto 3rem;
    position: relative;
}

.hero form {
    display: flex;
    position: relative;
}

.hero input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid hsl(80, 67%, 16%);
    border-radius: 50px;
    outline: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hero input:focus {
    border-color: hsl(76, 49%, 44%);
}

.hero button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    color: hsl(80, 31%, 19%);
    transition: all 0.3s ease;
}

.hero button:hover {
    background: hsl(76, 49%, 44%);
    color: white;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 2rem;
    color: #2D5016;
    margin-bottom: 2rem;
    text-align: center;
}

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

.recipe-card, .post-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid hsl(0, 0%, 94%);
}

.recipe-card:hover, .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.recipe-card img, .post-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.recipe-content, .post-content {
    padding: 1.5rem;
}

.recipe-card h3, .post-card h3 {
    margin-bottom: 0.75rem;
    color: hsl(80, 67%, 16%);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.recipe-card h3 a, .post-card h3 a {
    text-decoration: none;
    color: inherit;
}

.recipe-card h3 a:hover, .post-card h3 a:hover {
    color: hsl(76, 49%, 44%);
}

.recipe-description, .post-excerpt {
    color: hsl(80, 31%, 19%);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.recipe-meta, .post-meta {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: hsl(0, 0%, 45%);
}

.recipe-meta span, .post-meta span {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: hsl(37, 66%, 67%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Categories Grid */
.categories-grid, .default-categories {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h4 {
    color: #2D5016;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.category-card h4 a {
    text-decoration: none;
    color: inherit;
}

.category-card h4 a:hover {
    color: #4A7C59;
}

.category-card p {
    color: #666;
    margin-bottom: 1rem;
}

.count {
    background: #8FBC8F;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* No Content */
.no-content {
    text-align: center;
    padding: 3rem;
    background: #F0F8E8;
    border-radius: 8px;
}

.no-content h3 {
    color: #2D5016;
    margin-bottom: 1rem;
}

.no-content p {
    color: #666;
    margin-bottom: 1rem;
}

.no-content a {
    background: #2D5016;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.no-content a:hover {
    background: #4A7C59;
}

/* Footer - Matching Original */
.site-footer {
    background: hsl(80, 67%, 16%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: hsl(76, 49%, 44%);
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: hsl(76, 49%, 44%);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links {
    display: none;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: hsl(76, 49%, 44%);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Form Styles */
.form-table {
    width: 100%;
    margin-top: 1rem;
}

.form-table th {
    text-align: left;
    padding: 1rem;
    background: #f9f9f9;
    width: 200px;
}

.form-table td {
    padding: 1rem;
}

.form-table input, .form-table select, .form-table textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Section Spacing */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(80, 67%, 16%);
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: none;
        align-self: flex-end;
        margin-top: -3rem;
    }
    
    .menu, .default-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .menu.active, .default-menu ul.active {
        display: flex;
    }
    
    .menu li, .default-menu li {
        margin: 0;
        border-bottom: 1px solid hsl(0, 0%, 94%);
    }
    
    .menu li:last-child, .default-menu li:last-child {
        border-bottom: none;
    }
    
    .menu a, .default-menu a {
        padding: 1rem 0;
        display: none;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .recipe-grid, .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-grid, .default-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Utility Classes */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* =========================================================================
   Recept (v2) – single-recipe.php, template-parts/recipe-card.php
   ========================================================================= */

.ek-recipe {
    --ek-olive: hsl(80, 67%, 16%);
    --ek-leaf: hsl(76, 49%, 44%);
    --ek-ink: hsl(80, 31%, 19%);
    --ek-cream: hsl(48, 33%, 96%);
    --ek-honey: hsl(37, 66%, 67%);
    --ek-line: hsl(48, 20%, 86%);
    --ek-muted: hsl(80, 10%, 38%);
    color: var(--ek-ink);
    padding: 2.5rem 0 4rem;
}

.ek-recipe__inner {
    max-width: 1080px;
}

/* Glava */
.ek-recipe__header {
    max-width: 44rem;
}

.ek-recipe__kicker {
    font-size: .9rem;
    color: var(--ek-muted);
    margin-bottom: .75rem;
}

.ek-recipe__kicker a {
    color: var(--ek-olive);
    font-weight: 600;
    text-decoration: none;
}

.ek-recipe__kicker a:hover {
    text-decoration: underline;
}

.ek-recipe__kicker span {
    margin: 0 .4rem;
}

.ek-recipe__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ek-olive);
    margin: 0 0 1rem;
}

.ek-recipe__lead {
    font-size: 1.2rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

.ek-recipe__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}

.ek-btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .55rem 1.1rem;
    border: 1.5px solid var(--ek-olive);
    border-radius: 999px;
    background: transparent;
    color: var(--ek-olive);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.ek-btn:hover {
    background: var(--ek-cream);
}

.ek-btn--primary {
    background: var(--ek-olive);
    color: #fff;
}

.ek-btn--primary:hover {
    background: hsl(80, 67%, 12%);
}

.ek-recipe a:focus-visible,
.ek-btn:focus-visible,
.ek-ingredients__list input:focus-visible + label {
    outline: 3px solid var(--ek-honey);
    outline-offset: 2px;
}

/* Slika */
.ek-recipe__image {
    margin: 0 0 1.5rem;
}

.ek-recipe__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    border-radius: 14px;
}

/* Časi, porcije, zahtevnost */
.ek-facts {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 2.5rem;
    border-top: 1px solid var(--ek-line);
    border-bottom: 1px solid var(--ek-line);
}

.ek-facts__item {
    flex: 1 1 8rem;
    padding: .9rem 1.25rem .9rem 0;
}

.ek-facts__item + .ek-facts__item {
    padding-left: 1.25rem;
    border-left: 1px solid var(--ek-line);
}

.ek-facts dt {
    font-size: .85rem;
    color: var(--ek-muted);
}

.ek-facts dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ek-olive);
}

/* Uvodno besedilo */
.ek-recipe__intro {
    max-width: 44rem;
    font-size: 1.075rem;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.ek-recipe__intro p,
.ek-recipe__intro ul,
.ek-recipe__intro ol {
    margin: 0 0 1.1em;
}

.ek-recipe__intro ul,
.ek-recipe__intro ol {
    padding-left: 1.3em;
}

.ek-recipe__intro h2,
.ek-recipe__intro h3 {
    color: var(--ek-olive);
    margin: 1.6em 0 .5em;
    line-height: 1.25;
}

.ek-recipe__intro img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Kartica recepta */
.ek-card {
    scroll-margin-top: 5.5rem;
    border-top: 4px solid var(--ek-olive);
    padding-top: 1.75rem;
}

.ek-card__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--ek-olive);
    margin: 0 0 1.75rem;
    line-height: 1.2;
}

.ek-card__heading {
    font-size: 1.2rem;
    color: var(--ek-olive);
    margin: 0 0 1rem;
}

.ek-card__heading span {
    font-weight: 400;
    color: var(--ek-muted);
    font-size: .95rem;
    margin-left: .35rem;
}

.ek-card__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

@media (min-width: 860px) {
    .ek-card__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
    }

    .ek-ingredients {
        position: sticky;
        top: 5.5rem;
    }
}

.ek-group {
    font-size: 1rem;
    margin: 1.25rem 0 .5rem;
    color: var(--ek-ink);
}

/* Sestavine */
.ek-ingredients {
    background: var(--ek-cream);
    border-radius: 14px;
    padding: 1.5rem;
}

.ek-ingredients__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ek-ingredients__list li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--ek-line);
}

.ek-ingredients__list li:last-child {
    border-bottom: 0;
}

.ek-ingredients__list input {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .2rem;
    accent-color: var(--ek-leaf);
    cursor: pointer;
}

.ek-ingredients__list label {
    cursor: pointer;
    line-height: 1.5;
}

.ek-ingredients__list input:checked + label {
    text-decoration: line-through;
    color: var(--ek-muted);
}

/* Postopek */
.ek-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ek-steps__list li {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0 0 1.5rem;
    scroll-margin-top: 5.5rem;
}

.ek-steps__num {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ek-leaf);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ek-steps__list p {
    margin: .35rem 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 38rem;
}

.ek-steps__list li:target p {
    background: hsl(48, 80%, 90%);
    box-shadow: 0 0 0 .4rem hsl(48, 80%, 90%);
    border-radius: 2px;
}

/* Hranilna vrednost */
.ek-nutrition {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ek-line);
}

.ek-nutrition dl {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2.25rem;
    margin: 0;
}

.ek-nutrition dt {
    font-size: .85rem;
    color: var(--ek-muted);
}

.ek-nutrition dd {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.ek-nutrition__note {
    font-size: .85rem;
    color: var(--ek-muted);
    margin: .75rem 0 0;
}

/* Nasveti */
.ek-notes {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--ek-honey);
    background: hsl(37, 66%, 96%);
    border-radius: 0 10px 10px 0;
    line-height: 1.7;
}

.ek-notes p,
.ek-notes ul {
    margin: 0 0 .75em;
}

.ek-notes ul {
    padding-left: 1.2em;
}

.ek-notes > :last-child {
    margin-bottom: 0;
}

/* Tema centrira "section h2" – v receptu naj bodo naslovi levo. */
.ek-recipe section h2,
.ek-recipe h2,
.ek-recipe h3 {
    text-align: left;
}

.ek-recipe section {
    margin-bottom: 0;
}

/* Oznake in podobni recepti */
.ek-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.5rem 0 0;
}

.ek-tags a {
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--ek-cream);
    color: var(--ek-olive);
    font-size: .9rem;
    text-decoration: none;
}

.ek-tags a:hover {
    background: var(--ek-line);
}

.ek-related {
    margin-top: 4rem;
}

.ek-related h2 {
    color: var(--ek-olive);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.ek-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Kartica recepta v seznamih */
.ek-rcard {
    display: flex;
    flex-direction: column;
}

.ek-rcard__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.ek-rcard__body {
    padding: 1rem 1.1rem 1.25rem;
}

.ek-rcard__title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 .4rem;
}

.ek-rcard__title a {
    color: hsl(80, 67%, 16%);
    text-decoration: none;
}

.ek-rcard__title a:hover {
    text-decoration: underline;
}

.ek-rcard__excerpt {
    font-size: .95rem;
    margin: 0 0 .5rem;
}

.ek-rcard__meta {
    font-size: .85rem;
    color: hsl(80, 10%, 38%);
    margin: 0;
}

@media (max-width: 600px) {
    .ek-facts__item {
        flex-basis: 50%;
        padding: .75rem 0;
    }

    .ek-facts__item + .ek-facts__item {
        padding-left: 0;
        border-left: 0;
    }

    .ek-steps__list li {
        grid-template-columns: 2.25rem minmax(0, 1fr);
        gap: .75rem;
    }

    .ek-steps__num {
        font-size: 1.9rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.ek-recipe) {
        scroll-behavior: smooth;
    }
}

/* Tisk: samo recept */
@media print {
    .site-header,
    .site-footer,
    .elementor-location-header,
    .elementor-location-footer,
    .ek-recipe__actions,
    .ek-recipe__intro,
    .ek-related,
    .ek-tags,
    .ek-ingredients__list input,
    #cmplz-cookiebanner-container,
    .cmplz-cookiebanner {
        display: none !important;
    }

    .ek-recipe {
        padding: 0;
        color: #000;
    }

    .ek-recipe__image img {
        max-height: 7cm;
        width: auto;
    }

    .ek-card {
        border-top: 2px solid #000;
    }

    .ek-card__grid {
        grid-template-columns: 2fr 3fr;
        gap: 1.25rem;
    }

    .ek-ingredients {
        position: static;
        background: none;
        padding: 0;
    }

    .ek-steps__list li {
        break-inside: avoid;
        padding-bottom: .6rem;
    }

    .ek-steps__num {
        font-size: 1.3rem;
        color: #000;
    }

    .ek-notes {
        background: none;
        border-left: 2px solid #000;
    }
}
