/* Hero Section v4 - Classic Simple (Premium Magazine Design) */

.hero-v4 {
    padding-bottom: 80px;
    background: #fafafa;
    position: relative;
    margin: 0 200px!important;
    width: unset;
    max-width: 100%;
}

.hero-v4-container {
    
    margin: 0 auto;
    
}

/* === GRID LAYOUT === */
.hero-v4-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 380px);
    gap: 20px;
}

/* Grid Positioning - Exact ca în imagine */
.hero-large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.hero-medium:nth-of-type(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.hero-small:nth-of-type(3) {
    grid-column: 5 / 7;
    grid-row: 1 / 2;
}

.hero-small:nth-of-type(4) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.hero-medium:nth-of-type(5) {
    grid-column: 4 / 6;
    grid-row: 2 / 3;
}

.hero-small:nth-of-type(6) {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
}

/* === HERO CARD === */
.hero-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--hero-accent, #0066FF);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    pointer-events: none;
}

.hero-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* === IMAGE CONTAINER === */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0.9) contrast(1.05);
}

.hero-card:hover .hero-image {
    transform: scale(1.1);
    filter: brightness(0.75) contrast(1.1);
}

/* Overlay Gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.8) 100%
    );
    transition: background 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.hero-card:hover .hero-overlay {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

/* === CONTENT === */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    color: white;
}

.hero-large .hero-content {
    padding: 40px;
}

/* === CATEGORY === */
.hero-category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--hero-accent, #0066FF);
    color: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    width: fit-content;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.hero-card:hover .hero-category {
    transform: translateY(0);
    opacity: 1;
}

/* === TITLE === */
.hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-title {
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-large .hero-title {
    font-size: 36px;
    letter-spacing: -0.03em;
}

.hero-medium .hero-title {
    font-size: 24px;
    letter-spacing: -0.02em;
}

.hero-small .hero-title {
    font-size: 18px;
}

.hero-card:hover .hero-title {
    transform: translateX(4px);
    color: #ffffff;
}

/* === META === */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.hero-card:hover .hero-meta {
    transform: translateY(0);
    opacity: 1;
}

.hero-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-card:hover .author-photo {
    border-color: white;
    transform: scale(1.1) rotate(5deg);
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.hero-date {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

/* Date mereu vizibilă pentru carduri mici și medii */
.hero-medium .hero-date,
.hero-small .hero-date {
    opacity: 1;
    transform: translateY(0);
}

/* === ANIMAȚII SPECIALE === */

/* Shine Effect from Corner */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    transform: translateX(-100%) rotate(25deg);
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    pointer-events: none;
}

.hero-card:hover .hero-image-container::before {
    transform: translateX(100%) rotate(25deg);
}

/* === RESPONSIVE === */

/* Large Tablet */
@media (max-width: 1200px) {
    .hero-v4-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 340px);
        gap: 16px;
    }

    .hero-large {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .hero-medium:nth-of-type(2) {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
    }

    .hero-small:nth-of-type(3) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

    .hero-small:nth-of-type(4) {
        grid-column: 4 / 5;
        grid-row: 2 / 3;
    }

    .hero-medium:nth-of-type(5) {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }

    .hero-small:nth-of-type(6) {
        grid-column: 3 / 5;
        grid-row: 3 / 4;
    }

    .hero-large .hero-title {
        font-size: 30px;
    }

    .hero-medium .hero-title {
        font-size: 22px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero-v4 {
        padding: 0 0 60px;
        margin: 0!important;
    }

    .hero-v4-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .hero-card {
        height: 380px;
    }

    .hero-large .hero-title {
        font-size: 28px;
    }

    .hero-medium .hero-title {
        font-size: 22px;
    }

    .hero-small .hero-title {
        font-size: 19px;
    }

    /* Toate elementele vizibile mereu pe mobile */
    .hero-category,
    .hero-meta {
        opacity: 1;
        transform: translateY(0);
    }

    /* Disable complex animations pe mobile */
    .hero-card:hover {
        animation: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-v4-container {
        padding: 0 16px;
    }

    .hero-card {
        height: 350px;
    }

    .hero-content {
        padding: 28px;
    }

    .hero-large .hero-content {
        padding: 32px;
    }

    .hero-large .hero-title {
        font-size: 26px;
    }

    .hero-medium .hero-title {
        font-size: 20px;
    }

    .hero-small .hero-title {
        font-size: 18px;
    }

    .author-photo {
        width: 32px;
        height: 32px;
    }

    .author-name {
        font-size: 13px;
    }
}