/*
Theme Name: La Dura Verità
Theme URI: https://laduraverita.it
Author: Eprize Srl
Author URI: https://eprize.it
Description: A hard-hitting, dark truth theme for La Dura Verità.
Version: 1.0.0
Text Domain: ldv-theme
*/

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;

    /* Modern Palette */
    --accent-red: #ff2a2a;
    --accent-gradient: linear-gradient(135deg, #ff2a2a 0%, #ff0f7b 100%);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1240px;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;

    --radius-md: 12px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 20px rgba(255, 42, 42, 0.3);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 42, 42, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.top-left {
    top: -200px;
    left: -200px;
}

.bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(62, 84, 172, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(10px);
    /* Optional: stick header logic */
}

.fluid-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
}

.text-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.btn-glass {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hero */
.hero {
    min-height: 90vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 4rem;
    /* For header */
}

/* Background image overlay with gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to bottom, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 1)),
        url('assets/hero-bg.png') center/cover no-repeat;
    opacity: 0.6;
    z-index: -1;
    mix-blend-mode: overlay;
}

.hero-content {
    max-width: 900px;
    padding: 0 1rem;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-radius: 4px;
    background: rgba(255, 42, 42, 0.05);
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.1);
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.glitch-text {
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.btn-cta.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 42, 42, 0.3);
    border: none;
}

.btn-cta.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 42, 42, 0.5);
}

.btn-cta.secondary {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-cta.secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Video Section */
#video-section {
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 4rem;
    text-align: left;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.section-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

/* Modern Glass Card */
.video-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 42, 42, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 42, 42, 0.1);
}

.thumbnail-wrapper {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.08);
    /* Slow zoom */
}

/* Play button overlay on hover */
.thumbnail-wrapper::after {
    content: '\f144';
    /* FontAwesome Play Icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.video-card:hover .thumbnail-wrapper::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: #eee;
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-date::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
}

/* Loading */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px dashed var(--card-border);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background: linear-gradient(to top, #000, transparent);
    text-align: center;
}

/* Articles */
.section-spacer {
    padding-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h2 {
        font-size: 3.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}