/*
Theme Name: SimpleBUD
Description: Tema minimalista y limpio para WordPress
Version: 1.0.0
Author: Tu Nombre
Text Domain: simplebud
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tipografía Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Contenedor principal */
.sb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wrapper de contenido principal */
.sb-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

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

/* Header */
.sb-site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sb-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sb-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sb-site-branding {
    display: flex;
    flex-direction: column;
}

.sb-site-title {
    font-size: 2rem;
    font-weight: 300;
    color: #333;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.sb-site-description {
    color: #666;
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 300;
}

/* Navegación */
.sb-main-navigation {
    display: flex;
    align-items: center;
}

.sb-primary-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.sb-primary-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    padding: 10px 0;
    position: relative;
}

.sb-primary-menu a:hover {
    color: #007cba;
}

.sb-primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007cba;
    transition: width 0.3s ease;
}

.sb-primary-menu a:hover::after {
    width: 100%;
}

/* Botón menú móvil */
.sb-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
}

.sb-hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.sb-mobile-menu-toggle.sb-active .sb-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sb-mobile-menu-toggle.sb-active .sb-hamburger-line:nth-child(2) {
    opacity: 0;
}

.sb-mobile-menu-toggle.sb-active .sb-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Contenido principal */
.sb-main-content {
    padding: 40px 0;
}

.sb-page-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Títulos de entradas */
.sb-entry-title,
.sb-post-title,
.sb-page-title,
.sb-archive-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.sb-post-title a,
.sb-page-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sb-post-title a:hover {
    color: #007cba;
}

/* Contenido de entradas */
.sb-entry-content,
.sb-post-content,
.sb-page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

.sb-entry-content h2,
.sb-post-content h2,
.sb-page-content h2 {
    font-size: 2rem;
    margin: 30px 0 15px;
    color: #333;
    font-weight: 500;
}

.sb-entry-content h3,
.sb-post-content h3,
.sb-page-content h3 {
    font-size: 1.5rem;
    margin: 25px 0 10px;
    color: #333;
    font-weight: 500;
}

.sb-entry-content p,
.sb-post-content p,
.sb-page-content p {
    margin-bottom: 20px;
}

/* Grid de posts */
.sb-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sb-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sb-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.sb-post-thumbnail {
    overflow: hidden;
}

.sb-post-thumbnail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sb-post-card:hover .sb-post-thumbnail-image {
    transform: scale(1.05);
}

.sb-post-content {
    padding: 20px;
}

.sb-post-header {
    margin-bottom: 15px;
}

.sb-post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sb-post-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
}

.sb-read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.sb-read-more:hover {
    background: #005a8b;
    color: #fff;
}

/* Sidebar */
.sb-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sb-sidebar-content {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 120px;
}

.sb-widget {
    margin-bottom: 30px;
}

.sb-widget:last-child {
    margin-bottom: 0;
}

.sb-widget-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

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

.sb-widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sb-widget li:last-child {
    border-bottom: none;
}

.sb-widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sb-widget a:hover {
    color: #007cba;
}

/* Footer */
.sb-site-footer {
    background: #333;
    color: #fff;
    margin-top: auto;
}

.sb-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sb-footer-content {
    padding: 40px 0 20px;
}

.sb-footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sb-footer-widget {
    text-align: center;
}

.sb-footer-widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

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

.sb-footer-widget li {
    margin-bottom: 8px;
}

.sb-footer-widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sb-footer-widget a:hover {
    color: #fff;
}

.sb-footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.sb-footer-navigation {
    margin-bottom: 20px;
}

.sb-footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.sb-footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sb-footer-menu a:hover {
    color: #fff;
}

.sb-footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

.sb-wordpress-link {
    color: #007cba;
    text-decoration: none;
}

.sb-wordpress-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .sb-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .sb-sidebar {
        width: 100%;
    }
    
    .sb-sidebar-content {
        position: static;
    }
    
    .sb-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sb-mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .sb-primary-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    
    .sb-primary-menu.sb-active {
        display: flex;
    }
    
    .sb-primary-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .sb-primary-menu a {
        display: block;
        padding: 15px 0;
    }
    
    .sb-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sb-post-card {
        margin-bottom: 20px;
    }
    
    .sb-footer-widgets {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sb-footer-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .sb-container {
        padding: 0 15px;
    }
    
    .sb-header-container {
        padding: 0 15px;
    }
    
    .sb-footer-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .sb-site-title {
        font-size: 1.5rem;
    }
    
    .sb-post-title,
    .sb-page-title,
    .sb-archive-title {
        font-size: 2rem;
    }
    
    .sb-post-content {
        padding: 15px;
    }
    
    .sb-sidebar-content {
        padding: 20px;
    }
}
