/* ==========================================================================
   AMIGAS MASAJISTAS - Main Stylesheet
   Consolidated from index.css + main.css
   ========================================================================== */

/* ==========================================================================
   1. FONTS
   ========================================================================== */

@font-face {
    font-family: 'MeaCulpa';
    src: url('../fonts/MeaCulpa-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WindSong';
    src: url('../fonts/WindSong-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. CSS VARIABLES
   ========================================================================== */

:root {
    --padding: 1.5rem;
    --gutter: 0.25rem;
    /* Colors */
    --color-black: #000;
    --color-white: #fff;
    --color-grey: #a0a0a0;
    --color-light: #1e1e1e;
    --color-accent: #ff00de;
    --color-neon-pink: #ff00de;
    --color-text: #ffffff;
    --color-text-grey: #a0a0a0;
    --color-background: #000000;

    /* Code Colors */
    --color-code-light-grey: #333;
    --color-code-comment: #666;
    --color-code-white: #ccc;
    --color-code-red: #d16464;
    --color-code-orange: #de935f;
    --color-code-yellow: #f0c674;
    --color-code-green: #a7bd68;
    --color-code-aqua: #8abeb7;
    --color-code-blue: #7e9abf;
    --color-code-purple: #b294bb;

    /* Fonts */
    --font-family-serif: 'Playfair Display', serif;
    --font-family-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    --font-family-decorative: 'MeaCulpa', cursive;
    --font-family-logo: 'WindSong', cursive;
}

/* ==========================================================================
   3. RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-family-sans);
    color: var(--color-text);
    background: var(--color-background);
}

html,
body {
    min-height: 100vh;
}

body {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    background: var(--color-background);
    color: var(--color-text);
}

img {
    width: 100%;
}

li {
    list-style: none;
}

a {
    color: currentColor;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.5),
        0 0 8px var(--color-neon-pink);
}

button {
    font: inherit;
    background: none;
    border: 0;
    color: currentColor;
    cursor: pointer;
}

strong,
b {
    font-weight: 600;
}

small {
    font-size: inherit;
    color: var(--color-text-grey);
}

hr {
    border: 0;
    background: currentColor;
    height: 2px;
    width: 1.5rem;
    margin: 3rem auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* ==========================================================================
   4. LAYOUT & CONTAINERS
   ========================================================================== */

.header,
.footer,
.section,
.main {
    padding-left: 5%;
    padding-right: 5%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Grid System */
.grid {
    --columns: 12;
    display: grid;
    grid-gap: var(--gutter);
    grid-template-columns: 1fr;
}

.grid>.column {
    margin-bottom: var(--gutter);
}

.autogrid {
    --gutter: 3rem;
    --min: 10rem;
    display: grid;
    grid-gap: var(--gutter);
    grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
    grid-auto-flow: dense;
}

/* Utility Classes */
.align-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-light);
    border-color: rgba(255, 255, 255, 0.05);
    outline-color: rgba(255, 255, 255, 0.05);
}

.color-grey {
    color: var(--color-text-grey);
    font-size: 1.1rem;
    font-family: var(--font-family-sans);
    font-weight: 300;
    margin-top: 0.5rem;
    display: block;
}

/* Margins */
.margin-s {
    margin-bottom: .75rem;
}

.margin-m {
    margin-bottom: 1.5rem;
}

.margin-l {
    margin-bottom: 3rem;
}

.margin-xl {
    margin-bottom: 4.5rem;
}

.margin-xxl {
    margin-bottom: 6rem;
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-right: -1rem;
    margin-left: -1rem;
    margin-bottom: 2rem;
}

/* Logo with Neon Effect */
.logo {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-family-logo);
    font-weight: 500;
    font-size: 2.1rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--color-white);
    cursor: pointer;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--color-neon-pink),
        0 0 40px var(--color-neon-pink),
        0 0 60px var(--color-neon-pink);
    animation: neon-pulse 2s ease-in-out infinite;
}

