/*
Theme Name: AyudaWeb
Theme URI: https://ayuda-web.net/
Author: Antigravity
Author URI: https://ayuda-web.net/
Description: Tema personalizado para el blog de AyudaWeb.net. Diseño premium, minimalista y funcional.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ayudaweb
*/

/* 
 * El estilo principal está en assets/css/styles.css 
 * Aquí definimos las clases estructurales específicas para el layout de WordPress
 */

.site-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 3rem 0 6rem 0;
}

.main-content-area {
    flex: 1;
    min-width: 0; /* previene desbordamiento */
}

.sidebar-area {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 100px; /* offset for fixed header */
    align-self: start;
}

/* AdSense Placeholders */
.adsense-placeholder {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 2rem auto;
    text-align: center;
}

.ads-vertical {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    min-height: 300px;
}

.ads-horizontal {
    width: 100%;
    height: 90px;
    max-width: 728px;
}



/* En vista single, contenido a un lado, sidebar al otro */
.single-post-content {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.single-post-content img {
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.single-post-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Estilos de Sidebar */
.widget {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.widget ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.widget ul li a::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--color-primary);
    font-weight: bold;
}

.widget ul li a:hover {
    color: var(--color-primary);
}

.tagcloud a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem !important;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.tagcloud a:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Adaptación responsive */
@media (max-width: 992px) {
    .site-main-wrapper {
        flex-direction: column;
    }
    
    .sidebar-area {
        width: 100%;
    }
    

}
