/*
Theme Name: Sussidiario TV
Theme URI: https://example.com/sussidiario-tv/
Author: Dorvan
Author URI: https://dorvan.it/
Description: Sussidiario TV is a modern video streaming and news theme designed for digital media publishers. Perfect for online TV channels, news websites, and video content platforms. Features a clean, minimalist design with integrated video players, live streaming capabilities, and optimized content layouts. Built as a child theme of DarkNews with enhanced video functionality and contemporary styling.
Requires PHP: 5.6
Tested up to: 6.6
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sussidiario-tv
Tags: news, video, streaming, entertainment, one-column, two-columns, grid-layout, custom-header, custom-background, custom-colors, custom-menu, featured-images, full-width-template, rtl-language-support, footer-widgets, translation-ready, theme-options
Template: darknews
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Sussidiario TV WordPress Theme, Copyright 2025
Sussidiario TV is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   Child Theme Customizations
   ========================================================================== */

/* Root Variables */
:root {
    --primary-orange: #ea580c;
    --primary-orange-hover: #c2410c;
    --text-dark: #111827;
    --text-light: #4b5563;
    --text-muted: #999999;
    --background-light: #F9FAFB;
    --background-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Global Typography */
body {
    font-family: Georgia,Times New Roman,serif !important;
    line-height: 1.6;
    background-color: var(--background-light) !important;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.wp-block-search__label, .site-title, h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', Times New Roman, serif !important;
}

img.aligncenter, div.aligncenter, figure.aligncenter, img.wp-post-image {
    margin: 0;
}

body, button, input, select, optgroup, textarea, .cat-links li a {
    font-family: 'Georgia', Times New Roman, serif !important;
}

.container-wrapper {
    max-width: 1280px;
}

/* Header */
header.darknews-header {
    position: sticky;
    top: 0px;
    z-index: 999999;
    background-color: white;
}

.site-header {
    background: var(--background-white);
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--border-light);
}

.site-title a {
    color: var(--primary-orange) !important;
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
}

.skip-link, .skip-to-content {
    display: none;
}

/* Navigation */
.main-navigation ul li a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 12px 16px;
}

.main-navigation ul li a:hover {
    color: var(--primary-orange);
}

.header-layout-default .af-middle-header {
    padding: 5px 0;
    border-bottom: 1px solid #dfdfdf;
}

.search-overlay > a {
    color: #000 !important;
}

.site-branding .site-title {
    display: flex;
    align-items: center;
}

.main-navigation .menu-desktop>li.current-menu-item::after, .main-navigation .menu-desktop>ul>li.current-menu-item::after, .main-navigation .menu-desktop>li::after, .main-navigation .menu-desktop>ul>li::after {
    height: 0;
}

/* Search Form */
.header-actions-section {
    display: flex;
    gap: 10px;
}

.af-simplified-inline-search {
    display: none;
}

.simplified-search-wrap {
    width: auto;
    position: relative;
    display: inline-block;
    text-align: center;
}

.simplified-inline-search {
    background: #fff;
    text-align: left;
    margin: 0 auto;
    margin-top: 1px;
}

.simplified-search-form {
    display: flex;
    align-items: center;
}

input#simplified-search-input {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-right: 0;
    font-size: .875rem;
    line-height: 1.25rem;
    outline: none;
}

button.search-submit.simplified-search-submit {
    background-color: var(--background-white);
    color: #9ca3af;
    border-left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    align-items: center;
}

button.user-icon-button {
    background: var(--background-white);
    border: 0;
    border-radius: 5px;
    color: var(--text-dark);
    padding: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.user-icon-button:hover {
    background-color: var(--background-light);
}

button.user-icon-button > svg {
    width: 16px;
    height: 16px;
}

.search-icon {
    height: 38px;
    width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ham, .ham:before, .ham:after {
    background-color: var(--text-dark);
    width: 16px;
    height: 1px;
} 

.ham.exit:before {
    transform: translateY(5px) rotateZ(-45deg);
}

.ham.exit:after {
    transform: translateY(-5px) rotateZ(45deg);
}

.ham:before {
    top: -5px;
}

.ham:after {
    top: 5px;
}

/* Video Player Container */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.video-player-container .live-badge, .featured-video-player .live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.featured-video-player {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
}

/* Featured Content Section */
.featured-content-section {
    margin: 40px 0;
}

.featured-video-player > div[data-vflux=""] {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-all-link {
    font-size: 16px;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--primary-orange-hover);
}

/* Content Cards Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.content-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.content-card:hover {
    box-shadow: var(--shadow-medium);
}

.content-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.live-content-card-image {
    height: 220px;
    width: 100%;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Video and Standard Post Wrappers */
.video-thumbnail-wrapper,
.standard-post-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Hover Overlays */
.video-play-overlay,
.standard-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.content-card:hover .video-play-overlay,
.content-card:hover .standard-post-overlay {
    opacity: 1;
}

/* Play and Read Buttons */
.play-button-wrapper,
.read-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button,
.read-button {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.play-button > svg,
.read-button > svg {
    width: 56px;
    height: 56px;
}

.play-button {
    padding-left: 4px;
}

/* Live Indicator */
.live-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 26px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.live-dot-pulse {
    animation: live-pulse 2s infinite;
}

.content-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-orange);
    color: white;
    padding: 4px 8px;
    border-radius: 26px;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 600;
    z-index: 2;
}

.content-card-badge a {
    color: inherit;
    text-decoration: none;
}

.content-card-badge.live-badge {
    background: #dc3545;
    animation: live-badge-pulse 3s infinite;
}

.content-card-content {
    padding: 20px;
}

.content-card-title {
    font-size: 1.125rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.75rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
}

.content-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.content-card-title a:hover {
    color: var(--primary-orange);
}

.content-card-excerpt {
    font-size: .875rem;
    line-height: 1.25rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    gap: 16px;
}

.content-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4b5563;
}

