/* 
Theme Name: Evte News
Layout: Discovery (Google News Style)
Description: Layout limpo, material design, cards arredondados.
*/

:root {
    --disc-bg: #f0f2f5;
    --disc-card-bg: #ffffff;
    --disc-text: #202124;
    --disc-meta: #5f6368;
    --disc-border: #dadce0;
    /* --disc-primary injetada via PHP */
}

.discovery-wrapper {
    background: var(--disc-bg);
    color: var(--disc-text);
    font-family: 'Google Sans', 'Roboto', 'Inter', sans-serif;
    padding-bottom: 60px;
}

.discovery-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   2. HERO "BRIEFING"
   ========================================= */
.discovery-hero {
    padding: 40px 0;
}

.disc-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.disc-section-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--disc-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disc-card-hero {
    background: var(--disc-card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.disc-card-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.disc-hero-thumb {
    position: relative;
    height: 450px;
}

.disc-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.disc-cat-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--disc-text);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.disc-hero-content {
    padding: 40px;
}

.disc-hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 0 0 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.disc-hero-title a {
    color: var(--disc-text);
    text-decoration: none;
    background-image: linear-gradient(var(--disc-text), var(--disc-text));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s;
}

.disc-hero-title a:hover {
    background-size: 100% 2px;
}

.disc-hero-excerpt {
    font-size: 1.15rem;
    color: var(--disc-meta);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 90%;
}

.disc-meta {
    font-size: 0.9rem;
    color: var(--disc-meta);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Side List */
.disc-side-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disc-card-side {
    background: var(--disc-card-bg);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.disc-card-side:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--disc-primary);
}

.disc-side-content {
    flex: 1;
}

.disc-cat-tiny {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--disc-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.disc-side-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 8px;
    font-weight: 600;
}

.disc-side-title a {
    color: var(--disc-text);
    text-decoration: none;
}

.disc-side-thumb {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.disc-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   3. SEÇÃO "PARA VOCÊ" (FEED)
   ========================================= */
.discovery-feed {
    padding: 60px 0;
}

.disc-feed-header {
    margin-bottom: 40px;
    border-left: 5px solid var(--disc-primary);
    padding-left: 20px;
}

.disc-section-title {
    font-size: 2rem;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.disc-section-subtitle {
    font-size: 1.1rem;
    color: var(--disc-meta);
    margin: 0;
    font-weight: 400;
}

.disc-feed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.disc-card-feed {
    background: var(--disc-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.disc-card-feed:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.disc-feed-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.disc-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.disc-card-feed:hover .disc-feed-thumb img {
    transform: scale(1.05);
}

.disc-feed-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.disc-feed-meta-top {
    margin-bottom: 12px;
}

.disc-source {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--disc-text);
}

.disc-source img {
    border-radius: 50%;
    border: 1px solid #eee;
}

.disc-feed-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0 0 15px;
    font-weight: 700;
    flex: 1;
}

.disc-feed-title a {
    color: var(--disc-text);
    text-decoration: none;
    transition: color 0.2s;
}

.disc-feed-title a:hover {
    color: var(--disc-primary);
}

.disc-feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.disc-time {
    font-size: 0.8rem;
    color: var(--disc-meta);
    font-weight: 500;
}

.disc-btn-share {
    background: #f5f5f5;
    border: none;
    color: var(--disc-meta);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.disc-btn-share:hover {
    background: var(--disc-primary);
    color: #fff;
}

/* =========================================
   4. SEÇÃO "DEEP DIVE"
   ========================================= */
.discovery-deep {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
    margin: 60px 0;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.discovery-deep::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--disc-primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(60px);
}

.disc-deep-wrapper {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.disc-deep-header {
    padding-top: 40px;
}

.disc-deep-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--disc-primary);
    margin: 0 0 20px;
    letter-spacing: -1.5px;
    line-height: 1;
}

.disc-deep-desc {
    font-size: 1.2rem;
    color: var(--disc-meta);
    line-height: 1.7;
    font-weight: 500;
}

.disc-deep-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
}

.disc-card-deep-lg {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.disc-card-deep-lg:hover {
    transform: translateY(-5px);
}

.disc-deep-content {
    flex: 1;
}

.disc-tag-pill {
    background: rgba(0, 86, 179, 0.1);
    /* Fallback blue tint */
    color: var(--disc-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.disc-deep-title-lg {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 20px;
    font-weight: 700;
}

.disc-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--disc-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.disc-read-more::after {
    content: '→';
    transition: transform 0.2s;
}

.disc-read-more:hover::after {
    transform: translateX(5px);
}

.disc-deep-thumb {
    width: 240px;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.disc-deep-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disc-card-deep-sm {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.disc-card-deep-sm:hover {
    transform: translateX(5px);
    border-color: var(--disc-primary);
}

.disc-deep-title-sm {
    font-size: 1.2rem;
}

.disc-feed-title a {
    color: var(--disc-text);
    text-decoration: none;
    transition: color 0.2s;
}

.disc-feed-title a:hover {
    color: var(--disc-primary);
}

.disc-feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.disc-time {
    font-size: 0.8rem;
    color: var(--disc-meta);
    font-weight: 500;
}

.disc-btn-share {
    background: #f5f5f5;
    border: none;
    color: var(--disc-meta);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.disc-btn-share:hover {
    background: var(--disc-primary);
    color: #fff;
}

/* =========================================
   4. SEÇÃO "DEEP DIVE"
   ========================================= */
.discovery-deep {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
    margin: 60px 0;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.discovery-deep::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--disc-primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(60px);
}

.disc-deep-wrapper {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.disc-deep-header {
    padding-top: 40px;
}

.disc-deep-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--disc-primary);
    margin: 0 0 20px;
    letter-spacing: -1.5px;
    line-height: 1;
}

.disc-deep-desc {
    font-size: 1.2rem;
    color: var(--disc-meta);
    line-height: 1.7;
    font-weight: 500;
}

.disc-deep-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
}

.disc-card-deep-lg {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.disc-card-deep-lg:hover {
    transform: translateY(-5px);
}

.disc-deep-content {
    flex: 1;
}

.disc-tag-pill {
    background: rgba(0, 86, 179, 0.1);
    /* Fallback blue tint */
    color: var(--disc-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.disc-deep-title-lg {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 20px;
    font-weight: 700;
}

.disc-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--disc-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.disc-read-more::after {
    content: '→';
    transition: transform 0.2s;
}

.disc-read-more:hover::after {
    transform: translateX(5px);
}

.disc-deep-thumb {
    width: 240px;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.disc-deep-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disc-card-deep-sm {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.disc-card-deep-sm:hover {
    transform: translateX(5px);
    border-color: var(--disc-primary);
}

.disc-deep-title-sm {
    font-size: 1.2rem;
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.4;
}

/* =========================================
   5. SEÇÃO "SHORTS"
   ========================================= */
.discovery-shorts {
    padding: 60px 0 100px;
}

.disc-section-title-sm {
    font-size: 1.8rem;
    margin: 0 0 40px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--disc-text);
}

.disc-shorts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.disc-card-short {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9/16;
    cursor: pointer;
    transition: transform 0.2s;
}

.disc-card-short:hover {
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.disc-short-thumb {
    height: 100%;
    width: 100%;
    position: relative;
}

.disc-short-thumb a {
    display: block;
    height: 100%;
    width: 100%;
}

.disc-short-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.disc-short-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.disc-short-title {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.disc-short-title a {
    color: #fff;
    text-decoration: none;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 1200px) {
    .disc-hero-grid {
        grid-template-columns: 1fr;
    }

    .disc-hero-thumb {
        height: 300px;
    }

    .disc-feed-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .disc-deep-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .disc-deep-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .disc-feed-grid {
        grid-template-columns: 1fr;
    }

    .disc-shorts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .disc-card-deep-lg {
        flex-direction: column;
    }

    .disc-deep-thumb {
        width: 100%;
        height: 200px;
    }
}