/*
Theme Name: Shadbase Tora
Theme URI: https://shadbase.xxx
Description: Professional theme for Shadbase - Built from scratch by Tora @ LSB Creativa
Author: Tora @ LSB Creativa
Author URI: https://lsbcreativa.com
Version: 2.0.0
License: Private
Text Domain: shadbase-tora
*/

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0d0b12;
    color: #e0e0e0;
    line-height: 1.5;
}

a {
    color: #9b0efe;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #b84dff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #16141c;
}

::-webkit-scrollbar-thumb {
    background: #9b0efe;
    border-radius: 3px;
}

/* ===========================================
   LAYOUT
   =========================================== */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    margin: 15px auto;
    background: #151320;
    border-radius: 8px;
    overflow: hidden;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* ===========================================
   HEADER
   =========================================== */
.site-header {
    background: #16141c;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 15px;
}

.site-logo img {
    max-height: 45px;
    width: auto;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 450px;
}

.search-form {
    display: flex;
    background: #252335;
    border-radius: 20px;
    overflow: hidden;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.search-form input::placeholder {
    color: #666;
}

.search-form button {
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #9b0efe;
    cursor: pointer;
}

/* Navigation */
.main-nav {
    background: #1a1825;
    border-top: 1px solid #252335;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.main-nav li a:hover,
.main-nav li.current-menu-item a {
    color: #9b0efe;
}

/* ===========================================
   HOME - POST GRID
   =========================================== */
.page-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #1a1825 0%, #12101a 100%);
    border-bottom: 1px solid #252335;
}

.page-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.post-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1825;
    transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(155, 14, 254, 0.15);
}

.post-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-title {
    padding: 2px 4px;
    background: #9b0efe;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================================
   SINGLE POST
   =========================================== */
.single-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #1a1825 0%, #12101a 100%);
    border-bottom: 1px solid #252335;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
}

.breadcrumbs a {
    color: #888;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #9b0efe;
}

.breadcrumbs .separator {
    color: #444;
    font-size: 10px;
}

.breadcrumbs .current {
    color: #9b0efe;
}

