/*
Theme Name: Industrial
Theme URI: https://industrialerotica.com
Author: Ariseweb
Author URI: https://industrialerotica.com
Description: Tema minimalista para blog basado en el diseño de Industrial Erótica
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: industrial
*/

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    --color-primary: #FF3366;
    --color-secondary: #011627;
    --color-text: #011627;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-border: #e0e0e0;
    --color-hover: #FF69B4;
    --color-bg-constrast: #F4F5FA;
    --font-primary: 'Rubik', sans-serif;
    --font-secondary: 'Comfortaa', display;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* ========================================
   RESET Y BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-hover);
}

/* ========================================
   RESET Y BASE
======================================== */

/* Barra Rosa Superior */
.top-bar {
    background-color: var(--color-primary); /* Rosa */
    color: #ffffff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
}

/* Contenedor Flex del Header */
.site-header {
    background-color: #ffffff;
}

.header-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* Columnas */
.header-left, .header-right {
    flex: 1; /* Ocupan el mismo espacio a los lados */
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-center {
    flex: 2; /* El logo tiene más espacio en el centro */
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-right {
    justify-content: flex-end; /* Alinear iconos a la derecha */
}

/* Estilos para el Logo */
.custom-logo-link img {
    width: 190px;
}

/* Estilos de botones e iconos */
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.icon-link {
    color: #011627;
    display: flex;
    align-items: center;
    position: relative;
}

/* Contador del carrito (círculo rosa) */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #FF3366;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Iconos SVG color */
svg {
    width: 28px;
    height: 28px;
    color: #011627;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 10px;
    }
    .top-bar {
        font-size: 12px;
    }
}



/* ========================================
   TIPOGRAFÍA
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
}

.site-title a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.site-title a:hover {
    color: var(--color-primary);
}

.site-description {
    color: #999999;
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   NAVEGACIÓN
======================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: var(--spacing-xs) var(--spacing-sm);
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ========================================
   CONTENIDO PRINCIPAL
======================================== */
.site-content {
    max-width: var(--max-width);
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   GRID DE POSTS (HOME Y ARCHIVE)
======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

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

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
    background-color: #f5f5f5;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content-card {
    padding: var(--spacing-md);
}

.post-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.post-date,
.post-category {
    display: inline-block;
}

.post-category a {
    color: var(--color-primary);
    font-weight: 600;
}

.post-title-card {
    margin-bottom: var(--spacing-sm);
}

.post-title-card a {
    color: var(--color-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-title-card a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.read-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.read-more:hover {
    border-bottom-color: var(--color-primary);
}

/* ========================================
   POST INDIVIDUAL
======================================== */
.single-post {
    margin: 0 auto;
}

.entry-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.featured-image {
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    overflow: hidden;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-primary);
}

.entry-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.entry-content p {
    margin-bottom: var(--spacing-md);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
}

.entry-content li {
    margin-bottom: var(--spacing-xs);
}

.entry-content img {
    margin: var(--spacing-md) auto;
    border-radius: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.entry-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    display: inline-block;
    background-color: #f5f5f5;
    color: var(--color-text);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* ========================================
   PAGINACIÓN
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    text-align: center;
}

.footer-info {
    margin-bottom: var(--spacing-md);
}

.footer-info p {
    margin-bottom: var(--spacing-xs);
    color: #999999;
}

.footer-info a {
    color: var(--color-primary);
}

.footer-info a:hover {
    color: var(--color-hover);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.875rem;
    color: #666666;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-secondary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation.toggled {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: var(--spacing-sm);
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation a {
        display: block;
        padding: var(--spacing-sm);
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .entry-title {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .pagination a,
    .pagination span {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.875rem;
    }
}

/* ========================================
   UTILIDADES
======================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.alignleft {
    float: left;
    margin-right: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.alignright {
    float: right;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.clear::after {
    content: "";
    display: table;
    clear: both;
}
