/**
 * Site Theme - Layout Variants
 * Hero și Feed layout options
 */

/* ==========================================================================
   HERO LAYOUTS
   ========================================================================== */

/* --- Hero Default (cu sidebar lateral) - moștenit din style.css --- */
.n24-hero.n24-hero-default {
    display: grid;
    grid-template-columns: 1fr var(--n24-sidebar-width);
    gap: 10px;
    padding: var(--n24-gap-lg) 0;
}

/* --- Hero Full Width (fără sidebar) --- */
.n24-hero.n24-hero-full {
    display: block !important;
    grid-template-columns: none !important;
    padding: var(--n24-gap-lg) 0;
}

.n24-hero-full-item {
    display: block;
    position: relative;
    border-radius: var(--n24-radius);
    overflow: hidden;
    box-shadow: var(--n24-shadow-hover);
    min-height: 550px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.n24-hero-full-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.n24-hero-full-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.n24-hero-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.n24-hero-full-item:hover .n24-hero-full-image img {
    transform: scale(1.05);
}

.n24-hero-full-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.5) 40%,
        rgba(0,0,0,0.1) 70%,
        transparent 100%
    );
}

.n24-hero-full-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: #fff;
    z-index: 2;
}

.n24-hero-category {
    display: inline-block;
    background: var(--n24-accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.n24-hero-full-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.n24-hero-full-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    max-width: 700px;
}

.n24-hero-full-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* --- Hero Below (articol mare + articole DEDESUBT stil sidebar) --- */
.n24-hero.n24-hero-below {
    display: block !important;
    grid-template-columns: none !important;
    padding: var(--n24-gap-lg) 0;
}

.n24-hero-below .n24-hero-full-item {
    width: 100%;
    margin-bottom: 20px;
}

.n24-hero-below-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    clear: both;
}

/* Hero items în grid-ul below - stil sidebar (imagine + text lateral) */
.n24-hero-below-grid .n24-hero-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    background: var(--n24-bg);
    border-radius: var(--n24-radius);
    padding: 12px;
    box-shadow: var(--n24-shadow);
    transition: all 0.3s ease;
}

.n24-hero-below-grid .n24-hero-item:hover {
    box-shadow: var(--n24-shadow-hover);
}

.n24-hero-below-grid .n24-hero-item-image {
    width: 100px;
    height: 75px;
    overflow: hidden;
    border-radius: calc(var(--n24-radius) - 4px);
}

.n24-hero-below-grid .n24-hero-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.n24-hero-below-grid .n24-hero-item:hover .n24-hero-item-image img {
    transform: scale(1.05);
}

.n24-hero-below-grid .n24-hero-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.n24-hero-below-grid .n24-hero-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--n24-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.n24-hero-below-grid .n24-hero-item:hover .n24-hero-item-title {
    color: var(--n24-accent);
}


/* ==========================================================================
   FEED LAYOUTS
   ========================================================================== */

/* --- Feed Full Width (fără sidebar) --- */
.n24-main-full {
    padding: var(--n24-gap-lg) 0;
}

/* --- Feed Cards Grid --- */
section.n24-feed.n24-feed-cards,
.n24-feed.n24-feed-cards {
    display: grid !important;
    flex-direction: unset !important;
    gap: 20px !important;
}

section.n24-feed.n24-feed-cards.n24-feed-cols-1,
.n24-feed.n24-feed-cards.n24-feed-cols-1 {
    grid-template-columns: 1fr !important;
}

section.n24-feed.n24-feed-cards.n24-feed-cols-2,
.n24-feed.n24-feed-cards.n24-feed-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

section.n24-feed.n24-feed-cards.n24-feed-cols-3,
.n24-feed.n24-feed-cards.n24-feed-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

section.n24-feed.n24-feed-cards.n24-feed-cols-4,
.n24-feed.n24-feed-cards.n24-feed-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* --- Feed List pe mai multe coloane --- */
section.n24-feed.n24-feed-cols-1:not(.n24-feed-cards),
.n24-feed.n24-feed-cols-1:not(.n24-feed-cards) {
    display: flex !important;
    flex-direction: column !important;
}

