/* Custom Fonts */
@font-face {
    font-family: 'NatinatHandwriting'; /* This is the name you will use to call it later */
    src: url('../Natinatstudio_Font.ttf') format('truetype'); /* Make sure this exactly matches your file name! */
    font-weight: normal;
    font-style: normal;
}

/* =========================================
   TYPOGRAPHY FIX: HANDWRITING VS STANDARD
========================================= */

/* 1. APPLY HER HANDWRITING (Titles, Menu, Footer) */
.menu-item, 
.filter-toggle-btn, 
.art-info h2, 
.footer-link,
a.footer-link {
    font-family: 'NatinatHandwriting', sans-serif !important;
    font-style: normal !important; /* Removes italics that distort custom fonts */
    text-transform: none !important; /* Preserves her natural upper/lowercase */
}

/* 2. SCALE UP THE HANDWRITING SIZES */
.menu-item, 
.filter-toggle-btn {
    font-size: 4rem !important; /* Makes ABOUT, SIZE, COLOR, PRICE big and readable */
}

.art-info h2 {
    font-size: 4.2rem !important; 
    line-height: 0.3 !important; /* Crushes the huge gap between wrapped handwriting lines */
    margin-bottom: 1.5rem !important; /* Controls the exact space between the title and the dimensions */
    padding-top: 0rem !important; /* Gives it a little breathing room from the image */
    margin-top: 0 !important;
}

/* Footer: Makes NATINAT huge */
.footer-content a:first-child {
    font-size: 4.5rem !important;
}

/* Footer: Makes "web by: Elisa Padilla" smaller */
.footer-content a:last-child {
    font-size: 3.2rem !important; 
}

/* 3. RESTORE THE STANDARD FONT EVERYWHERE ELSE */
.more-btn,
.art-info p,
.sort-btn,
.sort-section,
.input-group,
.input-group input,
.apply-btn {
    font-family: "Century Gothic", sans-serif !important;
    font-size: 0.9rem !important; /* Standard readable size for dimensions/prices */
}

/* Base Styles */
body {
    background-color: #ffffff;
    color: #000000;
    font-family: sans-serif; /* Fallback font */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer stays at bottom if content is short */
}

/* =========================================
   1. DEFAULT STATE (Top of the page, centered)
========================================= */
.site-header {
    text-align: center;
    padding: 2rem 2rem 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: transparent; 
    transition: background-color 0.3s ease, padding 0.3s ease; /* Smooth fade in */
}

.logo-container {
    margin: 0 0 0.5rem 0;
}

.logo-img {
    max-width: 250px; 
    width: 100%;
    height: auto;
    display: inline-block;
    transition: max-width 0.3s ease; /* Smoothly shrinks the logo */
}

/* More Button */
.more-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    font-size: 1.5rem !important; /* Makes the + massive */
    line-height: 0.5 !important; /* Keeps the clickable box tight */
    font-weight: 300; /* Keeps the symbol looking elegant and thin */
    display: inline-block !important; /* Required for the shrink animation to work! */
    transition: transform 0.3s ease !important; /* Adds the smooth shrink animation */
}

/* This specifically overrides the Master Fix so it shrinks instead of underlining */
.more-btn:hover {
    transform: scale(0.7) !important; /* Shrinks the + down to 70% of its size */
    text-decoration: none !important; /* Prevents the weird underline */
}

/* Dropdown Menu Styles */
.menu-container {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.dropdown-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 1.5rem;
    margin-top: 0.5rem;
    z-index: 10;
    width: max-content;
}

.hidden {
    display: none !important;
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* Centered by default */
}


/* =========================================
   2. SCROLLED STATE (Triggered by Javascript)
========================================= */
.site-header.scrolled {
    background-color: transparent; /* Changed from #ffffff to make it see-through */
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0.5rem 3vw; 
    box-shadow: none; /* <--- THIS removes the weird line! */
}

.static-header {
    position: relative !important; 
}

.site-header.scrolled .logo-container {
    margin: 0;
}

.site-header.scrolled .logo-img {
    max-width: 120px; /* Shrinks the logo so the bar doesn't take up the whole screen */
}

.site-header.scrolled .menu-container {
    margin-top: 0;
}

/* Dropdown alignment shift when scrolled */
.site-header.scrolled .dropdown-menu {
    right: 0;
    left: auto;
    transform: none; /* Kills the center positioning */
    top: 100%;
}

.site-header.scrolled .menu-links {
    align-items: flex-end; /* Shifts the text alignment to the right */
    text-align: right;
}

