:root {
    --primary-color: #d40000;
    --secondary-color: #b91c1c;
    --bg-color: #fff8e8;
    --card-bg: #fff8e8;
    --text-color: #7b2f00;
    --border-color: #f5d6c6;
    --accent-color: #d40000;
    --hover-bg: #f5d6c6;
    
    /* Colores de Halloween para el tema moderno */
    --pumpkin-orange: #ff6b35;
    --spooky-purple: #8b008b;
    --ghost-white: #f0f8ff;
    --bat-black: #000000;
    --witch-green: #228b22;
    --blood-red: #8b0000;
}

[data-theme="dark"] {
    --bg-color: #fff8e8;
    --card-bg: #fff8e8;
    --text-color: #7b2f00;
    --border-color: #f5d6c6;
    --hover-bg: #f5d6c6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.site-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.search-bar {
    position: relative;
    max-width: 450px;
    flex-grow: 1;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
    background: linear-gradient(145deg, var(--bg-color), var(--card-bg));
    color: var(--text-color);
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1), 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-bar input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
    font-style: italic;
}

.search-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(56, 178, 172, 0.3);
}

.search-bar button:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.4);
}

.search-bar button:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
}

.welcome-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.welcome-card h1 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-card h1 button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.6;
}

.welcome-card p {
    line-height: 1.6;
    margin-bottom: 16px;
}

.welcome-card .links {
    margin-top: 16px;
}

.welcome-card .links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 16px;
}

.category-section {
    margin-top: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.section-header .filter {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    cursor: pointer;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.board-category {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.board-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.board-item {
    padding: 6px 0;
}

.board-link {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.board-link:hover {
    color: var(--primary-color);
}

.board-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.nsfw {
    color: var(--accent-color);
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    background-color: rgba(245, 101, 101, 0.1);
}

.trending-section {
    margin-top: 32px;
    margin-bottom: 40px;
}

.threads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.thread-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.thread-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.thread-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.thread-content {
    padding: 12px;
}

.thread-board {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.thread-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    text-decoration: none;
    white-space: normal;      /* permite saltos de l��nea */
    word-break: break-word;   /* corta palabras si es necesario */
    line-height: 1.4;         /* mejora la legibilidad entre l��neas */
}

.thread-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(var(--text-color-rgb), 0.6);
}

.thread-replies {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.stats-content {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
}

.copyright {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .boards-grid {
        grid-template-columns: 1fr;
    }

    .threads-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .stats-content {
        flex-direction: column;
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
}
/* Moderation Panel Styles */
.mod-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }
  
  .mod-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  
  .mod-panel .panel-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
  }
  
  .mod-panel .mod-filters {
    display: flex;
    gap: 12px;
  }
  
  .mod-panel .mod-filters button {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .mod-panel .mod-filters button.active,
  .mod-panel .mod-filters button:hover {
    background: var(--primary-color);
    color: white;
  }
  
  /* Stats Section */
  .mod-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
  }
  
  .mod-stats .stat-item {
    flex: 1;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
  }
  
  .mod-stats .stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
  }
  
  .mod-stats .stat-label {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.8;
  }
  
  /* Cards for reported/pending posts */
  .mod-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
  }
  
  .mod-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  }
  
  .mod-card .mod-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    object-fit: cover;
    background: var(--hover-bg);
  }
  
  .mod-card .mod-details {
    flex-grow: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
  }
  
  .mod-card .mod-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .mod-card .mod-card-header .post-id {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
  }
  
  .mod-card .mod-content {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  
  .mod-card .mod-card-actions {
    display: flex;
    gap: 8px;
  }
  
  .mod-card .mod-card-actions button {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 0;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .mod-card .mod-card-actions button.delete {
    background: var(--accent-color);
  }
  
  .mod-card .mod-card-actions button:hover {
    background: var(--secondary-color);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .mod-stats {
      flex-direction: column;
    }
    .mod-card {
      flex-direction: column;
    }
    .mod-thumbnail {
      width: 100%;
      height: 150px;
    }
  }
  
/* ===== GLOBAL SEARCH STYLES - IMPROVED DESIGN ===== */

/* Contenedor de resultados mejorado */
.global-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    max-height: 500px;
    backdrop-filter: blur(10px);
    animation: searchDropdownSlide 0.3s ease-out;
}

@keyframes searchDropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header de resultados mejorado */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 14px;
}

.results-count {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-count::before {
    content: "🔍";
    font-size: 16px;
}

.view-all-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Lista de resultados mejorada */
.search-results-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

/* Cada resultado individual mejorado */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(var(--border-color), 0.3);
    gap: 16px;
    position: relative;
}

