/* =============================================================
   TABLE OF CONTENTS
   1. Font Faces
   2. Reset & Base
   3. Cursors
   4. Background Overlay (eyes pattern)
   5. Pillars
   6. Header
   7. Decorative Elements (border, dentelle, moon, cloud)
   8. Page Layout
   9. Sidebar
   10. Main Content / Hero / Buttons
   11. Card Grids & Content Sections
   12. Profile Image
   13. Hearts Section
   14. Music Section
   15. Footer
   16. Page Title
   17. Journal
   18. Blinkies
   19. Welcome Popup
   20. Disc Spin Animation
   21. Slideshow
   22. Responsive Media Queries
   ============================================================= */


/* =============================================================
   1. FONT FACES
   ============================================================= */
@font-face {
    font-family: 'Rachia';
    src: url('Rachia.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'LunareMagic';
    src: url('LunareMagic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* =============================================================
   2. RESET & BASE
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    size: 90%;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

body {
    min-width: 1024px;
    min-height: 100vh;
    margin-top: 35px;
    font-family: 'Rachia', sans-serif;
    line-height: 1.6;
    color: #F5EEF2;
    background-color: #0F0810;
    color-scheme: dark;
}


/* =============================================================
   3. CURSORS
   ============================================================= */
body {
    cursor: url('cursor1.png') 0 0, auto; /* hotspot x y */
}

button:hover,
a:hover,
[role="button"]:hover {
    cursor: url('cursor2.png') 0 0, auto; /* hotspot x y */
}


/* =============================================================
   4. BACKGROUND OVERLAY (eyes pattern)
   ============================================================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('eyes.png') repeat;
    background-size: 300px;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}


/* =============================================================
   5. PILLARS
   ============================================================= */
.pillar {
    position: fixed;
    top: var(--pillar-top, 0px);
    bottom: 0;
    width: 80px;
    z-index: 0;
    pointer-events: none;
    background: url('pillar.png') repeat-y center var(--pillar-offset, 0px);
    background-size: 80px auto;
    will-change: background-position;
}

.pillar-left {
    left: 0;
}

.pillar-right {
    right: 0;
}


/* =============================================================
   6. HEADER
   ============================================================= */
header.site-header {
    --pillar-top: calc(var(--sticky-offset, 0) + 35px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(203, 100, 141, 0.52);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.site-header::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('eyes.png') repeat;
    background-size: 300px;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.brand-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.site-logo {
    font-size: 1.5rem;
    letter-spacing: 0.06em;
}

.site-tag {
    color: #E8A5B9;
    font-size: 0.9rem;
}

.site-nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.site-nav a {
    opacity: 0.82;
    transition: opacity 0.2s, transform 0.2s;
}

.site-nav a:hover {
    filter: drop-shadow(0 0 14px rgba(236, 59, 131, 0.7));
    opacity: 1;
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.icon-button,
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid #9B7084;
    background: rgba(255, 255, 255, 0.08);
    color: #F5EEF2;
    transition: transform 0.2s, background 0.2s;
}

.icon-button:hover,
.social-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}


/* =============================================================
   7. DECORATIVE ELEMENTS (border, dentelle, moon, cloud)
   ============================================================= */
.decor {
    width: 100%;
    height: 50px;
    background: url('border.png') repeat-x center;
    background-size: auto 100%;
}

.dentelle-motion {
    width: 100%;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.dentelle-track {
    position: absolute;
    inset: 0;
    width: 200%;
    background: url('dantel.png') repeat-x 0 0, url('dantel.png') repeat-x 100% 0;
    background-size: auto 100%, auto 100%;
    animation: dentelleScroll 50s linear infinite;
}

@keyframes dentelleScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.moon-container {
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    filter: drop-shadow(0 0 14px #e8a5b97e);
}

#moon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
    transform-origin: center;
}

.page-cloud {
    position: absolute;
    top: -70%;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.page-cloud img {
    display: block;
    width: 110%;
    max-width: none;
    margin-left: -5%;
    will-change: transform;
}


/* =============================================================
   8. PAGE LAYOUT
   ============================================================= */
.page-grid {
    zoom : 90%;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 2rem;
    padding: 2rem 2rem 2rem calc(2rem + 80px);
    margin-right: 80px;
}

.big-space {
    padding: 34px;
}


/* =============================================================
   9. SIDEBAR
   ============================================================= */
.sidebar-left {;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
}

.sidebar-right {;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
}

.sidebar-card {
    position: relative;
    background: rgba(45, 27, 46, 0.6);
    border: 1px solid rgba(212, 82, 126, 0.2);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.sidebar-label {
    display: inline-block;
    margin-bottom: 1rem;
    color: #E8A5B9;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
}

.sidebar-card p,
.sidebar-card li {
    margin: 0;
    color: #8A7D85;
}

.sidebar-card ul {
    margin: 20px;
    padding: 10px;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}


/* =============================================================
   10. MAIN CONTENT / HERO / BUTTONS
   ============================================================= */
.main-content {
    zoom: 90%;
    border: 40px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.hero-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-card,
.section-card,
.music-section {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
}

.container-lace {
    border: 40px solid transparent;
    border-image: url('lace-purple.png') 84 round;
}

.section-card {
    padding: 1.6rem 2rem;
}

.hero-card h1 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    margin: 0;
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 1.05;
}

.hero-card p {
    max-width: 58ch;
    margin: 0;
    color: #8A7D85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.6rem;
    border-radius: 18px;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.primary-button {
    background: linear-gradient(135deg, #871554d5, #e271a4ab);
    color: #fff;
    border: 1px solid transparent;
}

.ghost-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #F5EEF2;
}

.primary-button:hover,
.ghost-button:hover {
    filter: drop-shadow(0 0 14px rgba(236, 59, 131, 0.7));
    transform: translateY(-2px);
}

.eyebrow {
    display: inline-flex;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #E8A5B9;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =============================================================
   11. CARD GRIDS & CONTENT SECTIONS
   ============================================================= */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
    font-size: 2rem;
}

.section-header p {
    margin: 0;
    max-width: 65ch;
    color: #8A7D85;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 40px;
    margin: 0 auto;
    width: min(100%, 1040px);
}

.journal-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center;
    justify-items: center;
}

.content-section,
.journal-card,
.mini-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 2.5rem;
    margin: 0.75rem;
    transition: transform 0.2s, border-color 0.2s;
    max-width: 90%;
    min-width: 0;
    justify-content : center;
}

.content-section {

    row-gap: 0.25rem;
    align-items: start;
}

.content-section:hover,
.journal-card:hover,
.mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
}

.content-section h3,
.content-section p,
.journal-card h3,
.journal-card p,
.mini-card h3,
.mini-card p {
    margin: 0;
    color: #8A7D85;
}

.content-section-icon,
.playlist-card-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
}

.journal-tag {
    display: inline-flex;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #E8A5B9;
    margin-bottom: 0.75rem;
}


/* =============================================================
   12. PROFILE IMAGE
   ============================================================= */
.profile-image {
    width: 100%;
    height: auto;
    padding: 0;
}


/* =============================================================
   13. HEARTS SECTION
   ============================================================= */
.heart-section {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heart-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 0.9rem;
    padding: 0.5rem 0;
    width: 100%;
}

.heart {
    height: 44px;
    max-width: 44px;
    object-fit: contain;
    transition: transform 0.25s, filter 0.25s;
}

.heart:hover {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 0 14px rgba(236, 59, 131, 0.7));
}

.section-note {
    margin: 0;
    color: #8A7D85;
    max-width: 70ch;
    text-align: center;
}


/* =============================================================
   14. MUSIC SECTION
   ============================================================= */
.music-section {
    max-width: 90%;
    margin: 40px auto;
    padding: 24px;
    background: rgba(155, 89, 182, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    color: #f5eef8;
}

.music-header h2 {
    margin: 0 0 20px;
    font-family: 'Rachia', sans-serif;
    color: #fff;
    text-align: center;
}

.music-content {
    display: flex;
    gap: 24px;
    align-items: stretch;
    flex-wrap: wrap;
}

.music-player,
.music-desc {
    flex: 1 1 320px;
    min-width: 280px;
}

.music-player {
    min-height: 250px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.music-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.music-desc h3 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    color: #fff;
}

.music-desc p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.51);
}


/* =============================================================
   15. FOOTER
   ============================================================= */
.site-footer {
    width: 100%;
    grid-column: 1 / -1;
    position: relative;
    z-index: 2;
    margin: 2rem 0 0;
    padding: 2rem;
    background: #783455f9;
    border-top: 1px solid transparent;
}

.footer-inner {
    display: grid;
     grid-column: 1 / -1;
    gap: 1.5rem;
    align-items: start;
}

.footer-inner h3 {
    margin-top: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #F5EEF2;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    color: #8A7D85;
}


/* =============================================================
   16. PAGE TITLE
   ============================================================= */
.page-title-wrap {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
}

.page-top-title {
    position: relative;
    z-index: 3;
    font-family: 'LunareMagic', 'Rachia', sans-serif;
    font-size: clamp(48px, 10vw, 140px);
    line-height: 1;
    text-align: center;
    margin: 8px 0 12px;
    display: block;
    width: 100%;
    -webkit-text-stroke: 1px #7A1428;
    filter: drop-shadow(0 0 14px rgba(66, 3, 28, 0.7));
    background: url('e.gif') repeat center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#welcome:hover {
    filter: drop-shadow(0 0 14px rgba(236, 59, 131, 0.7));
}


/* =============================================================
   17. JOURNAL
   ============================================================= */
.journal-entry {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.journal-dtt {
    display: flex;
    justify-content: center;
}

.journal-page-container {
    background-image: url('old-paper.png');
    background-size: 100% 100%;
    padding: 50px 52px;
    box-sizing: border-box;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.473));
    border-radius: 2px;
}

.journal-page {
    color: #1a1108;
    font-size: 1.2rem;
    background: transparent;
    font-family: 'Times New Roman';
}


/* =============================================================
   18. BLINKIES
   ============================================================= */
.blinkie {
    margin: 1px;
    width: 100%;
}

.blinkies-grid {
    display: grid;
    place-items: center;
    justify-content: center;
}


/* =============================================================
   19. WELCOME POPUP
   ============================================================= */
.welcome-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.welcome-popup.visible {
    opacity: 1;
}


/* =============================================================
   20. DISC SPIN ANIMATION
   ============================================================= */
.disc-img {
    animation: spin 4s linear infinite;
}

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


/* =============================================================
   21. SLIDESHOW
   This section styles the "category slideshow" component only.
   ============================================================= */
.slideshow-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Top box: category title + arrows */
.category-header {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 12px 20px;
}

.category-title {
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
    flex: 1;
}

.category-arrow {
    background: none;
    border-radius: 6px;
    font-size: 1.2rem;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.category-arrow:hover {
    background: #eee;
}

/* Content box: holds all categories, only one shown at a time */
.slide-box {
    border: 2px solid #222;
    border-radius: 8px;
    padding: 20px;
    min-height: 320px;
}

/* Each .category holds all slides for that category;
   only the active one is displayed */
.category {
    display: none;
}

.category.active-category {
    display: block;
}

/* Each .slide is one item inside a category
   (playlist, artist, song, etc.); only the active one is shown */
.slide {
    display: none;
}

.slide.active-slide {
    display: block;
}

/* Placeholder card used for artists / songs / story samples */
.placeholder-card {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.placeholder-art {
    width: 160px;
    height: 160px;
    background: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    flex-shrink: 0;
}

.placeholder-text h3 {
    margin: 0 0 8px 0;
}

/* Bottom arrows: move between slides inside the active category */
.item-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.item-arrow {
    background: none;
    border-radius: 6px;
    font-size: 1.2rem;
    padding: 6px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.item-arrow:hover {
    background: #eee;
}

/* Fade/disable bottom arrows when a category has only one slide */
.item-arrow[disabled] {
    opacity: 0.3;
    cursor: default;
}

/* Small counter text like "2 / 3" under the arrows */
.slide-counter {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    margin-top: 8px;
}


/* =============================================================
   22. RESPONSIVE MEDIA QUERIES
   ============================================================= */
@media (max-width: 1080px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav,
    .header-actions {
        justify-content: center;
    }

    .section-header,
    .footer-inner {
        display: flex;
        flex-direction: column;
    }

    .card-grid,
    .journal-grid,
    .inline-cards {
        grid-template-columns: 1fr;
    }

    .heart-box {
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem;
    }

    .page-top-title {
        font-size: clamp(36px, 12vw, 80px);
        margin-top: 4px;
    }
}

@media (max-width: 500px) {
    .site-header,
    .hero-card {
        padding: 1rem;
    }

    .sidebar-card,
    .section-card,
    .journal-card,
    .mini-card {
        padding: 1.2rem;
    }

    .heart-box {
        justify-content: space-between;
        gap: 0.6rem;
        padding: 0.85rem;
    }

    .heart-box .heart:nth-child(n+5) {
        display: none;
    }
}