/* =========================================
   MASTER HOVER FIX: BLACK TEXT & UNDERLINES
   (Applies to More button, Header links, Filters, and Footer)
========================================= */
.menu-item,
a.menu-item,
a.menu-item:visited,
.filter-toggle-btn,
.footer-link,
a.footer-link,
a.footer-link:visited {
    color: #000000 !important; 
    text-decoration: none !important; /* No underlines by default */
    transition: none !important; /* Kills the old fade delay */
}

/* Add the underline back on hover! */
.menu-item:hover,
a.menu-item:hover,
a.menu-item:active,
.filter-toggle-btn:hover,
.footer-link:hover,
a.footer-link:hover,
a.footer-link:active,
.sort-btn:hover, 
.menu-item:hover,
.filter-btn:hover {
    color: #000000 !important; /* Stays crisp black */
    text-decoration: underline !important; 

    text-decoration-thickness: 1px !important; /* Forces a crisp, thin line */
    text-underline-offset: 1px !important; /* Pushes the line down to give the text breathing room */
}


.menu-item, .sort-btn {
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
}

.sort-section {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #666;
}


/* Universal Filter Wrappers */
.filter-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 0.5rem;
}

.filter-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

/* The Arrow */
.arrow {
    display: inline-block;
    font-size: 0.7rem;
    margin-left: 3px;
    transition: transform 0.2s ease; /* Makes the spin smooth! */
}

/* When this class is added, the arrow points down */
.arrow.open {
    transform: rotate(90deg);
}

.filter-sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #eee;
    padding: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 20;
    min-width: 120px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    gap: 0.2rem !important;
}

/* PRICE SLIDER CSS */
.price-menu {
    min-width: 250px;
    left: auto !important; /* Kills the 50% centering */
    right: 0 !important; /* Anchors it to the right edge safely */
    transform: none !important; /* Kills the -50% center shift */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-bottom: 10px;
}

.slider-track {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
}

/* Stacking the two sliders */
.slider-container input[type="range"] {
    position: absolute;
    left: 0;       /* <--- THIS forces it to start at the exact left edge! */
    margin: 0;     /* <--- Resets any default browser spacing */
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none; 
}

/* Customizing the circles (thumbs) */
.slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto; /* Makes only the circles clickable */
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
}

/* Price Input Boxes */
.price-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 0.3rem 0.5rem;
}

.input-group input {
    border: none;
    width: 60px;
    outline: none;
    text-align: right;
}

