/* starlight.css - Unique, simple, and modern styles for the Star Light album page */

/* --- Base Variables (Derived from Star Light Cover Art) --- */
:root {
    --starlight-bg-primary: #0C1525; /* Deeper blue from dark sky */
    --starlight-bg-secondary: #1A253A; /* Slightly lighter for content blocks */
    --starlight-text-light: #E0E8F5; /* Soft white for main text */
    --starlight-text-subtle: #9BB0CB; /* Desaturated blue for meta info */
    --starlight-accent-blue: #5C8CFF; /* Bright blue from planet/star glow */
    --starlight-accent-purple: #8B5CF6; /* Purple for secondary accents/hover */
    --starlight-border-color: #2F3E5A; /* Subtle border for separation */
    --starlight-shadow-color: rgba(0, 0, 0, 0.4); /* Darker shadow for depth */

    /* Spacing variables for consistency and visual hierarchy - TIGHTER FOR CONDENSED VIEW */
    --spacing-xxs: 0.4rem;  /* 6.4px */
    --spacing-xs: 0.8rem;   /* 12.8px */
    --spacing-sm: 1.2rem;   /* 19.2px */
    --spacing-md: 2rem;     /* 32px */
    --spacing-lg: 3rem;     /* 48px */
    --spacing-xl: 4rem;     /* 64px */ /* Main section padding */
}

/* --- General Resets & Body Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif; /* Clean, modern sans-serif */
    line-height: 1.6;
    background-color: var(--starlight-bg-primary);
    color: var(--starlight-text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    background-color: var(--starlight-accent-blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
    mix-blend-mode: screen;
    opacity: 0.8;
}

.custom-cursor.active {
    width: 30px;
    height: 30px;
    background-color: var(--starlight-accent-purple);
    opacity: 1;
}

.container {
    max-width: 1100px; /* Wider container to accommodate two columns */
    margin: 0 auto;
    padding: 0 var(--spacing-sm); /* Consistent horizontal padding */
}

.text-center {
    text-align: center;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Strong, clear headings */
    color: var(--starlight-text-light);
    line-height: 1.2;
}

.album-title {
    font-size: 3.5rem; /* Prominent title */
    font-weight: 700;
    color: var(--starlight-accent-blue);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 12px rgba(92, 140, 255, 0.5); /* Soft glow */
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    color: var(--starlight-text-light);
    margin-bottom: var(--spacing-md); /* Standard spacing below heading */
}

p {
    margin-bottom: var(--spacing-xs);
    color: var(--starlight-text-light);
}

/* --- Links --- */
a {
    color: var(--starlight-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: none;
}

a:hover {
    color: var(--starlight-accent-purple);
    transform: translateY(-2px);
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: none;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.primary-button {
    background-color: var(--starlight-accent-blue);
    color: #FFFFFF;
    border-color: var(--starlight-accent-blue);
    box-shadow: 0 4px 8px var(--starlight-shadow-color);
}

.primary-button:hover {
    background-color: var(--starlight-accent-purple);
    border-color: var(--starlight-accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px var(--starlight-shadow-color);
}

.secondary-button {
    background-color: transparent;
    color: var(--starlight-text-light);
    border-color: var(--starlight-border-color);
}

.secondary-button:hover {
    background-color: var(--starlight-border-color);
    color: var(--starlight-accent-blue);
    transform: translateY(-2px);
}

/* --- Page Structure & Layout --- */
.starlight-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--starlight-bg-primary) 0%, #050A12 100%); /* Subtle vertical gradient */
}

.starlight-section {
    padding: var(--spacing-xl) 0; /* Main section padding, reduced for condensation */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xxs);
    color: var(--starlight-text-subtle);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg); /* Space from main grid */
    border: 1px solid var(--starlight-border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 50px;
    background-color: var(--starlight-bg-secondary);
    transition: all 0.3s ease;
}

.back-button:hover {
    color: var(--starlight-accent-blue);
    border-color: var(--starlight-accent-blue);
    background-color: rgba(92, 140, 255, 0.1);
    transform: translateX(-5px);
}

/* --- Album Main Content Grid (Desktop Two-Column) --- */
.album-main-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on mobile */
    gap: var(--spacing-lg); /* Gap between columns/rows */
    width: 100%;
    max-width: 1000px; /* Max width for the grid content */
    margin: 0 auto; /* Center the grid */
    background-color: var(--starlight-bg-secondary); /* Background for the whole content block */
    border-radius: 12px;
    padding: var(--spacing-lg); /* Padding for the entire grid container */
    box-shadow: 0 8px 25px var(--starlight-shadow-color);
    border: 1px solid var(--starlight-border-color);
}

