/* hostgator/assets/css/pages/ideje_v2.css */

.ideja-container {
    padding-bottom: 50px;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 10px 20px 10px !important;
}

.ideja-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background-color: #111;
    display: flex;
    flex-direction: column;
}

.ideja-hero-bg {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.ideja-hero-content {
    position: relative;
    margin-top: -120px;
    padding: 70px 20px 30px 20px;
    background: linear-gradient(to bottom, transparent 0%, rgba(17,17,17,0.8) 70px, #111 120px, #111 100%);
    text-align: center;
    z-index: 2;
}

.ideja-title {
    font-size: 2.2rem;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.4);
    line-height: 1.3;
}

/* 1. BARVE ZA DARK MODE IN RESET */
.ideja-seo-text p,
.ideja-seo-text span,
.ideja-seo-text div,
.ideja-seo-text h1,
.ideja-seo-text h2,
.ideja-seo-text h3,
.ideja-seo-text h4,
.ideja-seo-text h5,
.ideja-seo-text h6,
.ideja-seo-text li,
.malice-blend-manual p,
.malice-blend-manual span,
.malice-blend-manual div,
.malice-blend-manual h1,
.malice-blend-manual h2,
.malice-blend-manual h3,
.malice-blend-manual h4,
.malice-blend-manual h5,
.malice-blend-manual h6,
.malice-blend-manual li {
    color: var(--text-main) !important;
}

/* Izjema za naslove na mini karticah znotraj SEO teksta, ti morajo biti vedno beli zaradi overlay-a */
.ideja-seo-text .v2-list-title,
.malice-blend-manual .v2-list-title {
    color: #ffffff !important;
}

.ideja-seo-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main) !important;
    text-shadow: none;
}

/* SEO text formatting within idea content */
.ideja-seo-text h2, .ideja-seo-text h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.3;
}

/* Zlato pravilo za "Vaš lokal" */
.highlight-primary {
    color: var(--primary) !important;
    font-weight: bold;
}

/* Ločnica in postavitve za closure card */
.ideja-closure-card {
    text-align: center;
}

.closure-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 30px auto;
    width: 80%;
}

.ideja-closure-card .listicle-cta-wrap {
    margin-top: 25px;
    margin-bottom: 10px;
}

.ideja-closure-card .hero-cta-btn {
    font-size: 1rem;
    padding: 12px 24px;
}

.ideja-extra-box-card .ideja-seo-text {
    padding-top: 15px; /* Dodan padding zgoraj, ko se vsebina odpre */
}