.search-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: linear-gradient(135deg, 
        rgba(56, 178, 172, 0.05), 
        rgba(44, 122, 123, 0.05)
    );
    transform: translateX(4px);
}

.search-result-item:hover::before,
.search-result-item.active::before {
    width: 4px;
}

/* Tipo de resultado mejorado */
.result-type {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    font-size: 13px;
}

.result-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(56, 178, 172, 0.3);
}

.result-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-board {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 11px;
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

/* Contenido del resultado mejorado */
.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--text-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result-description {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Highlighting mejorado */
.result-title mark,
.result-description mark {
    background: linear-gradient(135deg, 
        rgba(255, 235, 59, 0.8), 
        rgba(255, 193, 7, 0.6)
    );
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .result-title mark,
[data-theme="dark"] .result-description mark {
    background: linear-gradient(135deg, 
        rgba(255, 235, 59, 0.9), 
        rgba(255, 193, 7, 0.7)
    );
    color: #000;
}

/* Flecha indicadora mejorada */
.result-arrow {
    color: var(--primary-color);
    opacity: 0.6;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.search-result-item:hover .result-arrow {
    opacity: 1;
    transform: translateX(6px) scale(1.2);
}

/* Estados especiales mejorados */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color);
    opacity: 0.7;
}

.no-results::before {
    content: "🔍";
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.no-results small {
    font-size: 14px;
    opacity: 0.8;
}

.search-error {
    text-align: center;
    padding: 24px 20px;
    color: var(--accent-color);
    background: linear-gradient(135deg, 
        rgba(245, 101, 101, 0.1), 
        rgba(245, 101, 101, 0.05)
    );
}

.search-error::before {
    content: "⚠️";
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

/* Estado de carga mejorado */
.search-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 16px;
    color: var(--text-color);
    opacity: 0.8;
}

.search-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: modernSpin 1s linear infinite;
}

@keyframes modernSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar personalizado mejorado */
.search-results-list::-webkit-scrollbar {
    width: 8px;
}

.search-results-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(56, 178, 172, 0.3);
}

/* Responsive design mejorado */
@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
    }
    
    .search-bar input {
        padding: 14px 50px 14px 18px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .global-search-results {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        border-radius: 12px;
        max-height: 70vh;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
    
    .search-result-item {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .result-type {
        min-width: auto;
        align-self: flex-end;
        flex-direction: row-reverse;
    }
    
    .result-content {
        width: 100%;
    }
    
    .result-arrow {
        display: none;
    }
    
    .search-results-header {
        padding: 14px 16px;
    }
    
    .view-all-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .global-search-results {
        left: 8px;
        right: 8px;
        max-height: 60vh;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .result-title {
        font-size: 14px;
    }
    
    .result-description {
        font-size: 12px;
    }
}

/* Efectos especiales para interacciones */
.search-result-item:active {
    transform: translateX(4px) scale(0.98);
}

.global-search-results {
    border: 1px solid transparent;
    background-clip: padding-box;
}

[data-theme="dark"] .global-search-results {
    border-color: var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Animación de aparición suave */
.global-search-results {
    animation: searchAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes searchAppear {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Accesibilidad y alto contraste mejorados */
@media (prefers-contrast: high) {
    .search-bar input {
        border: 2px solid var(--text-color);
    }
    
    .global-search-results {
        border: 2px solid var(--text-color);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    }
    
    .search-result-item:hover,
    .search-result-item.active {
        background-color: var(--text-color);
        color: var(--bg-color);
    }
    
    .result-title mark,
    .result-description mark {
        background-color: yellow;
        color: black;
        border: 1px solid black;
    }
}

/* Reducir movimiento para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
    .global-search-results,
    .search-result-item,
    .result-arrow,
    .search-spinner {
        animation: none;
        transition: none;
    }
    
    .search-result-item:hover {
        transform: none;
    }
}


/* === ESTILOS PARA LAYOUT DE ESTAD�0�1STICAS (TEMA MODERNO) === */

.dynamic-content-block {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-column {
    flex: 0 0 280px;
}

.posts-column {
    flex: 1 1 auto;
    min-width: 0;
}

.images-column {
    flex: 0 0 250px;
}

.dynamic-title {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-box, 
.posts-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    min-height: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.images-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    min-height: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-content: start;
}

.recent-image {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.recent-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.recent-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.2s ease;
}

.recent-image:hover img {
    filter: brightness(0.8);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.recent-image:hover .image-overlay {
    opacity: 1;
}

.image-board {
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background-color: rgba(212, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.stats-box p {
    margin: 0 0 12px 0;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.stats-box p:hover {
    background-color: var(--hover-bg);
    transform: translateX(2px);
}

.stats-box p:first-of-type {
    border: 2px dashed #1F8F2A;
    color: #1F8F2A;
    background-color: rgba(31, 143, 42, 0.1);
}

.stats-gif {
    display: block;
    margin: 20px auto 0;
    text-align: center;
    font-size: 24px;
}

.latest-post-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.latest-post-line:last-child {
    border-bottom: none;
}

.latest-post-line:hover {
    background-color: var(--hover-bg);
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}

.post-time {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 500;
    min-width: 35px;
}

.post-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
    min-width: 0;
}

.post-link:hover {
    color: var(--primary-color);
}

.board-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
    background-color: rgba(212, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.post-snippet {
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Responsive para el layout de estad��sticas */
@media (max-width: 768px) {
    .dynamic-content-block {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-column,
    .images-column {
        flex: none;
    }
    
    .stats-box, 
    .posts-box,
    .images-box {
        min-height: 200px;
    }
    
    .images-box {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .images-box {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .recent-image {
        height: 100px;
    }
    
    .latest-post-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .post-time {
        min-width: auto;
    }
    
    .post-link {
        width: 100%;
    }
    
    .post-snippet {
        white-space: normal;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .images-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px;
    }
    
    .images-box {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }
    
    .recent-image {
        aspect-ratio: 1;
        height: 80px;
    }
}

/* === EFECTOS DE HALLOWEEN PARA TEMA MODERNO === */

/* Animaciones de Halloween */
@keyframes pumpkinFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes ghostFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-15px) translateX(10px);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) translateX(0px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) translateX(-10px);
        opacity: 1;
    }
}

@keyframes spiderCrawl {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 50px));
        opacity: 0;
    }
}

@keyframes batFly {
    0% {
        transform: translateX(-100px) translateY(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateX(50vw) translateY(-50px);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0px);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Contenedor de animaciones de Halloween */
.halloween-animations-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

/* Calabazas cayendo */
.halloween-pumpkin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--pumpkin-orange);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    pointer-events: none;
    box-shadow: 
        inset -10px -5px 0 0 #e55a2b,
        inset 10px -5px 0 0 #e55a2b,
        0 0 20px rgba(255, 107, 53, 0.5);
}

.halloween-pumpkin::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 15px;
    background: #8b4513;
    border-radius: 2px;
}

.halloween-pumpkin::after {
    content: '🎃';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Fantasmas flotantes */
.halloween-ghost {
    position: absolute;
    width: 30px;
    height: 40px;
    background: var(--ghost-white);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(240, 248, 255, 0.6);
}

.halloween-ghost::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--ghost-white);
    clip-path: polygon(0 0, 25% 100%, 50% 0, 75% 100%, 100% 0);
}

.halloween-ghost::after {
    content: '👻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #000;
}

/* Arañas corriendo */
.halloween-spider {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bat-black);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.halloween-spider::before,
.halloween-spider::after {
    content: '';
    position: absolute;
    background: var(--bat-black);
    border-radius: 50%;
}

.halloween-spider::before {
    width: 6px;
    height: 6px;
    top: -3px;
    left: -3px;
}

.halloween-spider::after {
    width: 4px;
    height: 4px;
    top: -2px;
    right: -2px;
}

/* Murciélagos volando */
.halloween-bat {
    position: absolute;
    width: 25px;
    height: 15px;
    background: var(--bat-black);
    pointer-events: none;
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.halloween-bat::before,
.halloween-bat::after {
    content: '';
    position: absolute;
    background: var(--bat-black);
    border-radius: 50% 0;
}

.halloween-bat::before {
    width: 12px;
    height: 15px;
    top: -5px;
    left: -5px;
    transform: rotate(-45deg);
}

.halloween-bat::after {
    width: 12px;
    height: 15px;
    top: -5px;
    right: -5px;
    transform: rotate(45deg);
}

/* Partículas flotantes */
.halloween-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--pumpkin-orange);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255, 107, 53, 0.8);
}

/* Responsive para efectos de Halloween */
@media (max-width: 768px) {
    .halloween-pumpkin {
        width: 30px;
        height: 30px;
    }
    
    .halloween-ghost {
        width: 25px;
        height: 35px;
    }
    
    .halloween-spider {
        width: 15px;
        height: 15px;
    }
    
    .halloween-bat {
        width: 20px;
        height: 12px;
    }
}
  