/* Left Column: Album Info */
.album-info-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content within its column */
    text-align: center; /* Center text within its column */
    padding-right: var(--spacing-sm); /* Small padding for separation on desktop */
}

.album-cover {
    width: 100%;
    max-width: 280px; /* Optimal size for left column */
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--starlight-shadow-color);
    transition: transform 0.3s ease;
    border: 2px solid var(--starlight-accent-blue);
    margin-bottom: var(--spacing-md); /* Spacing below cover */
}

.album-cover:hover {
    transform: scale(1.02);
}

.album-meta {
    font-size: 0.95rem; /* Slightly smaller for compactness */
    color: var(--starlight-text-subtle);
    margin-bottom: var(--spacing-xxs);
}

.album-description {
    font-size: 0.98rem; /* Slightly smaller for compactness */
    line-height: 1.5; /* Tighter line height for condensation */
    margin-top: var(--spacing-sm); /* Reduced margin */
    margin-bottom: var(--spacing-md); /* Reduced margin */
    max-width: 100%; /* Fill column width */
}

/* Right Column: Embedded Players & Share Button */
.players-share-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: var(--spacing-sm); /* Small padding for separation on desktop */
}

.embedded-players-section {
    width: 100%;
    margin-bottom: var(--spacing-md); /* Space between players section and share button */
}

.player-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile by default */
    gap: var(--spacing-md); /* Space between players */
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for responsive video */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.audiomack-player {
    padding-bottom: 0;
    height: 250px; /* Adjusted height for Audiomack */
}
.audiomack-player iframe {
    height: 100%;
}

/* Share Button */
.share-button {
    margin-top: var(--spacing-sm); /* Reduced margin from previous */
    width: auto; /* Allow button to size naturally */
}

/* Related Content Section (if used) */
.related-content-section {
    width: 100%;
    max-width: 800px; /* Consistent with player section */
    background-color: var(--starlight-bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-md); /* Reduced padding */
    box-shadow: 0 5px 15px var(--starlight-shadow-color);
    border: 1px solid var(--starlight-border-color);
    text-align: center;
    margin-top: var(--spacing-lg); /* Space from main grid */
    margin-bottom: var(--spacing-xl); /* Space before footer */
}