.ideja-seo-text-p-reset p {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

.ideja-seo-text-p-reset p:last-child {
    margin-bottom: 0 !important;
}

/* RESTAURANT CARD OVERRIDE (Fix height issues from style.css) */
.restaurant-card {
    padding: 20px;
    border-radius: var(--card-radius, 24px);
    background-color: var(--bg-block) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 15px var(--card-shadow, rgba(0,0,0,0.05));
    display: flex;
    flex-direction: column;
    overflow: visible !important; 
    position: relative;
    height: auto !important; /* OVERRIDE 525px from style.css */
    min-height: 0 !important;
    margin-bottom: 40px;
}

.ideja-box-content {
    padding: 0 20px 20px 20px;
}

.ideja-box-title {
    margin-top: 15px; 
    margin-bottom: 15px; 
    font-size: 1.5rem; 
    color: var(--text-main) !important;
}

.ideja-extra-box-card.danes {
    margin-bottom: 15px; /* Srednji razmik */
    padding: 0;
}

.ideja-extra-box-card.danes .malice-accordion-header {
    padding: 18px 20px; /* Ravno pravšnji padding, ne preveč stisnjen, ne prevelik */
    min-height: 55px; 
}

.ideja-box-accordion-spacer {
    display: none; /* Odstranjena spodnja črta pod naslovom */
}

.ideja-closure-card {
    margin-bottom: 40px; 
    padding: 25px; 
}

.ideja-closure-card a {
    color: var(--primary) !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.ideja-closure-card a:hover {
    opacity: 0.8;
}

.ideja-accordion-header {
    padding: 20px;
}

.ideja-accordion-title {
    margin: 0; 
    font-size: 1.3rem; 
    display: flex; 
    align-items: center; 
    color: var(--text-main) !important;
}

.ideja-extra-box-card {
    margin-bottom: 40px; 
    padding: 0;
    overflow: visible !important;
}

.ideja-extra-box-card.danes {
    margin-bottom: 20px;
}

.malice-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.malice-accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.malice-accordion-header.active .malice-accordion-icon {
    transform: rotate(180deg);
}

.malice-accordion-body {
    display: none; /* Skrito v osnovi */
    padding-top: 0; 
    margin-top: 0; 
    border-top: none;
}

/* CTA BUTTON OVERRIDE ZA IDEJE */
.ideja-seo-text .btn-primary,
.ideja-seo-text .listicle-cta-wrap a,
.standard-card-body .cta-wrap a,
.standard-card-body .btn-primary {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important; /* Malo manjši/ožji gumb */
    margin: 25px auto 15px auto !important; /* Dodan spacing zgoraj */
    background-color: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px !important; /* Malo manjši padding */
    border-radius: var(--radius-sm, 12px) !important;
    font-size: 15px !important; /* Malo manjša pisava */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important; /* Odstranjen glow effect */
    text-align: center !important;
    text-decoration: none !important;
}

.ideja-seo-text .btn-primary:hover,
.ideja-seo-text .listicle-cta-wrap a:hover,
.standard-card-body .cta-wrap a:hover,
.standard-card-body .btn-primary:hover {
    opacity: 0.9 !important;
}

.ideja-gallery-container {
    width: 100%; 
    max-width: 100%; 
    overflow: hidden; 
    position: relative; 
    flex-shrink: 0; 
    padding: 20px 20px 0 20px;
}

.ideja-gallery-swiper {
    width: 100%;
}

.ideja-gallery-slide {
    width: 82%; 
    max-width: 300px;
}

.ideja-gallery-content {
    width: 100%; 
    height: 200px;
}

.ideja-gallery-img {
    border-radius: 8px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.malice-card {
    margin-bottom: 20px; 
    padding: 20px; 
}

.malice-badge-row {
    display: flex; 
    justify-content: flex-end; 
    margin-bottom: 15px;
}

.malice-btn-wrap {
    text-align: right;
}

.malice-btn {
    display: inline-block; 
    text-decoration: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: bold;
}

.standard-card-title {
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.standard-card-badges {
    margin-top: 15px; 
    border-bottom: none;
}

.standard-card-badges-inner {
    width: 100%; 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--text-muted);
}

.standard-card-rating {
    color: #FDB931;
}

/* Allow text to scroll if it's too long in standard cards */
.standard-card-body {
    overflow: visible !important;
    height: auto !important;
    padding-top: 20px !important;
}

.tags-scroll-wrap {
    width: auto; 
    display: inline-flex; 
    max-width: 100%;
}

/* Ensure gallery container doesn't break out */
.gallery-wrap {
    width: 100%; 
    max-width: 100%; 
    overflow: hidden; 
    position: relative; 
    flex-shrink: 0;
    margin-bottom: 5px;
}

.gallery-swiper {
    margin-top: 15px; 
    width: 100%;
}

.listicle-text-wrap {
    margin-top: 0px;
}

.cta-wrap {
    margin-top: 15px; 
    text-align: center;
}

.ideja-hero-spacer {
    margin-bottom: 20px;
}

.ideja-interactions-card {
    margin: 0 auto 40px auto; 
    padding: 15px; 
    width: 100%; 
    max-width: 100%;
}

.ideja-interactions-wrap {
    justify-content: center;
}

.card-header-uniform {
    padding: 15px 15px 0 15px; 
    border-bottom: none; 
    background: transparent !important; 
    border-radius: 24px 24px 0 0; 
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    text-align: center;
    margin: -20px -20px 0 -20px; 
    width: calc(100% + 40px); 
    min-height: 110px;
    height: auto !important;
    overflow: hidden;
}

.card-header-uniform h3 {
    margin: 0;
    font-size: 1.25rem; 
    line-height: 1.2;
    color: var(--text-main) !important; 
    font-family: var(--font-main); 
    text-transform: uppercase !important; 
    word-wrap: break-word;
    max-width: 100%;
    border-bottom: none; 
    padding-bottom: 0; 
    margin-bottom: 0; 
    width: 100%;
    background: transparent;
    text-align: center;
    height: auto !important; 
    min-height: 34px; 
}

.header-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px; 
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px; 
    width: 100%;
    margin-top: 4px; 
}

.badge-cat-2 {
    background-color: var(--bg-block) !important;
    color: var(--text-main) !important;
    border: none !important;
    border-radius: 6px;
    padding: 0 10px;
    height: 24px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: none !important;
}

.badge-cat-3.rating {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%) !important; 
    color: #333 !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3); 
    font-weight: 800;
}

/* Content */
.card-body { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    padding-right: 5px; 
    height: auto !important; 
    padding-top: 0 !important; 
    overflow: visible !important;
}

.badges-grid {
    display: flex !important;
    flex-direction: row !important; 
    flex-wrap: wrap !important;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.zgodbe-tags-scroll {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; 
    justify-content: center; 
    padding: 15px;
    margin-top: 0px;
    margin-bottom: 0px;
    max-height: 130px; 
    overflow-y: auto; 
    background-color: var(--bg-block); 
    border: 1px solid var(--border-color); 
    border-radius: 16px;
    align-content: flex-start;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.badge-cat-1 {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important; 
    font-size: 13px !important; 
    font-weight: 500 !important; 
    text-transform: lowercase;
    padding: 0 16px !important; 
    border-radius: 12px !important; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    height: 38px !important; 
    white-space: nowrap;
    text-decoration: none !important; 
    transition: all 0.2s ease;
    cursor: pointer;
}

.badge-cat-1:hover {
    background-color: var(--bg-block) !important;
    border-color: var(--primary) !important;
}

.listicle-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
}

.story-interactions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
    clear: both; 
    width: 100%;
    box-sizing: border-box;
}

.interaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    text-decoration: none;
}