.logo svg {
    height: 2.2rem;
    width: auto;
    display: block;
    filter:
        drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px var(--color-neon-pink)) drop-shadow(0 0 12px var(--color-neon-pink)) drop-shadow(0 0 20px var(--color-neon-pink));
    animation: svg-neon-pulse 2s ease-in-out infinite;
}

/* Menu */
.menu {
    display: flex;
    align-items: center;
}

.menu a {
    padding: 1rem;
    display: block;
}

.menu a[aria-current] {
    text-decoration: none;
    color: var(--color-accent);
}

/* Social Icons */
.social {
    display: flex;
    padding: 0 .5rem;
    align-items: flex-end;
    padding-bottom: 5px;
}

.social a {
    padding: 1rem .5rem;
}

/* ==========================================================================
   6. NEON ANIMATIONS
   ========================================================================== */

@keyframes neon-pulse {

    0%,
    100% {
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px var(--color-neon-pink),
            0 0 40px var(--color-neon-pink),
            0 0 60px var(--color-neon-pink);
    }

    50% {
        text-shadow:
            0 0 3px #fff,
            0 0 8px #fff,
            0 0 15px var(--color-neon-pink),
            0 0 30px var(--color-neon-pink),
            0 0 45px var(--color-neon-pink);
    }
}

@keyframes svg-neon-pulse {

    0%,
    100% {
        filter:
            drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px var(--color-neon-pink)) drop-shadow(0 0 12px var(--color-neon-pink)) drop-shadow(0 0 20px var(--color-neon-pink));
    }

    50% {
        filter:
            drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px var(--color-neon-pink)) drop-shadow(0 0 8px var(--color-neon-pink)) drop-shadow(0 0 14px var(--color-neon-pink));
    }
}

/* ==========================================================================
   7. TYPOGRAPHY
   ========================================================================== */

.text {
    line-height: 1.5em;
}

.text a {
    text-decoration: underline;
}

.text :first-child {
    margin-top: 0;
}

.text :last-child {
    margin-bottom: 0;
}

.text p,
.text ul,
.text ol {
    margin-bottom: 1.5rem;
}

.text ul,
.text ol {
    margin-left: 1rem;
}

.text ul p,
.text ol p {
    margin-bottom: 0;
}

.text ul>li {
    list-style: disc;
}

.text ol>li {
    list-style: decimal;
}

.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
    margin-bottom: 0;
}

.text h1,
.h1,
.intro {
    font-family: var(--font-family-serif);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.2em;
    font-weight: 700;
}

.text h2,
.h2 {
    font-family: var(--font-family-serif);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2em;
}

.text h3,
.h3 {
    font-weight: 600;
}

/* Masajista name on profile page */
.h1 h1 {
    font-family: var(--font-family-decorative);
    font-weight: 400;
    font-size: 3rem;
}

.intro {
    max-width: 40rem;
}

.intro *:not(:last-child) {
    margin-bottom: 1em;
}

/* ==========================================================================
   8. CODE BLOCKS
   ========================================================================== */

.text .codeblock {
    display: grid;
}

.text code {
    font-family: var(--font-family-mono);
    font-size: 1em;
    background: var(--color-light);
    padding: 0 .5rem;
    display: inline-block;
    color: var(--color-black);
}

.text pre {
    margin: 3rem 0;
    background: var(--color-black);
    color: var(--color-white);
    padding: 1.5rem;
    overflow-x: scroll;
    overflow-y: hidden;
    line-height: 1.5rem;
}

.text pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.text hr {
    margin: 6rem 0;
}

.text dt {
    font-weight: 600;
}

.text blockquote {
    font-size: 1.25rem;
    line-height: 1.325em;
    border-left: 2px solid var(--color-black);
    padding-left: 1rem;
    margin: 3rem 0;
    max-width: 25rem;
}

.text blockquote footer {
    font-size: .875rem;
    font-style: italic;
}

.text figure {
    margin: 3rem 0;
}

