/**
 * Archinterio Custom CSS
 */

/* ============================================
   PREMIUM BLOG PAGE STYLES
   ============================================ */

/* Gallery Section Styles */
.premium-gallery-section {
    padding: var(--space-24) 0;
    background: var(--premium-bg-secondary);
}

.premium-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
    margin-top: 40px;
}

.premium-masonry-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.premium-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Masonry Size Variations */
.premium-masonry-small {
    grid-row: span 1;
}

.premium-masonry-medium {
    grid-row: span 1;
}

.premium-masonry-large {
    grid-row: span 2;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .premium-masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 15px;
    }
    
    .premium-masonry-large {
        grid-row: span 2;
    }
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu-content {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-white);
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .mobile-menu.active .mobile-menu-content {
        transform: translateX(0);
    }
    
    .mobile-menu-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-content li {
        border-bottom: 1px solid var(--color-beige);
    }
    
    .mobile-menu-content a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        color: var(--text-primary);
    }
    
    .mobile-menu-contact {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--color-beige);
    }

    .mobile-menu-contact a {
        display: block;
        margin-bottom: 1rem;
    }

    .mobile-menu-contact .btn {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        text-align: center;
        color: var(--color-white);
        background-color: var(--accent-primary);
        border: none;
        border-radius: 0;
        transition: all 0.3s ease;
    }

    .mobile-menu-contact .btn:hover {
        background-color: var(--color-copper);
    }
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.page-loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-beige);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-beige);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-white);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--accent-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--color-white); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-dark { background-color: var(--bg-dark); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

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

.alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

.wp-block-image img {
    height: auto;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    clip: auto;
    white-space: normal;
    background-color: var(--color-white);
    z-index: 99999;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .page-header {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-beige);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background-color: var(--accent-primary);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--accent-primary);
    color: var(--color-white);
}

/* ============================================
   SEO BREADCRUMB
   ============================================ */
.archinterio-breadcrumb {
    background: var(--color-beige, #f5f3ef);
    padding: 12px 0;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.archinterio-breadcrumb .breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.archinterio-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted, #888);
}

.archinterio-breadcrumb .breadcrumb-item a {
    color: var(--text-muted, #888);
    text-decoration: none;
    transition: color 0.2s ease;
}

.archinterio-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent-primary, #b89b72);
}

.archinterio-breadcrumb .breadcrumb-sep {
    margin: 0 8px;
    color: var(--text-muted, #ccc);
    font-size: 0.75rem;
}

.archinterio-breadcrumb .breadcrumb-item.current span {
    color: var(--text-dark, #333);
    font-weight: 500;
}