.single-title {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

.single-content {
    padding: 20px;
}

.single-content img {
    margin: 15px auto;
    border-radius: 4px;
}

.single-content p {
    margin-bottom: 15px;
    color: #bbb;
    line-height: 1.7;
    font-size: 14px;
}

/* Related Posts */
.related-posts {
    padding: 30px 25px;
    background: linear-gradient(180deg, #12101a 0%, #0d0b12 100%);
    border-top: 1px solid #252335;
}

.related-title {
    font-size: 13px;
    font-weight: 700;
    color: #9b0efe;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #9b0efe, transparent);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Taxonomies - Categories & Tags */
.post-taxonomies {
    padding: 30px 25px;
    background: #151320;
    border-top: 1px solid #252335;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.tax-group {
    flex: 1;
    min-width: 250px;
}

.tax-label {
    font-size: 13px;
    font-weight: 700;
    color: #9b0efe;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.tax-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #9b0efe, transparent);
}

.tax-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tax-links a {
    padding: 8px 18px;
    background: linear-gradient(135deg, #1e1c28 0%, #252335 100%);
    border: 1px solid #353545;
    border-radius: 25px;
    font-size: 13px;
    color: #ccc;
    transition: all 0.3s ease;
}

.tax-links a:hover {
    background: linear-gradient(135deg, #9b0efe 0%, #7b0ed0 100%);
    border-color: #9b0efe;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 14, 254, 0.3);
}

/* ===========================================
   SIDEBAR / WIDGETS
   =========================================== */
.sidebar-area {
    width: 300px;
    flex-shrink: 0;
    padding: 15px;
    background: #0d0b12;
    border-left: 1px solid #1e1c28;
}

.main-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Reset para todos los widgets */
.widget,
.sidebar-area > div,
.main-sidebar > div {
    background: #16141c;
    border-radius: 6px;
    overflow: hidden;
}

.widget:empty {
    display: none;
}

/* Títulos de widgets */
.widget-title,
.widget h3,
.widget h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    padding: 8px 20px !important;
    margin: 0 auto 15px auto !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    background: #9b0efe !important;
    border-radius: 4px !important;
    text-align: center !important;
    display: table !important;
    width: auto !important;
    box-shadow: none !important;
}

/* ========================================
   TODOS LOS LINKS/ADS EN SIDEBAR
   Forzar grid 2 columnas para ads
   ======================================== */
.sidebar-area .textwidget,
.sidebar-area .widget_custom_html > div,
.sidebar-area .widget_text > div,
.main-sidebar .textwidget {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
    background: #0d0b12 !important;
}

/* Cada ad/link individual */
.sidebar-area .textwidget a,
.sidebar-area .textwidget > div,
.main-sidebar .textwidget a {
    display: block !important;
    background: #1a1825 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    padding-bottom: 8px !important;
}

.sidebar-area .textwidget a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
}

/* Imágenes de ads */
.sidebar-area .textwidget img,
.main-sidebar .textwidget img {
    width: 100% !important;
    height: auto !important;
    max-height: 120px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 6px 6px 0 0 !important;
    margin: 0 !important;
}

/* Texto de ads - FORZAR BLANCO */
.sidebar-area .textwidget a,
.main-sidebar .textwidget a,
.sidebar-area .textwidget,
.main-sidebar .textwidget,
.sidebar-area .widget a,
.main-sidebar .widget a,
.sidebar-area a,
.widget_custom_html a,
.widget_text a,
.textwidget a {
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

/* Forzar en TODO el sidebar */
.sidebar-area,
.sidebar-area *,
.main-sidebar,
.main-sidebar * {
    color: #e0e0e0;
}

.sidebar-area a,
.sidebar-area a *,
.main-sidebar a,
.main-sidebar a * {
    color: #fff !important;
}

/* Botón Free Porn - link único */
.sidebar-area .textwidget a:only-child,
.main-sidebar .textwidget a:only-child {
    grid-column: 1 / -1 !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #9b0efe 0%, #7b0ed0 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(155, 14, 254, 0.3) !important;
}

.sidebar-area .textwidget a:only-child img {
    display: none !important;
}

/* ========================================
   WIDGETS NORMALES (listas)
   ======================================== */
.widget ul {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.widget ul li {
    border-bottom: 1px solid #252335 !important;
}

.widget ul li:last-child {
    border-bottom: none !important;
}

.widget ul li a {
    display: block !important;
    padding: 10px 14px !important;
    color: #888 !important;
    font-size: 13px !important;
    transition: all 0.2s !important;
}

.widget ul li a:hover {
    color: #fff !important;
    background: rgba(155, 14, 254, 0.1) !important;
    padding-left: 18px !important;
}

/* ========================================
   WIDGET DE BÚSQUEDA
   ======================================== */
.widget_search {
    padding: 14px !important;
}

.widget_search .search-form {
    display: flex !important;
    background: #151320 !important;
    border: 1px solid #252335 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.widget_search input[type="text"],
.widget_search input[type="search"] {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 10px 12px !important;
    color: #fff !important;
    font-size: 13px !important;
    outline: none !important;
}

.widget_search button,
.widget_search input[type="submit"] {
    background: #9b0efe !important;
    border: none !important;
    padding: 10px 14px !important;
    color: #fff !important;
    cursor: pointer !important;
}

/* ===========================================
   PAGINATION
   =========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #252335;
    border-radius: 4px;
    color: #aaa;
    font-size: 13px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #353545;
    color: #fff;
}

.pagination .current {
    background: #9b0efe;
    color: #fff;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
    background: #16141c;
    border-top: 1px solid #252335;
    padding: 25px 0;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
    color: #fff;
    font-size: 13px;
}

.footer-inner a {
    color: #9b0efe;
}

.footer-inner a:hover {
    color: #b84dff;
}

/* ===========================================
   SEO TEXT
   =========================================== */
.seo-text-section {
    padding: 20px 25px;
    border-bottom: 1px solid #252335;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.seo-text-section.bottom {
    border-bottom: none;
    border-top: 1px solid #252335;
}

.seo-text-content {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.seo-text-content.collapsed {
    max-height: 80px;
    overflow: hidden;
}

.seo-text-content a {
    color: #9b0efe;
}

.seo-toggle-btn {
    margin-top: 12px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #9b0efe 0%, #7b0ed0 100%);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seo-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 14, 254, 0.4);
}

/* ===========================================
   RESPONSIVE - TABLET
   =========================================== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sidebar-area {
        width: 260px;
    }
}

/* ===========================================
   RESPONSIVE - MOBILE
   =========================================== */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar-area {
        width: 100%;
        border-left: none;
        border-top: 1px solid #252335;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }
    
    .main-nav li a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .single-title {
        font-size: 18px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .post-taxonomies {
        flex-direction: column;
        gap: 15px;
    }
    
    .tax-group {
        min-width: 100%;
    }
}

/* ===========================================
   RESPONSIVE - MOBILE SMALL
   =========================================== */
@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-card-title {
        font-size: 15px;
        padding: 1px 3px;
    }
    
    .single-title {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 14px;
    }
    
    .breadcrumbs {
        font-size: 11px;
    }
    
    .single-header,
    .single-content,
    .related-posts,
    .post-taxonomies {
        padding: 15px;
    }
}

/* ===========================================
   FORZAR TEXTO BLANCO EN SIDEBAR - NUCLEAR
   =========================================== */
.sidebar-area .textwidget a,
.sidebar-area .textwidget a span,
.sidebar-area .textwidget a div,
.sidebar-area .textwidget a p,
.sidebar-area .textwidget a strong,
.sidebar-area .textwidget a em,
.sidebar-area .textwidget a b,
.sidebar-area .widget_custom_html a,
.sidebar-area .widget_text a,
#main-sidebar a,
#main-sidebar .textwidget a,
.main-sidebar a,
.main-sidebar .textwidget a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ===========================================
   FIX SIDEBAR ADS - MEJOR VISUALIZACIÓN
   =========================================== */
.sidebar-area iframe {
    max-width: 100% !important;
    border-radius: 6px !important;
}

.sidebar-area .textwidget > div,
.sidebar-area .textwidget > p,
.sidebar-area .textwidget > span {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ads con imágenes que están solas */
.sidebar-area .textwidget a:has(img):not(:has(~ a)) {
    grid-column: 1 / -1 !important;
}

/* Asegurar que los ads se vean bien */
.sidebar-area .textwidget a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: auto !important;
}

/* Fix para imágenes grandes */
.sidebar-area img[width],
.sidebar-area img[height] {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}