.related-card {
    background-color: var(--starlight-bg-primary);
    border-radius: 8px;
    padding: var(--spacing-md);
    border: 1px solid var(--starlight-border-color);
    text-align: center;
    margin-top: var(--spacing-sm);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.related-card p {
    font-size: 0.9rem;
    color: var(--starlight-text-light);
    margin-bottom: var(--spacing-sm);
}

.related-card strong {
    color: var(--starlight-accent-blue);
}

/* --- Footer --- */
.starlight-footer {
    background-color: var(--starlight-bg-primary);
    color: var(--starlight-text-subtle);
    padding: var(--spacing-md) 0; /* Reduced padding */
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid var(--starlight-border-color);
}

.footer-note {
    margin-top: var(--spacing-xs);
    font-size: 0.75em;
    color: rgba(224, 232, 240, 0.5);
}

/* --- Responsive Adjustments --- */

/* Desktop / Larger Tablets */
@media (min-width: 992px) {
    .album-main-grid {
        grid-template-columns: 1fr 1.5fr; /* Left column (info) is 1 part, right column (players) is 1.5 parts */
        gap: var(--spacing-lg); /* Space between columns */
        padding: var(--spacing-xl); /* More padding for desktop */
    }
    .album-info-column {
        align-items: flex-start; /* Align text left in left column */
        text-align: left; /* Align text left in left column */
        padding-right: var(--spacing-md); /* More separation */
    }
    .album-cover {
        margin-bottom: var(--spacing-md); /* Keep some margin */
    }
    .album-title {
        font-size: 3rem; /* Slightly smaller title for two-column flow */
        margin-top: 0; /* Align title with cover top */
    }
    .album-meta {
        font-size: 0.9rem; /* Smaller meta for density */
    }
    .album-description {
        font-size: 0.95rem; /* Smaller description for density */
        line-height: 1.5;
    }

    .players-share-column {
        align-items: center; /* Center players and button in right column */
        padding-left: var(--spacing-md); /* More separation */
    }
    .player-grid {
        grid-template-columns: 1fr; /* Stack players vertically within the right column */
        gap: var(--spacing-md); /* Space between players */
    }
    .player-wrapper {
        max-width: 450px; /* Max width for individual players in the right column */
    }
    .audiomack-player {
        height: 250px; /* Fixed height for Audiomack */
    }
    .share-button {
        margin-top: var(--spacing-md); /* Space below players */
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px; /* Adjust container width for tablets */
    }
    .album-title { font-size: 3rem; }
    .section-heading { font-size: 1.8rem; }
    .album-cover { max-width: 250px; }
    .album-main-grid {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    .album-description {
        font-size: 0.9rem;
    }
    .audiomack-player {
        height: 220px; /* Slightly smaller for tablets */
    }
}


/* Mobile devices (767px and below) */
@media (max-width: 767px) {
    body {
        cursor: auto; /* Hide custom cursor on mobile */
    }
    .custom-cursor {
        display: none;
    }

    .starlight-section {
        padding: var(--spacing-lg) 0; /* Adjusted padding for mobile */
    }
    .back-button {
        margin-bottom: var(--spacing-md); /* Reduced margin for mobile */
        font-size: 0.85rem;
        padding: var(--spacing-xxs) var(--spacing-xs);
    }

    .album-main-grid {
        grid-template-columns: 1fr; /* Stack all content vertically */
        padding: var(--spacing-md); /* Reduced padding for mobile */
        gap: var(--spacing-md); /* Space between stacked sections */
    }

    .album-info-column, .players-share-column {
        padding: 0; /* Remove side padding for full width on mobile */
        align-items: center; /* Center content when stacked */
        text-align: center; /* Center text when stacked */
    }

    .album-cover {
        max-width: 220px; /* Smaller cover for mobile */
        margin-bottom: var(--spacing-md);
    }

    .album-title { font-size: 2.5rem; margin-bottom: var(--spacing-sm); }
    .album-meta { font-size: 0.9rem; }
    .album-description { font-size: 0.9rem; line-height: 1.5; margin-top: var(--spacing-sm); margin-bottom: var(--spacing-md); }

    .section-heading { font-size: 1.6rem; margin-bottom: var(--spacing-md); }

    .embedded-players-section {
        margin-bottom: var(--spacing-md); /* Space between players section and share button */
    }

    .player-grid {
        gap: var(--spacing-sm); /* Smaller gap between players on mobile */
    }
    .audiomack-player {
        height: 200px; /* Further reduced height for mobile Audiomack */
    }

    .share-button {
        margin-top: var(--spacing-sm); /* Space above share button */
    }

    .starlight-footer {
        padding: var(--spacing-md) 0; /* Reduced footer padding */
        font-size: 0.75rem;
    }
}

/* Very small mobile devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs); /* Tighter horizontal padding */
    }
    .album-title { font-size: 2rem; }
    .section-heading { font-size: 1.4rem; }
    .album-cover { max-width: 180px; }
    .album-main-grid {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    .button { padding: 0.6rem 1.5rem; font-size: 0.85rem; }
    .audiomack-player {
        height: 180px; /* Even smaller for very small mobile */
    }
}
