/*
Theme Name: NewsDay Gaming Custom
Personalización basada en logo gaming con gradientes azul-magenta
*/

/* === VARIABLES DE COLORES BASADAS EN EL LOGO === */
:root {
    --primary-blue: #1E90FF;
    --primary-purple: #9229F7;
    --primary-magenta: #E91E63;
    --dark-bg: #0A0A0A;
    --light-bg: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
}

/* === CONFIGURACIÓN GENERAL === */
body,
button,
input,
select,
optgroup,
textarea {
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === NAVEGACIÓN PRINCIPAL === */
div#main-navigation-bar {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
}

/* === BOTONES Y ENLACES DESTACADOS === */
.morenews-header.header-layout-centered .top-bar-right div.custom-menu-link>a,
.morenews-header.header-layout-compressed-full .top-bar-right div.custom-menu-link>a,
.morenews-header.header-layout-side .search-watch div.custom-menu-link>a {
    background: linear-gradient(45deg, var(--primary-magenta), var(--primary-purple));
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.morenews-header.header-layout-centered .top-bar-right div.custom-menu-link>a:hover,
.morenews-header.header-layout-compressed-full .top-bar-right div.custom-menu-link>a:hover,
.morenews-header.header-layout-side .search-watch div.custom-menu-link>a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* === SECCIÓN EXCLUSIVA === */
.exclusive-posts .exclusive-now {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 5px;
    font-weight: 700;
    padding: 8px 16px;
}

/* === MENÚ DESCRIPTIVO === */
.main-navigation .menu-description {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-magenta));
    border-radius: 8px;
    padding: 12px 20px;
}

.main-navigation .menu-description:after {
    border-top: 5px solid var(--primary-purple);
}

/* === CATEGORÍAS CON GRADIENTES GAMING === */
.af-cat-widget-carousel {
    padding: 20px 0;
    margin: 30px 0;
}

/* Categoría 1 - Azul Gaming */
.af-cat-widget-carousel a.morenews-categories.category-color-1 {
    background: linear-gradient(135deg, var(--primary-blue), #00BFFF);
    border-radius: 25px;
    padding: 10px 20px;
    margin: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.af-cat-widget-carousel a.morenews-categories.category-color-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.5);
}

/* Categoría 2 - Púrpura Gaming */
.af-cat-widget-carousel a.morenews-categories.category-color-2 {
    background: linear-gradient(135deg, var(--primary-purple), #BA55D3);
    border-radius: 25px;
    padding: 10px 20px;
    margin: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(146, 41, 247, 0.3);
}

.af-cat-widget-carousel a.morenews-categories.category-color-2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(146, 41, 247, 0.5);
}