.text figcaption {
    padding-top: .75rem;
    color: var(--color-text-grey);
}

.text figure ul {
    line-height: 0;
    display: grid;
    gap: 1.5rem;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.text figure ul li {
    list-style: none;
}

/* ==========================================================================
   9. COMPONENTS - Buttons & Boxes
   ========================================================================== */

.cta {
    background: var(--color-accent);
    color: var(--color-black);
    display: inline-flex;
    justify-content: center;
    padding: .75rem 1.5rem;
    border: 4px solid var(--color-accent);
    outline: 2px solid var(--color-black);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 222, 0.3);
}

.box {
    background: var(--color-light);
    padding: 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.05);
    outline: 2px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   10. MEDIA - Images & Videos
   ========================================================================== */

.video,
.img {
    position: relative;
    display: block;
    --w: 1;
    --h: 1;
    padding-bottom: calc(100% / var(--w) * var(--h));
    background: var(--color-black);
}

.img img,
.video iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.img[data-contain] img {
    object-fit: contain;
}

.img-caption,
.video-caption {
    padding-top: .75rem;
    line-height: 1.5em;
}

.map {
    --w: 2;
    --h: 1;
    padding-bottom: calc(100% / var(--w) * var(--h));
    position: relative;
    overflow: hidden;
    background: var(--color-black);
}

.map iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   11. VIDEO INTRO OVERLAY
   ========================================================================== */

#video-intro-overlay {
    display: flex;
    position: fixed;
    z-index: 1000000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

#video-intro-overlay.video-intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* ==========================================================================
   12. HOME GRID
   ========================================================================== */

.home-grid {
    display: grid;
    list-style: none;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-flow: dense;
    column-gap: var(--gutter);
    row-gap: var(--gutter);
    margin: 0 5%;
    padding: 0;
    line-height: 0;
}

.home-grid li {
    position: relative;
    --cols: 1;
    --rows: 1;
    overflow: hidden;
    background: #000;
    line-height: 0;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.home-grid li:first-child {
    --cols: 2;
    --rows: 2;
}

.home-grid li:nth-child(5) {
    --cols: 2;
}

.home-grid li:nth-child(6) {
    --rows: 2;
}

.home-grid li:nth-child(7) {
    --cols: 2;
}

.home-grid li.is-hidden {
    display: none;
}

.home-grid a {
    display: block;
    height: 10rem;
}

.home-grid img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .3s;
}

.home-grid figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    color: #fff;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    line-height: 1;
    text-align: center;
    background: rgba(0, 0, 0, .5);
}

/* Masajista Name with Neon Effect */
.example-name {
    font-family: var(--font-family-decorative);
    font-weight: 400;
    font-size: 2rem;
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--color-neon-pink),
        0 0 40px var(--color-neon-pink),
        0 0 60px var(--color-neon-pink);
    animation: neon-pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   13. MASAJISTAS GRID
   ========================================================================== */

.masajistas-grid {
    display: grid;
    list-style: none;
    grid-gap: var(--gutter);
    line-height: 0;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    margin: 0 2px;
    padding: 0;
}

.masajistas-grid li {
    position: relative;
    overflow: hidden;
    background: #000;
    line-height: 0;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.masajistas-grid li.is-hidden {
    display: none;
}

.masajistas-grid li a {
    display: block;
    position: relative;
    padding-bottom: 125%;
    /* 4:5 aspect ratio */
}

.masajistas-grid img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .3s;
}

.masajistas-grid figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    color: #fff;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    line-height: 1;
    text-align: center;
    background: rgba(0, 0, 0, .5);
}

/* ==========================================================================
   14. SCHEDULE OVERLAY (Availability Pills)
   ========================================================================== */

.schedule-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    left: auto;
    top: auto;
    transform: none;
    z-index: 200;
    background: rgba(34, 197, 94, 0.98);
    color: #fff;
    padding: 2px 4px;
    font-size: 0.7rem;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    height: auto !important;
    width: auto !important;
    display: block;
    font-family: var(--font-family-sans);
    line-height: 1 !important;
}

