/* 
   -----------------------------
   --- E-INK DISPLAY STYLES  ---
   -----------------------------
*/

:root {
    /* --- Main Colors - Change these to customize your theme! --- */
    --background-color: #d1b3b3; /* Dusty pink from the image */
    --foreground-color: #1a1a1a; /* A very dark, near-black gray */
    --border-width: 3px;
}

/* --- Basic Setup & Font --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--background-color);
    font-family: 'Space Mono', monospace;
    color: var(--foreground-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative; /* Needed for the noise overlay */
}

/* --- E-Ink Screen Grain/Noise Effect --- */
body::after {
    content: "";
    position: fixed; /* Use fixed to cover the whole viewport */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1; /* Adjust for more or less grain */
    pointer-events: none; /* Allows you to click through the overlay */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNzUiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjam5vaXNlKSIvPjwvc3ZnPg==');
}

/* --- Main Display Grid Layout --- */
.e-ink-display {
    width: 100%;
    max-width: 800px; /* Adjust max size as needed */
    aspect-ratio: 1 / 1; /* Make it a square */
    background-color: var(--background-color);
    border: var(--border-width) solid var(--foreground-color);
    padding: 10px; /* Inner padding for the grid container */
    
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* 3 columns: first one is wider */
    grid-template-rows: 1fr 2fr 1.2fr 0.8fr; /* 4 rows with different heights */
    gap: 10px; /* The space between the cells */
    border-radius: 5px; /* Subtle rounded corners */
}

/* --- General Cell Styling --- */
.cell {
    border: var(--border-width) solid var(--foreground-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- Specific Cell Layouts (using grid-column/row spans) --- */
.info-box {
    grid-column: 1 / 2;
    align-items: flex-start;
    justify-content: flex-start;
}

.artist-name {
    grid-column: 1 / -1; /* Span all 3 columns */
    text-align: center;
    line-height: 0.9;
    font-size: clamp(2rem, 12vw, 6rem); /* Responsive font size */
    font-weight: 700;
}

.track-info {
    grid-column: 1 / 3; /* Span first two columns */
    justify-content: flex-end; /* Align content to the bottom */
    align-items: flex-start;
    padding: 0;
    position: relative;
}

.footer-info {
    grid-column: 1 / -1; /* Span all 3 columns */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* --- Content Styling --- */
.placeholder-text {
    font-size: clamp(0.5rem, 1.5vw, 0.75rem);
    line-height: 1.6;
    opacity: 0.8;
}

.track-info .info-line-box {
    width: 100%;
    height: 60%;
    border: var(--border-width) solid var(--foreground-color);
    position: absolute;
    top: 0;
    left: 0;
}

.track-name-label {
    width: 100%;
    border-top: var(--border-width) solid var(--foreground-color);
    padding: 0.5rem 1rem;
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
}

.redacted-bar {
    width: 40%;
    height: 50%;
    background-image: repeating-linear-gradient(
        -45deg,
        var(--foreground-color),
        var(--foreground-color) 5px,
        transparent 5px,
        transparent 10px
    );
}

.tagline {
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    flex-grow: 1; /* Take up remaining space */
}

/* --- Vector Graphic Links --- */
.vector-cell {
    padding: 1.5rem;
}

.vector-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.vector-link:hover {
    opacity: 0.6; /* Simple hover effect for e-ink feel */
}

.vector-link svg {
    width: 100%;
    height: 100%;
}

.vector-link svg * { /* Target all shapes within the SVG */
    stroke: var(--foreground-color);
    fill: var(--foreground-color);
}

.vector-link svg path { /* Special style for the hollow shape */
    fill: none;
}