.content-card-meta span svg {
    width: 12px;
    height: 12px;
}

/* Categories Section */
.categories-section {
    margin: 20px 0;
    padding: 20px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.category-item {
    text-align: center;
    background: var(--background-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-orange);
}

.category-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.category-item a {
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.category-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Live Section */
.live-section {
    margin: 60px 0;
}

.live-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .live-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.live-main-content {
    position: relative;
    display: grid;
}

.live-video-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.live-video-container .live-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-video {
    margin: 40px 0;
}

.article-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.article-text h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.article-text h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: var(--text-dark);
}

.article-text p {
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .af-search-form {
        width: 325px;
    }
}
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Responsive overlay buttons */
    .play-button,
    .read-button {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 0 16px;
    }
}

@media only screen and (max-width: 990px) {
    .header-layout-default .af-middle-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo-section {
        flex: 1;
    }

    .simplified-inline-search {
        display: none;
    }

    .af-simplified-inline-search {
        display: block;
    }
    .archive-posts-grid #posts-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 20px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-orange { color: var(--primary-orange); }
.bg-light { background-color: var(--background-light); }
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

/* Animations */
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes live-badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

article.latest-posts-grid .read-title h4 {
    font-size: 16px;
    line-height: 1.4;
}

.site-main {
    padding: 40px 0;
}

.wp-block-group {
    margin-bottom: 2rem;
}

.alignwide {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
}

/**
* Overrides
**/

.af-post-format.em-post-format {
    display: none;
}

body.single-post .figure-categories .cat-links > .meta-category > a.darknews-categories {
    padding: 3px 8px;
    font-size: .75rem;
    line-height: 1rem;
    border-radius: 20px;
}

.darknews-categories {
    border-radius: 20px;
}

body.single-post #content {
    max-width: 56rem;
    margin: 0 auto;
}

body.single-post .entry-title, h1.page-title {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.entry-header-details {
    margin-bottom: 2rem;
}

body.single .entry-content-wrap.social-after-title .read-img {
    border-radius: 15px;
    overflow: hidden;
}

.entry-content.read-details {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inner-entry-content h2 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.inner-entry-content p {
    color: #374151;
    line-height: 1.625;
}

.item-metadata, .item-metadata a {
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 500 !important;
    color: var(--text-light) !important;
    opacity: 1 !important;
}

.post-item-metadata .item-metadata, .post-item-metadata .item-metadata a {
    font-size: 12px;
}

.read-details .entry-meta .author-links>span, .read-details .entry-meta span.min-read {
    padding-right: 10px;
}

.archive-type {
    border-radius: 40px !important;
}

.archive-description {
    display: none;
}

a.btn-primary {
    color: white;
}

button.btn-secondary.search-toggle {
    height: 100%;
    color: var(--text-dark);
}

.archive-posts-grid #posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

body.search-results .section-title,
body.search-no-results .section-title {
    justify-content: start !important;
    gap: 10px;
}

.nav-links span, .nav-links a {
    border-radius: 30px;
    color: var(--text-dark);
}

a.next, a.prev {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

a#scroll-up {
    border-radius: 5px;
}

span.heading-line {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#flx-sticky {
    display: none;
}

@media only screen and (max-width: 600px) {
    body {
        margin-top: 100px !important;
    }
    
    div#flx-sticky {
        display: flex;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        transition: fadeOut 0.5s ease;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: flex-end;
    }
    
    div.flx-sticky-container {
        width: 100%;
        height: 100px;
        min-height: 100px;
        overflow: hidden;
        background-color: #fafafa;
        border-bottom: 1px solid #e8eef9;
        display: flex;
        flex-direction: column;
    }
    
    div.flx-320x100 {
        margin: 0 auto;
        width: 100%;
        height: 100px;
        min-height: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .flx-sticky-close {
        margin-left: auto;
        order: 2;
        height: 24px;
        width: 24px;
        color: #123;
        line-height: 1.3rem;
        cursor: pointer;
        text-align: center;
        border-left: 1px solid #e8eef9;
        border-bottom: 1px solid #e8eef9;
        background-color: #fafafa;
        border-radius: 0 0 0 3px;
        display: inline-block;
        margin-top: -2px;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .flx-sticky-close:hover {
        background-color: #e8eef9;
        color: #000;
    }

    body.single-post #content {
        max-width: 100%;
        padding: 0;
    }

    body.single-post .promotionspace,
    body.single-post .read-img.pos-rel,
    body.single-post .entry-header.pos-rel {
        padding-left: 25px;
        padding-right: 25px;
    }

    body.single-post .entry-content.read-details {
        border-radius: 0;
        box-shadow: none;
    }
}

.showheroes-player-wrapper > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px !important;
    position: relative !important;
}
