/* Shared styles for faux_sierra_music */

:root {
    --surface-0: #0a0d11;
    --surface-1: rgba(18, 22, 28, 0.92);
    --surface-2: rgba(26, 31, 39, 0.92);
    --border-soft: rgba(38, 48, 64, 0.7);
    --border-strong: rgba(78, 98, 122, 0.9);
    --panel-shadow: rgba(0, 0, 0, 0.38);
}

@font-face {
    font-family: "Digital";
    src: url("https://fonts.cdnfonts.com/s/76256/digital-7.woff") format("woff");
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Use when vertical scrolling should be disabled */
body.no-scroll {
    overflow: hidden;
}

.code-art-container {
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Fixed background variation */
.code-art-container.fixed {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

.code-line {
    position: absolute;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    opacity: 0;
    animation: fall linear infinite, fade-in linear forwards;
    animation-delay: var(--animation-delay, 0s);
}

.code-line.horizontal {
    animation: scroll linear infinite, fade-in linear forwards;
    animation-delay: var(--animation-delay, 0s);
}

.code-line.vertical {
    color: rgba(255, 255, 255, 0.8);
    animation: vertical-scroll linear infinite, fade-in linear forwards;
    animation-delay: var(--animation-delay, 0s);
    white-space: nowrap;
}

@keyframes fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes scroll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes vertical-scroll {
    0% { transform: translateY(100vh) rotate(-90deg); }
    100% { transform: translateY(-100vh) rotate(-90deg); }
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 0.5; }
}

/* Home page title */
.title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: min(560px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 3rem);
}

.subtitle {
    font-size: 1rem;
    color: #dddddd;
    margin-top: 1rem;
}

/* Shared display heading class for page titles on every page. */
.display-header,
.header-text {
    font-family: "Digital", monospace;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1;
    color: #ffffff;
}

.panel {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(25, 32, 40, 0.96) 0%, rgba(10, 13, 17, 0.92) 100%);
    box-shadow:
        0 22px 48px var(--panel-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(140, 182, 216, 0.36) 50%, transparent 100%);
    pointer-events: none;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.panel-body {
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(9, 11, 14, 0.86);
    color: #dddddd;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
    background: rgba(18, 23, 31, 0.96);
    border-color: rgba(112, 138, 169, 0.95);
    transform: translateY(-1px);
}

.btn.btn-small {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.loading-line {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 0;
}

.loading-dots {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0.08em;
    min-width: 3ch;
    text-align: left;
}

.home-action-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
}

.home-about-link {
    min-width: 112px;
    margin-inline: auto;
}
/* Containers for owner and playlist pages */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    margin: 0 auto;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    text-align: center;
}

/* Optional class to vertically center content when needed */
.content-container.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
}

.owner-layout {
    max-width: 860px;
    padding-top: 32px;
    padding-bottom: 72px;
    gap: 18px;
}

.owner-header-panel {
    width: min(520px, 100%);
    padding: 20px 24px;
}

.owner-header-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.owner-title {
    margin: 0;
    font-size: clamp(1.65rem, 3.1vw, 2.4rem);
    text-align: center;
    line-height: 1.05;
}

.owner-back-link {
    flex-shrink: 0;
}

.owner-card {
    padding: 12px;
}

.owner-social-panel {
    width: min(420px, 100%);
}

.owner-audio-panel {
    width: min(860px, 100%);
}

.owner-media-frame {
    border-radius: 16px;
    border: 1px solid rgba(73, 92, 116, 0.65);
    background:
        linear-gradient(180deg, rgba(13, 16, 21, 0.94) 0%, rgba(7, 9, 12, 0.94) 100%);
    padding: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 24px rgba(0, 0, 0, 0.24);
}

.owner-media-frame-social {
    padding: 10px;
}

.owner-media-frame-audio {
    padding: 12px;
}

/* Owner page specific widgets */
.widget-container { margin-bottom: 40px; }
iframe.instagram-frame {
    width: 100%;
    height: 760px;
    border: none;
    margin-bottom: 20px;
}
iframe.spotify-embed {
    width: 100%;
    height: 352px;
    border: none;
    border-radius: 12px;
}

.owner-card iframe.instagram-frame,
.owner-card iframe.spotify-embed {
    display: block;
    background: rgba(7, 7, 7, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.owner-card iframe.instagram-frame {
    margin-bottom: 0;
}

.disco-embed {
    width: 90vw;
    max-width: 880px;
}

.back-link {
    color: #dddddd;
    text-decoration: underline;
}

.back-link.btn {
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title { font-size: 2rem; padding-left: 30px; padding-right: 30px; }
    .subtitle { font-size: 0.8rem; }
    .code-line { font-size: 8px; }
    .disco-embed { max-width: 90vw; }
    .content-container h1 { font-size: 2rem; }
    .owner-layout {
        padding-top: 24px;
        padding-bottom: 48px;
        gap: 16px;
    }
    .owner-header-panel,
    .owner-card {
        padding: 14px;
        border-radius: 16px;
    }
    .owner-media-frame {
        padding: 8px;
        border-radius: 14px;
    }
    .owner-card iframe.instagram-frame {
        height: 620px;
    }
}

@media (min-width: 769px) {
    .code-line { font-size: 12px; }
    .disco-embed { max-width: 800px; width: 800px; }
}