/* Static modifier for Profile Page */
/* Static modifier for Profile Page */
.schedule-overlay.static {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-block !important;
    margin-top: 2px !important;
    margin-bottom: 5px !important;
    z-index: 10 !important;
}

.schedule-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 1px !important;
    line-height: normal !important;
}

.schedule-label {
    font-weight: 400;
    white-space: nowrap !important;
}

.schedule-hours {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.wa-hour-link {
    display: inline-block !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    padding: 0 2px !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1 !important;
    font-size: inherit !important;
}

.wa-hour-link:hover {
    color: #000 !important;
    background: transparent !important;
    text-shadow: none !important;
}

.comma {
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* ==========================================================================
   15. FILTER BAR & SWITCH
   ========================================================================== */

.filter-bar {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 2.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.switch-label {
    font-family: var(--font-family-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.switch-container input {
    display: none;
}

.switch-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #333;
    border-radius: 34px;
    transition: .4s;
    cursor: pointer;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked+.switch-slider {
    background-color: var(--color-accent);
}

input:checked+.switch-slider:before {
    transform: translateX(20px);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.footer {
    padding: 9rem 0 6rem;
    line-height: 1.6em;
    border-top: 1px solid var(--color-light);
}

.footer:before {
    content: "";
    display: block;
    width: 3rem;
    height: 2px;
    background: var(--color-accent);
    margin-bottom: 2rem;
}

.footer h2 {
    font-weight: 600;
    margin-bottom: .75rem;
}

.footer ul,
.footer p {
    color: var(--color-text-grey);
}

.footer p {
    max-width: 15rem;
}

.footer a:hover {
    color: var(--color-text);
}

/* ==========================================================================
   17. PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    padding-top: 6rem;
}

.pagination>span {
    color: var(--color-text-grey);
}

.pagination>* {
    padding: .5rem;
    width: 3rem;
    text-align: center;
    border: 2px solid currentColor;
    margin-right: 1.5rem;
}

.pagination>a:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* ==========================================================================
   18. NOTE EXCERPTS
   ========================================================================== */

.note-excerpt {
    line-height: 1.5em;
}

.note-excerpt header {
    margin-bottom: 1.5rem;
}

.note-excerpt figure {
    margin-bottom: .5rem;
}

.note-excerpt-title {
    font-weight: 600;
}

.note-excerpt-date {
    color: var(--color-text-grey);
}

/* ==========================================================================
   19. ALBUM GALLERY
   ========================================================================== */

/* Album-specific styles can go here */

/* ==========================================================================
   20. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet and up */
@media screen and (min-width: 45em) {
    .home-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-grid li {
        grid-column-start: span var(--cols);
        grid-row-start: span var(--rows);
    }

    .home-grid a {
        padding-bottom: 52.65%;
        height: auto;
    }
}

/* Desktop Grid */
@media screen and (min-width: 60rem) {
    :root {
        --padding: 3rem;
    }

    .grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .grid>.column {
        grid-column: span var(--columns);
    }
}

/* Desktop: Home Grid Fix */
@media screen and (min-width: 601px) {
    .home-grid li>a {
        height: 100%;
        padding-bottom: 0;
        min-height: 14rem;
    }
}

/* Masajistas Grid - Tablet */
@media screen and (min-width: 600px) and (max-width: 899px) {
    .masajistas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Masajistas Grid - Desktop */
@media screen and (min-width: 900px) {
    .masajistas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    .logo {
        font-size: 1.6rem;
    }

    .logo svg {
        height: 1.8rem;
    }

    .home-grid li>a {
        height: 14rem;
    }

    .schedule-overlay {
        font-size: 0.75rem;
        padding: 3px 6px;
        bottom: 8px;
        right: 8px;
        line-height: 1.2 !important;
    }

    .schedule-overlay.static {
        margin-top: 5px;
        padding: 6px 12px;
    }
}