/* General Body & Typography */
:root {
    --purple-sparkle: #A855F7; /* A vibrant, sparkling purple */
    --ivory: #F5F5DC;          /* A soft, warm ivory */
    --dark-text: #333;
    --light-text: #F0F0F0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: var(--ivory);
    color: var(--dark-text);
    font-family: var(--font-body), sans-serif;
    line-height: 1.6;
}

a {
    color: var(--purple-sparkle);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9240e9; /* A slightly darker purple on hover */
}

/* Page Layout (unchanged from previous) */
.hero {
    min-height: calc(100vh - 120px); /* Adjust based on header/footer height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(245, 245, 220, 0.8);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--purple-sparkle);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--dark-text);
}

/* NEW: Hamburger Menu Styles */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure it's above other elements */
}

.hamburger {
    width: 90%;
    height: 3px;
    background-color: var(--purple-sparkle);
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* Animation for active state */
.menu-toggle.is-active .hamburger:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger:nth-child(3) {
    transform: rotate(-45deg);
}

/* NEW: Mobile Navigation Container */
.nav-links-container {
    display: flex; /* Display as flex on desktop */
}

/* Responsive Design */
@media (max-width: 767px) {
    .navbar {
        padding: 1rem 1.5rem; /* Adjust padding for smaller screens */
    }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links-container {
        position: fixed;
        top: 0; /* Position below header, or full height if needed */
        right: 0;
        width: 70%; /* Or 100% for full screen menu */
        height: 100vh;
        background-color: var(--ivory);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Start off-screen */
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links-container.is-active {
        transform: translateX(0); /* Slide in */
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        position: absolute;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--purple-sparkle); /* Make links purple in mobile menu */
    }

    /* Adjust main content to not be covered by menu if menu is full height */
    body.menu-open {
        overflow: hidden; /* Prevent scrolling when menu is open */
    }
}


/* All other previous styles (albums, poetry, producers, footer, 404) go here */
/* Hero Section */
.hero-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 8.5vw;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--purple-sparkle);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-family: var(--font-body), sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-text);
    margin-top: 1rem;
}

/* General Content Sections */
.page-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin: 3rem 0;
    color: var(--purple-sparkle);
}

.content-section, .albums-container, .producers-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Albums Page */
.album-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.album-item:hover {
    transform: translateY(-5px);
}

.album-art img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.album-details {
    text-align: center;
}

.album-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 2rem;
    color: var(--dark-text);
}

