/*
Theme Name: SliderDL
Theme URI: https://wptheme.site/
Author: Jach
Author URI: https://wptheme.site/
Description: Tema moderno de WordPress diseñado específicamente para sitios web de descargas, juegos y contenido multimedia. Ofrece una experiencia visual atractiva con múltiples sliders personalizables, sistema de colecciones y diseño responsive.
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: sliderdl
Tags: blog, entertainment, gaming, slider, custom-colors, custom-menu, featured-images, theme-options
*/

:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #151b35;
    --card-bg: #1a2038;
    --accent-color: #10b981;
    --accent-hover: #059669;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2d3548;
    --hover-bg: #252d47;
}

/* Light Theme (Negro con Naranja) */
body.light-theme {
    --primary-bg: #000000;
    --secondary-bg: #1a1a1a;
    --card-bg: #1a1a1a;
    --accent-color: #ff6b35;
    --accent-hover: #e85a2a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #333333;
    --hover-bg: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
}

/* Ajustar para el admin bar de WordPress */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Ensure content is above particles */
.site-header,
.site-content,
.site-footer {
    position: relative;
    z-index: 10;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--secondary-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-navigation a {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.search-toggle,
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.search-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-toggle:active::before {
    width: 100px;
    height: 100px;
}

.search-toggle:hover,
.theme-toggle:hover {
    background-color: var(--hover-bg);
    color: var(--accent-color);
    transform: scale(1.1);
}

.search-toggle:active {
    transform: scale(0.95);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-theme .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-theme .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* Header Search Expanded */
.header-search-expanded {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    max-width: 1400px;
    width: calc(100% - 40px);
    background: var(--secondary-bg);
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0 20px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-search-expanded.active {
    display: flex;
    opacity: 1;
}

.header-search-form {
    flex: 1;
    display: flex;
}

.header-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.header-search-input::placeholder {
    color: var(--text-secondary);
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: var(--hover-bg);
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Hide header elements when search is active */
.header-content.search-active .site-logo,
.header-content.search-active .main-navigation,
.header-content.search-active .mobile-menu-toggle,
.header-content.search-active .header-actions {
    opacity: 0;
    pointer-events: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top svg {
    stroke: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    padding: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 18px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 26px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 18px;
    transform: translateX(-50%) rotate(45deg);
    background-color: var(--accent-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-100%);
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 18px;
    transform: translateX(-50%) rotate(-45deg);
    background-color: var(--accent-color);
}

/* Main Slider - Featured Posts */
.featured-slider {
    margin: 60px 0 40px 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: #0d1117;
}

.slider-wrapper {
    position: relative;
    height: 400px;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

/* Transition Effects */
/* Fade Effect (default) */
.featured-slider.effect-fade .slider-item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.featured-slider.effect-fade .slider-item.active {
    opacity: 1;
}

/* Slide Effect */
.featured-slider.effect-slide .slider-item {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.featured-slider.effect-slide .slider-item.active {
    opacity: 1;
    transform: translateX(0);
}

.featured-slider.effect-slide .slider-item.slide-out {
    transform: translateX(-100%);
}

/* Zoom Effect */
.featured-slider.effect-zoom .slider-item {
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.featured-slider.effect-zoom .slider-item.active {
    opacity: 1;
    transform: scale(1);
}

/* Flip Effect */
.featured-slider.effect-flip .slider-item {
    opacity: 0;
    transform: rotateY(90deg);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.featured-slider.effect-flip .slider-item.active {
    opacity: 1;
    transform: rotateY(0deg);
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(13, 17, 23, 0.6) 0%, rgba(13, 17, 23, 0.4) 50%, rgba(13, 17, 23, 0.2) 100%);
    z-index: 1;
}

.slider-item-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    text-align: left;
    max-width: 600px;
    padding: 20px 0;
    z-index: 2;
}

.slider-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.slider-content .excerpt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 500px;
}

.slider-content .btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.slider-content .btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-nav:hover {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.15);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

/* Flechas para grid sliders */
.grid-slider .slider-nav {
    background-color: transparent;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 32px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.grid-slider .slider-nav:hover {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.15);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.grid-slider .slider-nav.prev {
    left: 10px;
}

.grid-slider .slider-nav.next {
    right: 10px;
}

.grid-slider .slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Hide navigation arrows when not needed */
.grid-slider .slider-nav[style*="display: none"],
.collection-slider .slider-nav[style*="display: none"] {
    display: none !important;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 30px;
}

/* Section header dentro de sliders con caja */
.grid-slider .section-header,
.collection-slider .section-header {
    margin: 0 0 20px 0;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
}

.section-header .view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.section-header .view-more::before {
    content: '+';
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.section-header .view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.section-header .view-more:hover::before {
    transform: rotate(90deg);
}

/* Grid Slider - Horizontal Scroll */
.grid-slider {
    position: relative;
    margin-bottom: 50px;
    margin-top: 60px;
    padding: 25px 50px;
    background-color: rgba(22, 27, 34, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.grid-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    margin: -10px 0;
}


.grid-slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.grid-slider-track .grid-item {
    flex: 0 0 calc((100% - 75px) / 6);
    min-width: 190px;
}

.grid-item {
    position: relative;
    border-radius: 12px;
    height: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 transparent;
}

.grid-item > a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: var(--card-bg);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 3px var(--accent-color), 0 8px 20px rgba(16, 185, 129, 0.3);
}

.grid-item > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: var(--card-bg);
}

.grid-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    text-align: center;
}

.grid-item-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.grid-item-meta {
    display: none;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

/* Collection Slider - Horizontal Cards */
.collection-slider {
    position: relative;
    margin-bottom: 50px;
    margin-top: 60px;
    padding: 25px 50px;
    background-color: rgba(22, 27, 34, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.collection-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    margin: -10px 0;
}

.collection-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.collection-item {
    position: relative;
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 320px;
    height: 200px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 0 0 transparent;
}

.collection-item > a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 3px var(--accent-color), 0 8px 20px rgba(16, 185, 129, 0.3);
}

.collection-item > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.collection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-item:hover img {
    transform: scale(1.05);
}

.collection-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.collection-item-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    flex: 1;
}

.collection-item-content .btn-collection {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.collection-item-content .btn-collection:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 80px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--text-primary);
}

/* No Results Empty State */
.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 30px;
    animation: fadeInScale 0.6s ease-out;
}

.no-results-icon svg {
    width: 120px;
    height: 120px;
}

.no-results-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.no-results-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.no-results-description strong {
    color: var(--accent-color);
}

.no-results-suggestions {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.suggestions-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.suggestions-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.suggestions-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-back-home:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-back-home svg {
    stroke: white;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Archive Hero Banner */
.archive-hero {
    background-color: var(--card-bg);
    padding: 60px 0;
    margin: 40px auto 40px;
    max-width: 1400px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.archive-hero .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.archive-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

/* Archive Header Container */
.archive-header-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.archive-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.archive-header p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

/* Archive/Category Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.posts-grid .grid-item img {
    height: 420px;
    object-fit: contain;
    background-color: var(--card-bg);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: var(--card-bg);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background-color: var(--accent-color);
}

/* Single Post */
body.single-post {
    padding-top: 0 !important;
}

body.single-post .site-header {
    margin-top: 0 !important;
}

body.single-post .site-content {
    margin-top: 0;
}

body.single-post .site-header .container,
body.single-post .site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

.single-post {
    margin: 40px 0 0 0;
}

.post-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    line-height: 1.8;
}

.post-content .post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-content .post-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-content .post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.post-content .post-date {
    color: var(--text-secondary);
    font-size: 16px;
}

.post-content .post-category {
    background-color: var(--accent-color);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.post-content .post-thumbnail-wrapper {
    text-align: center;
    margin-bottom: 0;
}

.post-content .post-thumbnail {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: inline-block;
}

.post-content .post-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 30px 0;
}

.post-content h2 {
    font-size: 32px;
    margin: 30px 0 15px;
}

.post-content h3 {
    font-size: 24px;
    margin: 25px 0 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 30px;
}

.post-tags {
    max-width: 1400px;
    margin: 30px auto;
    padding: 30px 40px;
    background-color: var(--card-bg);
    border-radius: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.post-tags strong {
    color: var(--text-primary);
    font-size: 16px;
    margin-right: 5px;
}

.post-tags a {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--secondary-bg), var(--hover-bg));
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.post-tags a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border-color: var(--accent-color);
}

.related-posts {
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 0;
}

.related-posts h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.related-posts .grid-slider-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Categories Page */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: var(--hover-bg);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-card .count {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1300px) {
    .posts-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .grid-slider-track .grid-item {
        flex: 0 0 calc((100% - 80px) / 5);
        min-width: 180px;
    }
    
    .collection-item {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: 350px;
    }
}

@media (max-width: 1100px) {
    .grid-slider-track .grid-item {
        flex: 0 0 calc((100% - 60px) / 4);
        min-width: 200px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .collection-item {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: 320px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: row;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: -1;
        margin-right: 15px;
    }
    
    .site-logo {
        order: 0;
        flex: 1;
    }
    
    .header-actions {
        order: 1;
        margin-left: 0;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-bg);
        padding: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .grid-slider {
        padding: 25px 45px;
    }
    
    .grid-slider-track .grid-item {
        flex: 0 0 calc((100% - 40px) / 3);
        min-width: 220px;
    }
    
    .collection-slider {
        padding: 25px 45px;
    }
    
    .collection-item {
        flex: 0 0 calc(100% - 20px);
        min-width: 300px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: 350px;
    }
    
    .slider-content {
        left: 70px;
        max-width: calc(100% - 140px);
    }
    
    .slider-content h2 {
        font-size: 28px;
    }
    
    .slider-content .excerpt {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .slider-content .btn-primary {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .grid-slider {
        padding: 20px 35px;
    }
    
    .grid-slider-track .grid-item {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: 240px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collection-slider {
        padding: 20px 35px;
    }
    
    .collection-item {
        flex: 0 0 100%;
        min-width: 280px;
        height: 180px;
    }
    
    .collection-item-content h3 {
        font-size: 18px;
    }
    
    .collection-item-content .btn-collection {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .slider-wrapper {
        height: 300px;
    }
    
    .slider-content {
        left: 60px;
        max-width: calc(100% - 120px);
    }
    
    .slider-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .slider-content .excerpt {
        font-size: 13px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .slider-content .btn-primary {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .grid-slider {
        padding: 18px 25px;
    }
    
    .grid-slider-track .grid-item {
        flex: 0 0 100%;
        min-width: 260px;
    }
    
    .collection-slider {
        padding: 18px 25px;
    }
    
    .collection-item {
        height: 160px;
    }
    
    .collection-item-content {
        padding: 15px;
    }
    
    .collection-item-content h3 {
        font-size: 16px;
    }
    
    .collection-item-content .btn-collection {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Ad Spaces */
.ad-space {
    text-align: center;
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
}

.ad-space iframe,
.ad-space ins,
.ad-space > div {
    margin: 0 auto;
    display: block;
}

.ad-home-top {
    margin-top: 20px;
    margin-bottom: 40px;
}

.ad-home-middle {
    margin: 50px auto;
}

.ad-home-bottom {
    margin-top: 50px;
    margin-bottom: 40px;
}

.ad-single-top {
    margin-bottom: 30px;
}

.ad-single-middle {
    margin: 40px auto;
}

.ad-single-bottom {
    margin-top: 40px;
}

/* Comments Section */
.comments-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 0;
}

.comments-area {
    color: var(--text-primary);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
}

.comment-body {
    display: block;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author.vcard .avatar {
    border-radius: 50%;
    flex: 0 0 auto;
}

.comment-author.vcard .says {
    display: none;
}

.comment-author {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

 .comment-content {
     margin-top: 10px;
 }

.comment-meta a {
    color: var(--accent-color);
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--accent-hover);
}

.comment-list .children {
    list-style: none;
    margin: 18px 0 0 0;
    padding: 0;
}

.comment-list .children .comment {
    margin: 18px 0 0 0;
    background-color: var(--primary-bg);
    border-left: 0;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

 .comment-list .children .comment {
     padding: 24px;
     border-radius: 8px;
 }

.comment-list .children {
    padding: 0;
    margin-left: 0;
}

.reply {
    margin-top: 18px;
}

 .comment-list .comment .reply {
     float: none;
     text-align: left;
 }

.comment-reply-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

 .comment-reply-link:hover {
     background-color: var(--accent-hover);
     color: #fff;
 }

.comment-content p {
    margin: 0;
    line-height: 1.6;
}

.comment-form {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: inherit;
    margin-bottom: 20px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.no-comments {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 30px;
}

/* PulseGrid Pro Slider Styles - Applied to all sliders except featured */
.slider-wrapper-pg {
    position: relative;
    padding: 0 20px;
}

.slider-container-pg {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.slider-track-pg {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.slider-item-pg {
    flex: 0 0 auto;
    width: calc((100% - (6 * 15px)) / 7);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-item-pg:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 3px var(--accent-color), 0 8px 20px rgba(16, 185, 129, 0.3);
}

.slider-item-pg a {
    text-decoration: none;
    display: block;
    position: relative;
    height: 100%;
}


.slider-item-pg img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.slider-title-pg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    z-index: 2;
}

.slider-title-pg h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-item-pg:hover .slider-title-pg h4 {
    color: var(--accent-color);
}

/* Collection slider specific styles */
.collection-item-pg {
    width: calc((100% - (2 * 20px)) / 3) !important;
    height: 200px;
}

.collection-item-pg img {
    height: 200px;
    object-fit: cover;
}

.collection-item-pg .slider-title-pg {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.collection-title-pg h4 {
    margin-bottom: 0;
    text-align: left;
    flex: 1;
    font-size: 1rem;
}

.collection-title-pg .btn-collection {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.collection-item-pg:hover .btn-collection {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Slider buttons - Same style as featured slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-btn:hover {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.15);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Archive pages grid using PulseGrid Pro structure */
.posts-grid-pg {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

.posts-grid-pg .slider-item-pg {
    flex: 0 0 auto;
    width: calc((100% - (6 * 15px)) / 7);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.posts-grid-pg .slider-item-pg:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 3px var(--accent-color), 0 8px 20px rgba(16, 185, 129, 0.3);
}

.posts-grid-pg .slider-item-pg a {
    text-decoration: none;
    display: block;
    position: relative;
    height: 100%;
}

.posts-grid-pg .slider-item-pg img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.posts-grid-pg .slider-title-pg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    z-index: 2;
}

.posts-grid-pg .slider-title-pg h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.posts-grid-pg .slider-item-pg:hover .slider-title-pg h4 {
    color: var(--accent-color);
}

/* Responsive adjustments for PulseGrid Pro sliders */
@media (max-width: 1400px) {
    .slider-item-pg {
        width: calc((100% - (5 * 15px)) / 6);
    }
    
    .posts-grid-pg .slider-item-pg {
        width: calc((100% - (5 * 15px)) / 6);
    }
}

@media (max-width: 1200px) {
    .slider-item-pg {
        width: calc((100% - (4 * 15px)) / 5);
    }
    
    .posts-grid-pg .slider-item-pg {
        width: calc((100% - (4 * 15px)) / 5);
    }
}

@media (max-width: 992px) {
    .slider-item-pg {
        width: calc((100% - (3 * 15px)) / 4);
    }
    
    .posts-grid-pg .slider-item-pg {
        width: calc((100% - (3 * 15px)) / 4);
    }
}

@media (max-width: 768px) {
    .slider-item-pg {
        width: calc((100% - (2 * 15px)) / 3);
    }
    
    .posts-grid-pg .slider-item-pg {
        width: calc((100% - (2 * 15px)) / 3);
    }
    
    .collection-item-pg {
        width: calc((100% - 20px) / 2) !important;
        height: 180px;
    }
    
    .collection-item-pg img {
        height: 180px;
    }
    
    .slider-wrapper-pg {
        padding: 0 15px;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
    
    .slider-title-pg {
        padding: 15px;
    }
    
    .slider-title-pg h4 {
        font-size: 0.8rem;
    }
    
    /* Mobile header adjustments */
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 4;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }
    
    .site-logo {
        order: 2;
        flex: 1;
        text-align: center;
    }
    
    .header-actions {
        order: 3;
        margin-left: 0;
    }
    
    /* Mobile search styles */
    .header-search-expanded {
        padding: 0 15px;
    }
    
    .header-search-input {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .search-close {
        padding: 0.5rem;
    }
}

@media (max-width: 600px) {
    .slider-item-pg {
        width: calc((100% - 15px) / 2);
    }
    
    .posts-grid-pg .slider-item-pg {
        width: calc((100% - 15px) / 2);
    }
    
    .collection-item-pg {
        width: 100% !important;
        height: 160px;
    }
    
    .collection-item-pg img {
        height: 160px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .prev-btn {
        left: -15px;
    }
    
    .next-btn {
        right: -15px;
    }
    
    .slider-title-pg {
        padding: 12px;
    }
    
    .slider-title-pg h4 {
        font-size: 0.75rem;
    }
    
    .collection-title-pg .btn-collection {
        padding: 6px 12px;
        font-size: 11px;
    }
}
