/* ═══════════════════════════════════════════════════════
   THE LOST STREET — Main Stylesheet
   Червено & Синьо тъмна тема
   ═══════════════════════════════════════════════════════ */

/* ─── Google Fonts ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ────────────────────────────────── */
:root {
    /* Фонове */
    --bg-primary:    #08080d;
    --bg-secondary:  #0d0d15;
    --bg-card:       #111119;
    --bg-card-hover: #16161f;
    --bg-input:      #0f0f18;
    --bg-overlay:    rgba(8, 8, 13, 0.92);

    /* Червено */
    --red:           #e63946;
    --red-bright:    #ff1744;
    --red-dark:      #b71c1c;
    --red-glow:      rgba(230, 57, 70, 0.3);

    /* Синьо */
    --blue:          #1e90ff;
    --blue-bright:   #2979ff;
    --blue-dark:     #0d47a1;
    --blue-glow:     rgba(30, 144, 255, 0.3);

    /* Текст */
    --text-primary:  #e8e8ef;
    --text-secondary:#8a8a9b;
    --text-muted:    #5a5a6e;

    /* Граници */
    --border:        #1e1e2e;
    --border-light:  #2a2a3d;

    /* Статуси */
    --green:         #2ecc71;
    --yellow:        #f39c12;
    --green-glow:    rgba(46, 204, 113, 0.3);
    --yellow-glow:   rgba(243, 156, 18, 0.3);

    /* Discord */
    --discord:       #5865f2;

    /* Градиенти */
    --gradient-hero: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
    --gradient-red:  linear-gradient(135deg, var(--red-dark), var(--red));
    --gradient-blue: linear-gradient(135deg, var(--blue-dark), var(--blue));

    /* Шрифтове */
    --font-heading:  'Russo One', sans-serif;
    --font-body:     'Inter', sans-serif;

    /* Размери */
    --container:     1140px;
    --radius:        8px;
    --radius-lg:     14px;
    --transition:    0.3s ease;
}

/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--blue-bright);
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* ─── Container ────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navbar ───────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-overlay);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px; /* Увеличена височина за повече въздух */
}

.navbar__logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar__logo span:first-child {
    color: var(--red);
}

.navbar__logo span:last-child {
    color: var(--blue);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 16px; /* Повече разстояние между линковете */
    list-style: none;
}

.navbar__links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.navbar__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
}

.navbar__username {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.navbar__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 25% 30%, var(--red-glow) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 75% 60%, var(--blue-glow) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 50% 80%, rgba(100, 50, 150, 0.15) 0%, transparent 70%);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%);
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
    font-weight: 500;
}

.hero__tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.hero__title .red {
    color: var(--red);
    text-shadow: 0 0 40px var(--red-glow);
}

.hero__title .blue {
    color: var(--blue);
    text-shadow: 0 0 40px var(--blue-glow);
}

.hero__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--red {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 20px var(--red-glow);
}

.btn--red:hover {
    background: var(--red-bright);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--red-glow);
}

.btn--blue {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px var(--blue-glow);
}

.btn--blue:hover {
    background: var(--blue-bright);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--blue-glow);
}

.btn--discord {
    background: var(--discord);
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn--discord:hover {
    background: #6d78f7;
    color: #fff;
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn--green {
    background: var(--green);
    color: #fff;
}

.btn--green:hover {
    background: #27ae60;
    color: #fff;
    transform: translateY(-2px);
}

.btn--sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn--lg {
    padding: 15px 36px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--danger {
    background: var(--red-dark);
    color: #fff;
}

.btn--danger:hover {
    background: var(--red);
    color: #fff;
}

/* ─── Sections ─────────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--bg-secondary);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
}

.section__desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Cards ────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.card__icon--red {
    background: rgba(230, 57, 70, 0.12);
    color: var(--red);
}

.card__icon--blue {
    background: rgba(30, 144, 255, 0.12);
    color: var(--blue);
}

.card__title {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.card__text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ─── Steps ────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    counter-increment: step;
    transition: all var(--transition);
}

.step:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.step::before {
    content: counter(step);
    position: absolute;
    top: -16px;
    left: 28px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-hero);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    margin-top: 4px;
}

.step__text {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* ─── Forms ────────────────────────────────────────── */
.form-page {
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 60px;
}

.form-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.form-wrap__title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.form-wrap__desc {
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-label span {
    color: var(--red);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ─── Flash Messages ──────────────────────────────── */
.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: flashIn 0.4s ease;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flash--success {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.flash--error {
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--red);
    color: var(--red);
}

.flash--info {
    background: rgba(30, 144, 255, 0.1);
    border-color: var(--blue);
    color: var(--blue);
}

/* ─── Badges ───────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge--pending {
    background: rgba(243, 156, 18, 0.12);
    color: var(--yellow);
    border: 1px solid rgba(243, 156, 18, 0.25);
}

.badge--approved {
    background: rgba(46, 204, 113, 0.12);
    color: var(--green);
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.badge--rejected {
    background: rgba(230, 57, 70, 0.12);
    color: var(--red);
    border: 1px solid rgba(230, 57, 70, 0.25);
}

/* ─── Status Check ─────────────────────────────────── */
.status-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
}

.status-box__id {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.status-box__badge {
    margin-bottom: 20px;
}

.status-box__badge .badge {
    font-size: 1rem;
    padding: 8px 24px;
}

.status-box__note {
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
}

/* ─── Accordion (Rules) ───────────────────────────── */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.accordion__item:hover {
    border-color: var(--border-light);
}

.accordion__header {
    width: 100%;
    background: var(--bg-card);
    border: none;
    padding: 18px 24px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}

.accordion__header:hover {
    background: var(--bg-card-hover);
}

.accordion__icon {
    font-size: 1.2rem;
    transition: transform var(--transition);
    color: var(--text-muted);
}

.accordion__item.active .accordion__icon {
    transform: rotate(45deg);
    color: var(--red);
}

.accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion__content {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.accordion__content li {
    margin-bottom: 6px;
    padding-left: 8px;
}

.accordion__item.active .accordion__body {
    max-height: 600px;
}

/* ─── Profile ──────────────────────────────────────── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.profile-header__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--border-light);
}

.profile-header__name {
    font-size: 1.3rem;
}

.profile-header__discord {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.app-item:hover {
    border-color: var(--border-light);
}

.app-item__info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-item__id {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: monospace;
}

.app-item__name {
    font-weight: 600;
}

.app-item__date {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ─── Footer ───────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-secondary);
}

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

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer__logo .red { color: var(--red); }
.footer__logo .blue { color: var(--blue); }

.footer__text {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer__links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--text-primary);
}

/* ─── Scroll animations ───────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Divider line ─────────────────────────────────── */
.gradient-line {
    height: 3px;
    background: var(--gradient-hero);
    border: none;
    border-radius: 3px;
    opacity: 0.5;
    margin: 0;
}

/* ─── Empty state ──────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state__text {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ─── Mobile ───────────────────────────────────────── */
@media (max-width: 1024px) { /* Променено от 768px на 1024px за да не се сбръчква на лаптопи */
    .navbar__links {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-overlay);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .navbar__links.open {
        opacity: 1;
        pointer-events: all;
    }

    .navbar__links a {
        font-size: 1.1rem;
        padding: 12px 32px;
    }

    .navbar__hamburger {
        display: block;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .app-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
