@import url('https://fonts.googleapis.com/css2?family=Aclonica&family=Eagle+Lake&family=MedievalSharp&family=Philosopher&family=UnifrakturMaguntia&display=swap');

:root {
    /* Color palette */
    --color-bg: #0D1117;
    --color-surface: #161B22;
    --color-primary: #14B5FF;
    --color-secondary: #845CCC;
    --color-text: #C9D1D9;
    --color-link: #14B5FF;
    --color-link-hover: #C5F8FF;

    --gradient-1: linear-gradient(to right bottom, #00C8FF, #14A5FF, #7066FF, #5E17EB);
    --gradient-2: linear-gradient(#00FFEE, #27AAFF);

    /* Font families */
    --font-aclonica: 'Aclonica', sans-serif;

    /* Glassmorphism */
    --glass-bg: rgba(0, 0, 0, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-aclonica);
    color: var(--color-text);
}

/* Page layout */
.container {
    display: grid;
    width: min(1000px, 100%);
    min-height: 800px;
    grid-template-columns: 200px 1fr 1fr;
    grid-template-rows: 100px 1fr auto 100px;
    gap: 0.5rem;
}

.header {
    grid-row: 1 / 2;
    grid-column: 1 / 4;
    background-image: url('../images/spacebackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1.25rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.header-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.header-title {
    font-size: clamp(1.35rem, 2.4vw, 2.3rem);
    line-height: 1.1;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.sidebar {
    grid-row: 2 / 4;
    grid-column: 1 / 2;
    padding: 1rem;
    background-image: linear-gradient(160deg, #120548 0%, #2378a3 127%);
    background-size: cover;
    overflow: auto;
}

.content-1 {
    grid-row: 2 / 3;
    grid-column: 2 / 4;
    background-image:
            linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
            var(--gradient-2);
    font-size: 12px;
    color: #ffffff;
}

.content-1 p {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    line-height: 1.6;
}

.content-2 {
    grid-row: 3 / 4;
    grid-column: 2 / 3;
    background-image: var(--gradient-1);
    font-size: 10px;
}

.content-3 {
    grid-row: 3 / 4;
    grid-column: 3 / 4;
    background-image: var(--gradient-1);
    align-self: stretch;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
}

.content-3 h1 {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    line-height: 1.15;
}

.content-3 h3 {
    width: 100%;
    margin: 0;
    font-size: clamp(0.78rem, 1vw, 0.95rem);
    line-height: 1.25;
}

.content-3 .producer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    align-items: start;
}

.content-3 .producer-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
}

.content-3 .producer-card .buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    justify-content: flex-start;
    align-items: center;
}

.content-3 .producer-card .buttons buttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    grid-row: 4 / 5;
    grid-column: 1 / 4;
    background-color: #6C52D9;
    background-image: linear-gradient(160deg, #6C52D9 0%, #9B8AE6 127%);
}

.sidebar,
.content-1,
.content-2,
.content-3,
.footer {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.5;
    padding: 1rem;
}

/* Headings */
.content-1 h1,
.content-2 h1,
.content-3 h1 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.content-1 h3,
.content-2 h3,
.content-3 h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.3;
    margin: 1rem 0 0.5rem;
}

/* Main container styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    min-height: 100%;
    background-image: url('../images/wisp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: all 0.4s ease-in-out;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-rendering: optimizeLegibility;
}

.item {
    overflow-wrap: anywhere;
    word-break: break-word;
    background-color: var(--glass-bg);
    border-radius: 4px;
    border: 6px solid #171717;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    min-width: 0;
    min-height: 0;
}

.app-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
}

.back {
    font-size: 1.5rem;
    line-height: 2em;
    white-space: nowrap;
}

/* Buttons and links */
.buttons a,
.buttons p {
    font-size: clamp(0.85rem, 1vw, 1rem);
    line-height: 1.2;
    white-space: nowrap;
}

/* Small-button override for container 3 */
.content-3 .btn-hover {
    width: 110px;
    height: 34px;
    margin: 0;
    font-size: 0.72rem;
    border-radius: 999px;
}

.content-3 .btn-hover p,
.content-3 .btn-hover a {
    font-size: 0.72rem;
    line-height: 1;
}

.content-3 .btn-hover a {
    text-decoration: none;
}

@media (max-width: 700px) {
    .content-3 .producer-grid {
        grid-template-columns: 1fr;
    }
}