.album-release {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.links {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
    gap: 20px; /* spacing between columns */
}

.links a {
    margin: 0 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.lyrics {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: left;
}

.lyrics h3 {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Poetry Page */
.poetry-book-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    text-align: center;
}

.book-cover-image {
    max-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.book-details {
    padding: 1rem;
}

.book-details h3 {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.5rem;
    color: var(--purple-sparkle);
}

.buy-link {
    display: inline-block;
    background-color: var(--purple-sparkle);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.buy-link:hover {
    background-color: #9240e9;
}

/* Producers Page */
.producer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    padding: 2rem;
    text-align: justify; /* Justifies all lines except the last one by default */
    text-align-last: center; /* Centers the last line if it's a single line or the last line of a multi-line block */
}

.producer-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--purple-sparkle);
}

.producer-details h2 {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.producer-role {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.producer-bio{
    text-align-last: justify;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

/* 404 Error Page */
.error-container {
    min-height: calc(100vh - 120px); /* Adjust for header/footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.error-code {
    font-family: var(--font-heading), sans-serif;
    font-size: 8rem; /* Large and impactful */
    color: var(--purple-sparkle);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 7px rgba(0,0,0,0.1);
}

.error-message {
    font-family: var(--font-body), sans-serif;
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.error-slogan {
    font-family: var(--font-body), sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

.home-link {
    display: inline-block;
    background-color: var(--purple-sparkle);
    color: var(--light-text);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-link:hover {
    background-color: #9240e9; /* Slightly darker purple */
    transform: translateY(-2px);
}

/* Ensure the main content section for 404 is styled similarly to others for consistency */
main.error-container {
    max-width: none;
}


/* Media Queries for Desktop (Adjustments for larger screens) */
@media (min-width: 768px) {
    .album-item {
        flex-direction: row;
        text-align: left;
    }
    .album-art {
        margin-right: 3rem;
        margin-bottom: 0;
    }
    .album-details {
        text-align: left;
    }
    .poetry-book-info {
        flex-direction: row;
        text-align: left;
    }
    .book-cover-image {
        margin-right: 3rem;
        margin-bottom: 0;
    }
    .producer-card {
        flex-direction: row;
        text-align: left;
        text-align-last: left;
    }
    .producer-photo {
        margin-right: 2rem;
        margin-bottom: 0;
    }

    .producer-bio {
        text-align: justify;
        text-align-last: left;
    }
}


/* NEW: RTL Specific Styles */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .navbar {
    flex-direction: row-reverse; /* Swap brand and menu on RTL */
}

html[dir="rtl"] .nav-links-container {
    left: 0;
    right: auto;
    transform: translateX(-100%); /* Slide in from left for RTL */
}

html[dir="rtl"] .nav-links-container.is-active {
    transform: translateX(0);
}

html[dir="rtl"] .nav-links {
    /* No change needed, flex-direction column remains */
}

html[dir="rtl"] .nav-brand {
    /* No specific change needed, text-align handled by body */
}
@media (min-width: 768px) {
    html[dir="rtl"] .album-item,
    html[dir="rtl"] .poetry-book-info,
    html[dir="rtl"] .producer-card {
        flex-direction: row-reverse; /* Reverse order of image and text */
    }

    html[dir="rtl"] .album-art {
        margin-left: 3rem;
        margin-right: 0;
    }

    html[dir="rtl"] .book-cover-image {
        margin-left: 3rem;
        margin-right: 0;
    }

    html[dir="rtl"] .producer-photo {
        margin-left: 2rem;
        margin-right: 0;
    }
}

html[dir="rtl"] .lyrics,
html[dir="rtl"] .album-details,
html[dir="rtl"] .book-details,
html[dir="rtl"] .producer-details {
    text-align: right; /* Ensure text aligns right */
}

html[dir="rtl"] .error-slogan {
    /* No specific change needed */
    max-width: none; /* Override max-width for full page center alignment */
}

.crossed {
    position: relative;
}

.crossed::after{
    content: "X";
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: burlywood;
    font-size: 1.5em;
}

.track {
    border-bottom: 2px solid rgba(168, 85, 247, 0.35);
    padding: 0.6rem 0;
}

.track:last-child {
    border-bottom: none;
}

/* Radio buttons hidden */
input[type="radio"] {
    display: none;
}

.track label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    /*font-weight: 700;*/
    /*font-size: 1.1rem;*/
    color: #A855F7;
    padding: 0.4rem 0;
    transition: color 0.25s ease;
}

.track label:hover {
    color: #8b2ee6; /* darker violet */
}

/* Arrow icon */
.track .english label::after {
    content: "➤";
    transition: transform 0.35s ease;
    font-size: 1rem;
    color: inherit;
}

.hebrew {
    text-align-last: right;
    text-align: right;
    direction: rtl;
}

/* Arrow icon */
.track .hebrew label::before {
    transform: rotate(180deg);
    content: "➤";
    transition: transform 0.35s ease;
    font-size: 1rem;
    color: inherit;
}

/* Rotate arrow when open */
input[type="radio"]:checked + label::after {
    transform: rotate(90deg);
}

/* Lyrics panel - animated */
.song-lyrics {
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 0.5rem;
    color: #3a2b44;
    background: rgba(168, 85, 247, 0.08);
    border-left: 4px solid #A855F7;
    border-radius: 4px;
    margin-top: 0.5rem;

    /* Smooth animation */
    transition:
            max-height 0.45s ease,
            opacity 0.45s ease,
            padding 0.3s ease;
}

.hebrew .song-lyrics{
    border-right: 4px solid #A855F7;
    border-left: none;
}

input[type="radio"]:checked + label + .song-lyrics {
    max-height: 500px; /* large enough to hold lyrics */
    opacity: 1;
    padding: 0.7rem 0.7rem 1rem;
}

/* ------------------------- */
/* RESPONSIVE STYLES         */
/* ------------------------- */
@media (max-width: 500px) {
    .album {
        padding: 1rem;
        margin: 1rem;
        border-radius: 8px;
    }

    .track label {
        font-size: 1rem;
        padding: 0.3rem 0;
    }

    .track label::after {
        font-size: 0.85rem;
    }

    .song-lyrics {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}

/* Base tape style */
.tape {
    font-family: 'Impact', sans-serif;
    position: absolute;
    display: inline-block;
    padding: 12px 40px;
    background: repeating-linear-gradient(
            45deg,
            #f7d200,
            #f7d200 15px,
            #d7b400 15px,
            #d7b400 30px
    );
    color: black;
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: bold;
    border: 4px solid black;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    transform-origin: center;
}

/* Horizontal tape */
.tape-horizontal {
    top: 30%;
    left: -10%;
    width: 120%;
    text-align: center;
    transform: rotate(1deg);
}

/* Diagonal tape */
.tape-diagonal {
    top: 55%;
    left: -20%;
    width: 150%;
    text-align: center;
    transform: rotate(-25deg);
}


.coming-soon-sign {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ffcc00;
    border: 3px solid #333;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.coming-soon-sign .icon {
    font-size: 1.1rem;
}