/**
 * Layout de Aplicación de Arte - Directorio de Arte
 * Estructura principal responsive con estética de app moderna
 */

/* Variables CSS para colores y medidas */
:root {
    --header-height: 4rem;
    --sidebar-width: 16rem;
    --border-radius: 0.5rem;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y estilos base */
* {
    box-sizing: border-box;
}



/* Estructura principal de la app */
.art-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--fondo-1, #f4ecd0);
}

/* Header principal */
.art-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--fondo-1, #f4ecd0);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.art-header__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.art-header__logo {
    flex-shrink: 0;
}

.art-header__logo img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.art-header__search {
    flex: 1;
    max-width: 28rem;
}

.art-header__menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--txt-4, #8b4513);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.art-header__menu-toggle:hover {
    background: var(--fondo-1, #f4ecd0);
}

.art-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Layout principal */
.art-layout {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.art-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));

    overflow-y: auto;
    transform: translateX(-100%);
    transition: var(--transition-smooth);
    z-index: 900;
}

.art-sidebar--open {
    transform: translateX(0);
}

.art-sidebar__content {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Contenido principal */
.art-main {
    flex: 1;
    width: 100%;
    background: var(--fondo-1, #f4ecd0);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.art-main__container {
    flex: 1;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.art-main__content {
    flex: 1;
    background: var(--fondo-1, #f4ecd0);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 100%;
}

/* Contenedor interno para páginas */
.art-page-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Contenedor interno para páginas individuales */
.art-single-container {
   
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Contenedor para taxonomías */
.art-taxonomy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    width: 100%;
}

/* Contenedor de sección hero/destacada */
.art-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Grid para contenido en dos columnas */
.art-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Sección de contenido */
.art-content-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 1.5rem;
}

/* Overlay para móvil */
.art-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 800;
}

.art-overlay--active {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.art-footer {
    background: var(--fondo-1, #f4ecd0);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    margin-top: auto;
    flex-shrink: 0;
}

/* Responsive Design */

/* Tablet */
@media (min-width: 768px) {
    .art-header__menu-toggle {
        display: none;
    }
    
    .art-sidebar {
        position: fixed;
        transform: translateX(0);
        flex-shrink: 0;
    }
    
    .art-main {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
    
    .art-layout {
        display: flex;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .art-header__left {
        gap: 2rem;
    }
    
    .art-header__search {
        max-width: 32rem;
    }
    
    .art-layout {
        display: flex;
        margin-top: var(--header-height);
        min-height: calc(100vh - var(--header-height));
    }
    
    .art-sidebar {
        position: fixed;
        transform: translateX(0);
        flex-shrink: 0;
    }
    
    .art-main {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
    
    .art-main__container {
      padding: 0rem 0.5rem;
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .art-main__content {
        flex: 1;
        padding: 0;
    }
    
    /* Contenedores más grandes en desktop */
    .art-page-container {
        padding: 0;
    }
    
    .art-single-container {
       
    }
    
    .art-taxonomy-container {
        padding: 2rem;
    }
    
    /* Grid responsive */
    .art-grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

/* Breakpoint para tablets grandes */
@media (min-width: 768px) and (max-width: 1023px) {
    .art-page-container {
        padding: 0;
    }
    
    .art-single-container,
    .art-taxonomy-container {
        
    }
}

/* Estados móviles */
@media (max-width: 767px) {
    .art-header__menu-toggle {
        display: block;
    }
    
    .art-header__search {
        display: none;
    }
    
    .art-layout {
        display: block;
    }
    
    .art-main {
        width: 100%;
        margin-left: 0;
    }
    
    .art-main__container {
        padding: 0rem;
    }
}

/* Animaciones y transiciones suaves */
.art-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.art-sidebar::-webkit-scrollbar {
    width: 6px;
}

.art-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.art-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.art-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Estados de focus y hover para accesibilidad */
.art-header button:focus,
.art-sidebar button:focus {
    
    
}

/* Optimizaciones para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .art-header__menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Compatibilidad con modo oscuro (preparado para futuro) */
@media (prefers-color-scheme: dark) {
    /* Estilos opcionales para modo oscuro */
}

/* Print styles */
@media print {
    .art-header,
    .art-sidebar {
        display: none;
    }
    
    .art-main {
        margin-left: 0;
        margin-top: 0;
    }
}