.apply-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
}
.apply-btn:hover { background-color: #333; }

.filter-btn {
    background: none;
    border: none;
    font-family: 'NatinatHandwriting', sans-serif;
    font-size: 3rem;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    position: relative; /* We added this so the triangle knows where to attach itself */
    padding-top: 0.2rem !important; /* Removes excess top padding */
    padding-bottom: 0.2rem !important; /* Removes excess bottom padding */
    line-height: 0.6 !important; /* Crushes the handwriting font's bounding box */
}

/* The new active filter style */
.filter-btn.active-filter {
    font-weight: normal; /* Removes the bold */
    color: #000;
}

/* This magically adds the triangle pointing to the text */
.filter-btn.active-filter::before {
    content: '►';
    position: absolute;
    left: 10px; /* Pins the triangle to the left side of the menu */
    top: 50%;
    transform: translateY(-50%); /* Centers the triangle perfectly vertically */
    font-size: 0.7rem; /* Keeps the triangle delicate and not overpowering */
}

/* =========================================
   AVAILABLE ONLY TOGGLE
========================================= */
.availability-filter {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.availability-filter input[type="checkbox"] {
    appearance: none; /* Removes the ugly default browser checkbox */
    width: 14px;
    height: 14px;
    border: 1px solid #000;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

/* Creates a nice black square when checked */
.availability-filter input[type="checkbox"]:checked {
    background-color: #000;
}

.availability-filter label {
    font-family: 'Century Gothic', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: #000;
}

/* Gallery Grid */
.gallery-grid {
    flex: 1; /* Pushes the footer to the bottom */
    display: grid;
    /* This creates a flexible grid with small images and big gaps */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem; 
    padding: 2rem 12vw;
    justify-items: center;
    align-items: end; /* Aligns the bottoms of images if they are different heights */
}

/* Individual Art Cards */
.art-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.art-card:hover {
    transform: scale(1.02); /* Slight zoom on hover to show it's clickable */
}

.art-card img {
    max-width: 200px; /* Keeps images small as requested */
    height: auto;
    display: block;
}

/* Art Info Details */
.art-info {
    text-align: center;
    margin-top: 1rem;
}

/* 1. Make the text black by default */
.art-info h2 {
    color: #999999; 
    font-weight: normal;
    margin-bottom: 0rem;
    transition: color 0.3s ease; 
}

.art-info p {
    color: #999999; 
    margin: 0;
    transition: color 0.3s ease;
}

/* 2. Turn the text grey when hovering or clicking the art card */
.art-card:hover .art-info h2,
.art-card:hover .art-info p,
.art-card:active .art-info h2,
.art-card:active .art-info p {
    color: #000000; /* Now fades to Grey */
}

/* Bottom Left Vertical Footer */
.site-footer {
    position: fixed;  /* Locks it to the screen like a watermark */
    bottom: 2rem;
    left: 2rem;
    z-index: 100;     /* Ensures it stays on top of the images */
}

.footer-content {
    /* This magic combo makes it vertical and read from bottom to top */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    
    display: column;
    gap: 1rem; 
    align-items: flex-start;
}

.footer-link {
    letter-spacing: 1px;
    background: none;
    border: none;
    display: block;
    cursor: pointer;
    padding: 0;
    white-space: nowrap; /* Prevents the text from wrapping weirdly */
}


.footer-link,
a.footer-link,
a.footer-link:visited {
    letter-spacing: 1px;
    background: none;
    border: none;
    display: block;
    cursor: pointer;
    padding: 0;
    white-space: nowrap; 
    text-decoration: none !important; /* Kills the default underline completely */
    color: #000000 !important; /* Starts black */
    transition: color 0.3s ease !important; /* Adds the smooth fade */
}


/* Stops the About link (and any future links) from turning purple */
a.menu-item:link,
a.menu-item:visited,
a.menu-item:hover,
a.menu-item:active {
    color: #000000; /* Forces it to stay black */
    text-decoration: none; /* Keeps the underline away */
}

/* =========================================
   MOBILE RESPONSIVE FIXES
========================================= */
@media (max-width: 1024px) {
    
    /* =========================================
       MOBILE FOOTER: VERTICAL & THIN
    ========================================= */
    .site-footer {
        position: fixed !important; 
        bottom: 1rem !important;
        left: 0.2rem !important; 
        z-index: 100 !important; 
        width: auto !important;
        padding: 0 !important;
        background-color: transparent !important;
    }

    /* 1. Only rotate the parent container to fix the direction! */
    .footer-content {
        position: static !important;
        writing-mode: vertical-rl !important;
        transform: rotate(180deg) !important;
        display: block !important; /* 2. 'block' perfectly splits them into two parallel lines */
        text-align: left !important;
    }

    /* 3. Stop the links from double-flipping and force them side-by-side */
    .footer-content a.footer-link {
        position: static !important;
        transform: none !important; 
        display: block !important; 
        
        /* THE FIX: Use 0 or a negative number to suck the lines together */
        margin-left: -0.5rem !important; 
        line-height: 0.8 !important; /* Crushes the invisible box around the handwriting */
    }

    /* Mobile Text Sizes */
    .footer-content a:first-child {
        font-size: 3.2rem !important; /* Shrunk slightly to fit the two lines perfectly */
    }
    
    .footer-content a:last-child {
        font-size: 2.1rem !important; 
    }
    
    /* 4. Stop the text from turning purple */
    a.footer-link,
    .filter-btn,
    a.footer-link:visited {
        color: #000000 !important;
    }

    /* 5. Mobile Layout: Stacked Filters and Balanced Fonts */
    .menu-item, 
    .filter-toggle-btn {
        font-size: 3.5rem !important; 
        white-space: nowrap !important; 
    }
    
    /* Forces 'About' to center itself inside the mobile box */
    .menu-links {
        align-items: center !important; 
        text-align: center !important;
    }

    .dropdown-menu {
        width: auto !important; 
        max-width: 92vw !important; 
        padding: 1.5rem !important;
    }

    /* Stacks 'Filter by', 'Size', 'Color', and 'Price' in a perfect center line */
    .sort-section {
        display: flex;
        flex-direction: column !important; /* Forces a vertical stack */
        align-items: center !important; /* Centers everything in the stack */
        gap: 1rem; /* Adds even spacing between all the items */
    }

    .more-btn {
        font-size: 2rem !important; 
    }

    /* 1. STATE: When at the very top (Header is NOT scrolled) */
    .site-header:not(.scrolled) .price-menu {
        left: 50% !important; 
        right: auto !important; 
        transform: translateX(-50%) !important; 
    }

    /* 2. STATE: When scrolling down (Header shrinks and gets the .scrolled class) */
    .site-header.scrolled .price-menu {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }

    
}