.interaction-btn span {
    color: var(--text-main) !important;
}

.interaction-btn i {
    color: var(--text-main) !important;
}

.like-btn.active i {
    color: #e0245e !important;
}

.interaction-btn:hover {
    background: var(--bg-block) !important;
    border-color: var(--primary) !important;
    color: var(--text-main) !important;
}

.like-btn.active {
    color: #e0245e !important;
    border-color: #e0245e !important;
    background: rgba(224, 36, 94, 0.1) !important;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main) !important;
}

/* Malice Layout overrides */
.malice-accordion-header h3 {
    color: var(--text-main) !important;
}

.malice-accordion-icon {
    color: var(--text-muted);
}

.malice-accordion-body {
    border-top: 1px solid var(--border-color);
}

.malice-blend-container {
    background-color: var(--bg-block);
    color: var(--text-main);
}

@media (max-width: 768px) {
    .ideja-hero-bg {
        height: 300px;
    }
    .ideja-title {
        font-size: 1.8rem;
    }
    .ideja-hero-content {
        margin-top: -100px;
        padding: 60px 15px 30px 15px;
        background: linear-gradient(to bottom, transparent 0%, rgba(17,17,17,0.8) 60px, #111 100px, #111 100%);
    }
}
/* IDEJA V2 - Extracted from PHP inline styles */
.ideja-hero-wrap { margin-bottom: 20px; }
.ideja-seo-box { height: auto !important; overflow: visible !important; margin-bottom: 40px; padding: 20px !important; display: block !important; }
.ideja-seo-text-wrap { text-shadow: none; color: var(--text-main); font-size: 1.1rem; line-height: 1.6; }
.ideja-extra-box-danes { height: auto !important; overflow: hidden !important; margin-bottom: 20px; display: block !important; padding: 0 !important; }
.ideja-extra-box-normal { height: auto !important; overflow: hidden !important; margin-bottom: 40px; display: block !important; padding: 0 !important; }
.ideja-acc-header { padding: 20px; }
.ideja-acc-title { margin: 0; font-size: 1.3rem; display: flex; align-items: center; color: var(--text-main); }
.ideja-acc-body { padding-top: 0; margin-top: 0; border-top: none; }
.ideja-gallery-wrap { width: 100%; max-width: 100%; overflow: hidden; position: relative; flex-shrink: 0; padding: 20px 20px 0 20px; }
.ideja-gallery-wrap-no-pad { width: 100%; max-width: 100%; overflow: hidden; position: relative; flex-shrink: 0; }
.ideja-swiper-full { width: 100%; }
.ideja-swiper-mt { margin-top: 15px; width: 100%; }
.ideja-slide { width: 82%; max-width: 300px; }
.ideja-slide-content { width: 100%; height: 200px; }
.ideja-slide-img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; }
.ideja-box-content { padding: 0 20px 20px 20px; }
.ideja-box-h2 { margin-top: 15px; margin-bottom: 15px; font-size: 1.5rem; color: var(--text-main); }
.ideja-box-spacer-20 { margin-top: 20px; }
.ideja-box-divider { margin-top: 15px; border-top: 1px solid var(--border-color); padding-top: 15px; }
.ideja-malice-card { margin-bottom: 20px; padding: 20px; display: block !important; height: auto !important; }
.ideja-badge-verified { font-size: 0.8em; margin-left: 5px; }
.ideja-city-wrap { display: flex; justify-content: flex-end; margin-bottom: 15px; }
.ideja-city-badge { margin: 0; }
.ideja-btn-wrap-right { text-align: right; }
.ideja-btn-inline { display: inline-block; text-decoration: none; padding: 10px 20px; border-radius: 8px; font-weight: bold; }
.ideja-btn-icon-right { margin-left: 5px; }
.ideja-std-card { margin-bottom: 40px; }
.ideja-std-title { display: flex; align-items: center; justify-content: center; }
.ideja-std-body { padding-top: 20px; overflow-y: auto !important; flex-grow: 1; }
.ideja-tags-wrap { width: auto; display: inline-flex; max-width: 100%; }
.ideja-listicle-mt20 { margin-top: 20px; }
.ideja-cta-center { margin-top: 15px; text-align: center; }
.ideja-btn-auto { text-decoration: none; display: inline-block; width: auto; }
.ideja-closure-box { height: auto !important; overflow: visible !important; margin-bottom: 40px; padding: 25px; display: block !important; }
.ideja-social-box { margin: 0 auto 40px auto; padding: 15px; width: 100%; height: auto !important; max-width: 100%; }
.ideja-social-wrap { justify-content: center; }

/* Swiper Controls Overrides for Ideje Articles */
.ai-gallery-container .swiper-button-next,
.ai-gallery-container .swiper-button-prev,
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev,
.ideja-gallery-swiper .swiper-button-next,
.ideja-gallery-swiper .swiper-button-prev {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.ai-gallery-container .swiper-pagination-bullet,
.gallery-swiper .swiper-pagination-bullet,
.ideja-gallery-swiper .swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.ai-gallery-container .swiper-pagination-bullet-active,
.gallery-swiper .swiper-pagination-bullet-active,
.ideja-gallery-swiper .swiper-pagination-bullet-active {
    background: #ffffff !important;
    opacity: 1;
}