/* Categoría 3 - Magenta Gaming */
.af-cat-widget-carousel a.morenews-categories.category-color-3 {
    background: linear-gradient(135deg, var(--primary-magenta), #FF1493);
    border-radius: 25px;
    padding: 10px 20px;
    margin: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.af-cat-widget-carousel a.morenews-categories.category-color-3:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

/* Colores de texto para categorías */
a.morenews-categories.category-color-1,
a.morenews-categories.category-color-2,
a.morenews-categories.category-color-3 {
    color: var(--text-light) !important;
    font-weight: 600;
    text-decoration: none;
}

/* === ESPACIADO MEJORADO PARA CATEGORÍAS === */
.af-cat-widget-carousel .af-widget-body {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
}

/* === TÍTULOS Y HEADINGS === */
.aft-default-mode .entry-content>.wp-block-heading a:not(.has-link-color) {
    border-color: var(--primary-purple);
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === HEADER Y FOOTER === */
.morenews-header .top-header,
footer.site-footer {
    background: linear-gradient(135deg, var(--dark-bg), #1a1a1a);
    border-top: 3px solid;
    border-image: linear-gradient(45deg, var(--primary-blue), var(--primary-magenta)) 1;
}

/* === FORZAR VISIBILIDAD DE TODOS LOS TÍTULOS === */
/* Títulos de widgets y secciones */
.widget-title,
.af-widget-title,
.wp-block-heading,
.morenews-widget .wp-block-heading,
.af-title,
.af-sec-title,
h1, h2, h3, h4, h5, h6,
.widget-title-border-center .wp-block-search__label,
.widget-title-border-center .morenews-widget .wp-block-heading,
.widget-title-border-bottom .wp-block-search__label,
.widget-title-border-bottom .morenews-widget .wp-block-heading,
.widget-title-border-none .wp-block-search__label,
.widget-title-border-none .morenews-widget .wp-block-heading,
.aft-posts-tabs-panel .nav-tabs>li>a,
h4.af-author-display-name,
body.widget-title-border-bottom .widget-title,
body.widget-title-border-center .widget-title,
body.widget-title-border-none .widget-title,
.header-after1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #9229F7 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Específico para títulos de NewsDay */
.af-main-banner-categorized-posts .af-title,
.af-trending-posts .af-title,
.morenews-widget .af-title,
.aft-posts-tabs-panel .af-title,
.af-double-column .af-title,
.banner-vertical-slider .af-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #9229F7 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Sobrescribir cualquier CSS que oculte títulos */
* {
    -webkit-text-fill-color: initial !important;
}

/* Solo aplicar gradiente a enlaces, no a títulos */
a:not(.widget-title):not(.af-title):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    -webkit-text-fill-color: initial;
}

/* === TÍTULOS PRINCIPALES === */
body:not(.full-width-content) #primary .morenews_express_posts_grid_widget .af-express-grid-wrap .read-single:first-child .read-title h3,
.aft-banner-layout-7 .af-banner-carousel.af-carousel-3 .read-title h3,
.mailchimp-block .block-title,
.morenews_posts_slider_widget .read-single .read-details .read-title h3,
article.latest-posts-full .read-title h3,
.af-banner-carousel .read-title h3 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* === BOTONES === */
body .reply a, 
div#respond input[type="submit"],
.btn-style1 a:visited,
.btn-style1 a,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 12px 24px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-magenta));
    border: none;
    border-radius: 25px;
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

body .reply a:hover, 
div#respond input[type="submit"]:hover,
.btn-style1 a:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

/* === ESPACIADO GENERAL MEJORADO === */
.site-content {
    padding: 40px 0;
}

.af-main-banner-wrapper {
    margin-bottom: 50px;
    padding: 30px 0;
}

.morenews-widget {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* === EFECTOS HOVER PARA POSTS === */
.read-single {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.read-single:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.2);
}

/* === RESPONSIVE === */
@media only screen and (max-width: 768px) {
    .widget-title-border-center .wp-block-search__label,
    .widget-title-border-center .morenews-widget .wp-block-heading,
    .widget-title-border-bottom .wp-block-search__label,
    .widget-title-border-bottom .morenews-widget .wp-block-heading,
    .widget-title-border-none .wp-block-search__label,
    .widget-title-border-none .morenews-widget .wp-block-heading,
    .aft-posts-tabs-panel .nav-tabs>li>a,
    h4.af-author-display-name,
    body.widget-title-border-bottom .widget-title,
    body.widget-title-border-center .widget-title,
    body.widget-title-border-none .widget-title,
    .header-after1,
    .widget-title {
        font-size: 18px;
    }

    body:not(.full-width-content) #primary .morenews_express_posts_grid_widget .af-express-grid-wrap .read-single:first-child .read-title h3,
    .aft-banner-layout-7 .af-banner-carousel.af-carousel-3 .read-title h3,
    .mailchimp-block .block-title,
    .morenews_posts_slider_widget .read-single .read-details .read-title h3,
    article.latest-posts-full .read-title h3,
    .af-banner-carousel .read-title h3 {
        font-size: 28px;
    }

    .af-cat-widget-carousel .af-widget-body {
        justify-content: flex-start;
        gap: 10px;
    }

    .af-cat-widget-carousel a.morenews-categories {
        margin: 5px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 479px) {
    .af-list-post .read-title h3,
    .aft-trending-posts.list-part .af-double-column.list-style .read-title h3,
    .aft-main-banner-wrapper .aft-trending-posts.list-part .af-double-column.list-style .read-title h3,
    .af-trending-posts .aft-trending-posts.list-part .af-double-column.list-style .read-title h3,
    .morenews_posts_double_columns_widget .af-widget-body .af-double-column.list-style .read-title h3,
    .morenews_popular_news_widget .banner-vertical-slider .af-double-column.list-style .read-title h3,
    .af-main-banner-categorized-posts.express-posts .af-sec-post.list-part .read-title h3 {
        font-size: 16px;
    }

    .site-content {
        padding: 20px 0;
    }

    .morenews-widget {
        margin-bottom: 25px;
        padding: 20px;
    }
}