/* ==========================================================================
   MAIN.CSS | PREMIUM RETRO DESIGN SYSTEM (VERSION - 1)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ (COLOR PALETTE)
   -------------------------------------------------------------------------- */
:root {
    /* Background Colors */
    --bg-main: #0a0a0a;          /* Основной почти черный */
    --bg-secondary: #141414;     /* Для блоков (lyrics, sidebar) */
    --bg-accent: #1a1a1a;        /* Для ховера (наведения) */

    /* Text Colors */
    --text-main: #e0e0e0;        /* Основной текст (мягкий белый) */
    --text-muted: #a0a0a0;       /* Второстепенный текст (серый) */
    --text-bright: #ffffff;      /* Яркий акцентный текст */

    /* Gold Accents */
    --gold: #b8860b;             /* Goldenrod */
    --gold-dim: rgba(212, 175, 55, 0.6); 
    --gold-light: rgba(212, 175, 55, 0.1);

    /* Borders & Dividers */
    --border-color: #333333;     /* Темные границы */
    --gold-border: 1px solid var(--gold);
}

/* --------------------------------------------------------------------------
   2. БАЗОВЫЕ СТИЛИ (RESET & BASE)
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-main);
    background-image: url('/images/body.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'MyRetroFont', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* Typography */
@font-face {
    font-family: 'MyRetroFont';
    src: url('/webfonts/pt-astra/PT-Astra-Serif_Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3, h4 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}

/* Gradient Text Effect */
h1, h2 {
    background: linear-gradient(to bottom, #fcf6ba 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   3. СЕТКА И МАКЕТ (LAYOUT)
   -------------------------------------------------------------------------- */
.content-main {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    gap: 20px;
    width: 100%;
    flex: 1;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    flex: 1;
    width: 100%;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .content-main {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   4. КОМПОНЕНТЫ: HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.main-header {
    padding: 15px 20px;
    text-align: center;
    border-bottom: var(--gold-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Logo */
.logo .site-title {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: bold;
    background: linear-gradient(to bottom, #fcf6ba 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo .site-title:hover {
    background: linear-gradient(to bottom, #ddd 0%, #ddd 50%, #ddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.compact-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.compact-nav a.active {
    color: var(--gold);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.compact-nav .nav-divider {
    color: #333;
    font-size: 0.8rem;
    user-select: none;
}

/* Стили для иконки поиска в шапке */
.header-search-icon {
    color: #d4af37; /* Золотой цвет */
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

/* Эффект при наведении — иконка чуть увеличивается и становится ярче */
.header-search-icon:hover {
    color: #ffdf00; /* Более яркое золото */
    transform: scale(1.1);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 500px; /* Или любая другая ширина */
}

.search-form input {
    flex-grow: 1; /* Поле ввода будет занимать всё свободное место */
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
}

.search-form button {
    padding: 10px 20px;
    cursor: pointer;
    background: var(--gold); /* Используем ваш золотой цвет */
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

/* Auth Buttons */
.btn-auth-mini {
    border: 1px solid var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gold) !important;
}

.btn-auth-mini:hover {
    background: var(--gold);
    color: #1a1a1a !important;
}

/* --------------------------------------------------------------------------
   5. КОМПОНЕНТЫ: SIDEBARS
   -------------------------------------------------------------------------- */
.sidebar-left, .sidebar-right {
    padding: 20px;
    border-radius: 8px;
}

/* Style List (Navigation in Sidebar) */
.style-list {
    list-style: none;
    padding: 0;
}

.style-list li {
    margin: 5px 0;
    border-radius: 5px;
    overflow: hidden;
}

.style-list li a {
    display: block;
    padding: 10px;
    width: 100%;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.style-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.style-list li.active {
    background-color: var(--gold-dim);
}

.style-list li.active a {
    color: white !important;
}

/* --------------------------------------------------------------------------
   6. КОМПОНЕНТЫ: USER PROFILE (PREMIUM RETRO)
   -------------------------------------------------------------------------- */
.profile-container {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px;
}

.profile-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gold);
    background-color: var(--bg-accent);
    margin: 0 auto;
}

.profile-info-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.info-label {
    color: var(--gold);
    font-weight: bold;
}

/* Activity History */
.history-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.history-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    min-width: 25px;
    color: var(--gold);
}

.history-text strong {
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   7. ФУТЕР & ШТАМПЫ (FOOTER & STAMPS)
   -------------------------------------------------------------------------- */
.main-footer {
    padding: 20px 20px;
    text-align: center;
    border-top: var(--gold-border);
    margin-top: 20px;
}

.footer-content {
    display: flex;
    flex-direction: column; /* Элементы встают друг под друга */
    align-items: center;
    gap: 20px; /* Расстояние между текстом и штампом */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.copyright p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Stamps */
.header-stamp, .footer-stamp {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-stamp {
    transform: rotate(0deg);
    opacity: 0.7;
}

.header-stamp:hover {
    transform: rotate(-30deg) scale(1.1);
    opacity: 1;
    color: var(--text-bright);
}

.footer-stamp {
    transform: rotate(-30deg);
    opacity: 0.6;
}

.footer-stamp:hover {
    transform: rotate(-30deg) scale(1.1);
    opacity: 1;
    color: var(--text-bright);
}

/* --------------------------------------------------------------------------
   8. ГЛОБАЛЬНЫЕ ЭФФЕКТЫ (GLASSMORPHISM & SHADOWS)
   -------------------------------------------------------------------------- */
/* Glassmorphism applied to general containers */
.main-header,
.sidebar-left, .sidebar-right, 
.main-footer {
    background-color: rgba(25, 25, 25, 0.2) !important; 
    backdrop-filter: blur(4px);                         
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(40, 30, 10, 0.8);
}

/* Text Shadows for general readability */
.sidebar-left *, .sidebar-right * {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Profile */
@media (max-width: 850px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}