section.n24-feed.n24-feed-cols-2:not(.n24-feed-cards),
section.n24-feed.n24-feed-cols-3:not(.n24-feed-cards),
section.n24-feed.n24-feed-cols-4:not(.n24-feed-cards),
.n24-feed.n24-feed-cols-2:not(.n24-feed-cards),
.n24-feed.n24-feed-cols-3:not(.n24-feed-cards),
.n24-feed.n24-feed-cols-4:not(.n24-feed-cards) {
    display: grid !important;
    flex-direction: unset !important;
    gap: 15px !important;
}

section.n24-feed.n24-feed-cols-2:not(.n24-feed-cards),
.n24-feed.n24-feed-cols-2:not(.n24-feed-cards) {
    grid-template-columns: repeat(2, 1fr) !important;
}

section.n24-feed.n24-feed-cols-3:not(.n24-feed-cards),
.n24-feed.n24-feed-cols-3:not(.n24-feed-cards) {
    grid-template-columns: repeat(3, 1fr) !important;
}

section.n24-feed.n24-feed-cols-4:not(.n24-feed-cards),
.n24-feed.n24-feed-cols-4:not(.n24-feed-cards) {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Feed items pe coloane - ajustări */
.n24-feed.n24-feed-cols-2 .n24-feed-item,
.n24-feed.n24-feed-cols-3 .n24-feed-item,
.n24-feed.n24-feed-cols-4 .n24-feed-item {
    grid-template-columns: 100px 1fr;
    gap: 12px;
}

.n24-feed.n24-feed-cols-3 .n24-feed-item,
.n24-feed.n24-feed-cols-4 .n24-feed-item {
    grid-template-columns: 90px 1fr;
    gap: 10px;
}

.n24-feed.n24-feed-cols-2 .n24-feed-image,
.n24-feed.n24-feed-cols-3 .n24-feed-image,
.n24-feed.n24-feed-cols-4 .n24-feed-image {
    width: 100%;
    height: 70px;
}

.n24-feed.n24-feed-cols-2 .n24-feed-title,
.n24-feed.n24-feed-cols-3 .n24-feed-title,
.n24-feed.n24-feed-cols-4 .n24-feed-title {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.n24-feed.n24-feed-cols-3 .n24-feed-title,
.n24-feed.n24-feed-cols-4 .n24-feed-title {
    font-size: 13px;
}

.n24-feed.n24-feed-cols-2 .n24-feed-excerpt,
.n24-feed.n24-feed-cols-3 .n24-feed-excerpt,
.n24-feed.n24-feed-cols-4 .n24-feed-excerpt {
    display: none;
}

.n24-feed.n24-feed-cols-2 .n24-feed-meta,
.n24-feed.n24-feed-cols-3 .n24-feed-meta,
.n24-feed.n24-feed-cols-4 .n24-feed-meta {
    font-size: 11px;
}

/* Carduri mai mari în grid fără sidebar */
.n24-main-full .n24-feed-cards.n24-feed-cols-2 {
    gap: 25px;
}

.n24-main-full .n24-feed-cards.n24-feed-cols-3 {
    gap: 20px;
}

/* Card stil actualizat pentru feed */
.n24-feed-cards .n24-card {
    display: flex;
    flex-direction: column;
    background: var(--n24-bg);
    border-radius: var(--n24-radius);
    overflow: hidden;
    box-shadow: var(--n24-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.n24-feed-cards .n24-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--n24-shadow-hover);
}

.n24-feed-cards .n24-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.n24-feed-cards .n24-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.n24-feed-cards .n24-card:hover .n24-card-image img {
    transform: scale(1.05);
}

.n24-feed-cards .n24-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.n24-feed-cards .n24-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--n24-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.n24-feed-cards .n24-card:hover .n24-card-title {
    color: var(--n24-accent);
}

.n24-feed-cards .n24-card-meta {
    margin-top: auto;
    font-size: 13px;
    color: var(--n24-text-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .n24-hero-below-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .n24-feed-cards.n24-feed-cols-3,
    .n24-feed-cards.n24-feed-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .n24-feed.n24-feed-cols-3:not(.n24-feed-cards),
    .n24-feed.n24-feed-cols-4:not(.n24-feed-cards) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Hero Full */
    .n24-hero-full-item {
        min-height: 400px;
    }
    
    .n24-hero-full-content {
        padding: 25px;
    }
    
    .n24-hero-full-title {
        font-size: 24px;
    }
    
    /* Hero Default - devine full */
    .n24-hero-default {
        grid-template-columns: 1fr;
    }
    
    .n24-hero-default .n24-hero-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }
    
    /* Hero Below */
    .n24-hero-below-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    /* Feed Cards */
    .n24-feed-cards.n24-feed-cols-2,
    .n24-feed-cards.n24-feed-cols-3,
    .n24-feed-cards.n24-feed-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .n24-main-full .n24-feed-cards.n24-feed-cols-2,
    .n24-main-full .n24-feed-cards.n24-feed-cols-3,
    .n24-main-full .n24-feed-cards.n24-feed-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Feed List pe coloane */
    .n24-feed.n24-feed-cols-2:not(.n24-feed-cards),
    .n24-feed.n24-feed-cols-3:not(.n24-feed-cards),
    .n24-feed.n24-feed-cols-4:not(.n24-feed-cards) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .n24-hero-full-item {
        min-height: 320px;
    }
    
    .n24-hero-full-content {
        padding: 20px;
    }
    
    .n24-hero-full-title {
        font-size: 20px;
    }
    
    .n24-hero-default .n24-hero-sidebar {
        grid-template-columns: 1fr;
    }
    
    .n24-hero-below-grid {
        grid-template-columns: 1fr !important;
    }
    
    .n24-main-full .n24-feed-cards.n24-feed-cols-2,
    .n24-main-full .n24-feed-cards.n24-feed-cols-3,
    .n24-main-full .n24-feed-cards.n24-feed-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .n24-feed-cards .n24-card-title {
        font-size: 16px;
    }
    
    .n24-feed-cards .n24-card-content {
        padding: 15px;
    }
}


/* ==========================================================================
   SPECIAL THEME ADJUSTMENTS FOR LAYOUTS
   ========================================================================== */

/* Beauty theme - hero full softer */
.theme-beauty .n24-hero-full-overlay {
    background: linear-gradient(
        to top,
        rgba(45,45,45,0.9) 0%,
        rgba(45,45,45,0.4) 50%,
        transparent 100%
    );
}

.theme-beauty .n24-hero-category {
    background: var(--n24-gradient);
    border-radius: 20px;
}

.theme-beauty .n24-hero-full-title {
    font-family: var(--n24-font);
    font-style: italic;
}

/* Business theme - hero full corporate */
.theme-business .n24-hero-full-item {
    border-radius: var(--n24-radius);
    border-bottom: 4px solid var(--n24-accent-gold);
}

.theme-business .n24-hero-category {
    background: var(--n24-accent-gold);
    color: var(--n24-primary);
    border-radius: 2px;
}

.theme-business .n24-hero-full-title {
    font-family: var(--n24-font);
}

/* Travel theme - hero full vibrant */
.theme-travel .n24-hero-full-overlay {
    background: linear-gradient(
        to top,
        rgba(0,96,100,0.9) 0%,
        rgba(0,96,100,0.3) 50%,
        transparent 100%
    );
}

.theme-travel .n24-hero-category {
    background: var(--n24-accent-warm);
    border-radius: 20px;
}

.theme-travel .n24-hero-full-item::before {
    content: '✈️';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    z-index: 3;
    opacity: 0.8;
}

/* Sport theme - hero full bold */
.theme-sport .n24-hero-full-item {
    border-radius: 0;
    border-left: 6px solid var(--n24-accent);
}

.theme-sport .n24-hero-full-overlay {
    background: linear-gradient(
        to top,
        rgba(26,26,26,0.95) 0%,
        rgba(26,26,26,0.5) 50%,
        transparent 100%
    );
}

.theme-sport .n24-hero-category {
    background: var(--n24-accent);
    border-radius: 0;
    font-family: var(--n24-font);
    letter-spacing: 2px;
}

.theme-sport .n24-hero-full-title {
    font-family: var(--n24-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-sport .n24-hero-full-item::after {
    content: 'EXCLUSIV';
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--n24-accent);
    color: #fff;
    font-family: var(--n24-font);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    letter-spacing: 2px;
    z-index: 3;
}
