/* Section v8 - Spotlight Dark (Premium Dark Theme) */

.section-v8 {
    padding: 40px 0;
    background: var(--section-accent, #0066FF);
    background: color-mix(in srgb, var(--section-accent, #0066FF) 40%, white);
    position: relative;
    overflow: hidden;

    margin: 40px 0 0!important;
    width: unset;
    max-width: 100%;
}

/* Fallback pentru browsere care nu suportă color-mix */
@supports not (background: color-mix(in srgb, red, white)) {
    .section-v8 {
        background: rgba(0, 102, 255, 0.4);
        background-blend-mode: lighten;
    }
}

/* Decorative Pattern Overlay */
.section-v8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-v8-container {
    
    margin: 0 200px;
    
    position: relative;
    z-index: 2;
}

/* === HEADER IDENTICAL TO V7 === */
.section-v8-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
}

.header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.section-v8-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    position: relative;
}

.section-v8-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #ffffff;
}

/* View All Button below header */
.section-v8-nav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

/* === GRID LAYOUT === */
.section-v8-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* === CARD BASE === */
.v8-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.v8-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Accent Border Left */
.v8-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--section-accent, #ec4899);
    transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.v8-card:hover::before {
    height: 100%;
}

/* === TOP ROW: 3 Large Horizontal Cards === */
.row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-large-horizontal {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.card-large-horizontal .card-image-container {
    height: 240px;
    overflow: hidden;
}

.card-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.v8-card:hover .card-bg-image {
    transform: scale(1.08);
}

.card-content-area {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.v8-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--section-accent, #ec4899);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    transition: all 0.3s ease;
}

.v8-card:hover .v8-category {
    background: var(--section-accent, #ec4899);
    color: white;
}

.v8-link {
    text-decoration: none;
    color: inherit;
}

.card-large-horizontal .v8-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
}

.v8-card:hover .v8-title {
    color: var(--section-accent, #ec4899);
}

.v8-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* === MIDDLE ROW: Featured + 2 Small Stack === */
.row-middle {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.card-featured {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.card-featured .card-image-container {
    height: 300px;
    overflow: hidden;
}

.card-featured .card-content-area {
    padding: 36px;
}

.card-featured .v8-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-author {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.meta-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Small Vertical Stack */
.small-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-small-vertical {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 20px;
}

.card-small-vertical .card-image-container {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

.card-small-vertical .card-content-area {
    padding: 0;
    gap: 10px;
}

.card-small-vertical .v8-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}

/* === BOTTOM ROW: 2 Medium Horizontal === */
.row-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card-medium-horizontal {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: 220px;
}

.card-medium-horizontal .card-image-container {
    height: 100%;
    overflow: hidden;
}

.card-medium-horizontal .card-content-area {
    padding: 28px;
}

.card-medium-horizontal .v8-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

/* === RESPONSIVE === */

/* Large Tablet */
@media (max-width: 1200px) {
    .section-v8-container {
        padding: 0 32px;
    }

    .row-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-large-horizontal {
        min-height: auto;
    }

    .row-middle {
        grid-template-columns: 1fr;
    }

    .card-featured {
        min-height: auto;
    }

    .row-bottom {
        grid-template-columns: 1fr;
    }

    .card-medium-horizontal {
        grid-template-columns: 240px 1fr;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .section-v8 {
        padding: 60px 0;
    }

    .section-v8-container {
        padding: 0 20px;
        margin: 0!important;
    }

    .section-v8-header {
        margin-bottom: 32px;
    }

    .section-v8-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .section-v8-nav {
        margin-bottom: 24px;
    }

    .section-v8-grid {
        gap: 24px;
    }

    .card-large-horizontal .card-image-container {
        height: 200px;
    }

    .card-large-horizontal .card-content-area {
        padding: 24px;
    }

    .card-featured .card-image-container {
        height: 240px;
    }

    .card-featured .card-content-area {
        padding: 28px;
    }

    .card-featured .v8-title {
        font-size: 24px;
    }

    .small-stack {
        gap: 20px;
    }

    .card-small-vertical {
        grid-template-columns: 120px 1fr;
        padding: 16px;
    }

    .card-small-vertical .card-image-container {
        width: 120px;
        height: 120px;
    }

    .card-medium-horizontal {
        grid-template-columns: 1fr;
    }

    .card-medium-horizontal .card-image-container {
        height: 200px;
    }

    .card-medium-horizontal .card-content-area {
        padding: 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .section-v8-container {
        padding: 0 16px;
    }

    .section-v8-header {
        gap: 16px;
    }

    .section-v8-title {
        font-size: 20px;
        letter-spacing: 1.5px;
    }

    .card-large-horizontal .card-image-container {
        height: 180px;
    }

    .card-large-horizontal .card-content-area {
        padding: 20px;
    }

    .card-large-horizontal .v8-title {
        font-size: 20px;
    }

    .v8-excerpt {
        font-size: 14px;
    }

    .card-featured .card-image-container {
        height: 200px;
    }

    .card-featured .card-content-area {
        padding: 24px;
    }

    .card-featured .v8-title {
        font-size: 22px;
    }

    .card-small-vertical {
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }

    .card-small-vertical .card-image-container {
        width: 100px;
        height: 100px;
    }

    .card-small-vertical .v8-title {
        font-size: 16px;
    }

    .card-medium-horizontal .card-image-container {
        height: 180px;
    }

    .card-medium-horizontal .card-content-area {
        padding: 20px;
    }

    .card-medium-horizontal .v8-title {
        font-size: 18px;
    }
}