/**
 * Mak Mebel - Custom CSS
 * Additional styles and overrides
 */

/* =====================================================
   FILTER NAVIGATION
   ===================================================== */

.filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid #e5e4e2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.filter-btn.is-active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* =====================================================
   PROJECT NAVIGATION
   ===================================================== */

.project-nav {
    padding: 2rem 0;
    border-top: 1px solid #e5e4e2;
}

.project-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   CUSTOM SELECT STYLING
   ===================================================== */

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* =====================================================
   FORM RESPONSE
   ===================================================== */

.form-response {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* =====================================================
   ADDITIONAL ANIMATIONS
   ===================================================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* =====================================================
   LOADING STATES
   ===================================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* =====================================================
   IMAGE ASPECT RATIOS
   ===================================================== */

.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-1-1 {
    aspect-ratio: 1 / 1;
}

.aspect-3-4 {
    aspect-ratio: 3 / 4;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

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

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

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #ff5555;
    outline-offset: 2px;
}

/* =====================================================
   PREFERS REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .site-loader {
        display: none;
    }
}

/* =====================================================
   PRINT STYLES ENHANCEMENTS
   ===================================================== */

@media print {
    .hero,
    .carousel-nav,
    .carousel-dots,
    .site-header,
    .site-footer {
        display: none !important;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .project-card-image img {
        max-height: 300px;
        object-fit: cover;
    }
}

/* =====================================================
   DARK MODE SUPPORT (optional)
   ===================================================== */

@media (prefers-color-scheme: dark) {
    /* Currently disabled - keeping light theme only */
    /* Uncomment below to enable dark mode support */

    /*
    body {
        background-color: #1a1a1a;
        color: #f5f5f5;
    }

    .site-header.is-scrolled {
        background: rgba(26, 26, 26, 0.95);
    }

    .editorial-section.alt-bg {
        background: #222;
    }
    */
}

/* =====================================================
   HIGH CONTRAST MODE
   ===================================================== */

@media (prefers-contrast: high) {
    .site-logo,
    h1, h2, h3, h4, h5, h6 {
        font-weight: 600;
    }

    .project-card-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* =====================================================
   CUSTOM SCROLLBAR
   ===================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #faf9f7;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ddd #faf9f7;
}

/* =====================================================
   SELECTION STYLES
   ===================================================== */

::selection {
    background: #ff5555;
    color: #fff;
}

::-moz-selection {
    background: #ff5555;
    color: #fff;
}
