/* Bloodnight - Dark Fantasy Browser RPG Custom Styles */

:root {
    --bn-crimson: #e11d48;
    --bn-blood: #be123c;
    --bn-blood-dark: #881337;
    --bn-blood-glow: rgba(225, 29, 72, 0.5);
    --bn-violet: #7c3aed;
    --bn-amber: #f59e0b;
    --bn-bg-dark: #090508;
    --bn-panel-bg: rgba(19, 10, 16, 0.88);
    --bn-card-border: rgba(225, 29, 72, 0.25);
    --bn-card-hover: rgba(225, 29, 72, 0.45);
    --bn-text-main: #fce7f3;
    --bn-text-muted: #fda4af;
}

.bloodnight-site {
    background: radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.16) 0%, transparent 60%),
                linear-gradient(180deg, #070306 0%, #11070e 45%, #060205 100%);
    color: var(--bn-text-main);
    overflow-x: hidden;
}

/* HERO SECTION */
.bn-hero {
    position: relative;
    padding: 70px 0 95px;
    background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.2), transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.12), transparent 40%);
    border-bottom: 1px solid var(--bn-card-border);
}

.bn-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(225, 29, 72, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.bn-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bn-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.bn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fecdd3;
}

.bn-badge.pulse {
    position: relative;
}

.bn-badge.pulse::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bn-crimson);
    box-shadow: 0 0 10px var(--bn-crimson);
}

.bn-title {
    font-size: clamp(3rem, 6vw, 4.4rem);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.bn-title span {
    background: linear-gradient(135deg, #fff 15%, #fb7185 60%, var(--bn-crimson) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 35px rgba(225, 29, 72, 0.5));
}

.bn-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #fbcfe8;
    margin-bottom: 30px;
    max-width: 580px;
    opacity: 0.9;
}

/* BUTTONS */
.bn-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.btn-bn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--bn-crimson) 0%, var(--bn-blood-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.45);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-bn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(225, 29, 72, 0.65);
    background: linear-gradient(135deg, #f43f5e 0%, var(--bn-blood) 100%);
    color: #fff;
}

.btn-bn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: rgba(26, 11, 20, 0.9);
    color: #fce7f3;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--bn-card-border);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-bn-secondary:hover {
    background: rgba(225, 29, 72, 0.2);
    border-color: var(--bn-crimson);
    color: #fff;
    transform: translateY(-2px);
}

/* LIVE SERVER / MOON WIDGET */
.bn-status-card {
    background: linear-gradient(145deg, rgba(28, 12, 22, 0.95), rgba(16, 6, 12, 0.98));
    border: 1px solid var(--bn-card-border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(225, 29, 72, 0.15);
    position: relative;
    overflow: hidden;
}

.bn-status-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bn-crimson), var(--bn-violet));
}

.bn-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(225, 29, 72, 0.15);
}

.bn-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fb7185;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bn-status-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bn-crimson);
    box-shadow: 0 0 12px var(--bn-crimson);
    animation: bnPulseDot 2s infinite;
}

@keyframes bnPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.65; }
}

.bn-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.bn-stat-box {
    background: rgba(12, 4, 9, 0.7);
    border: 1px solid rgba(225, 29, 72, 0.12);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.bn-stat-box .label {
    font-size: 0.76rem;
    color: #f472b6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.bn-stat-box .value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.bn-stat-box .value.highlight {
    color: #fb7185;
}

/* TERRITORY BAR */
.bn-territory-wrap {
    margin-top: 6px;
}

.bn-territory-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.bn-territory-labels .vamp { color: #f43f5e; }
.bn-territory-labels .wolf { color: #a78bfa; }

.bn-territory-bar {
    height: 8px;
    border-radius: 4px;
    background: #7c3aed;
    overflow: hidden;
    display: flex;
}

.bn-territory-fill-vamp {
    background: linear-gradient(90deg, #be123c, #f43f5e);
    width: 54%;
    height: 100%;
    transition: width 0.8s ease;
}

/* FACTION SHOWCASE */
.bn-section {
    padding: 85px 0;
    position: relative;
}

.bn-section.darker {
    background: #080306;
}

.bn-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.bn-kicker {
    display: inline-block;
    color: var(--bn-crimson);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.bn-section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.bn-section-header p {
    font-size: 1.05rem;
    color: #fbcfe8;
    opacity: 0.85;
}

/* FACTION CARDS & STATS */
.bn-factions-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.bn-faction-btn {
    background: rgba(28, 12, 22, 0.8);
    border: 1px solid rgba(225, 29, 72, 0.2);
    color: #fce7f3;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.bn-faction-btn:hover {
    border-color: var(--bn-crimson);
    color: #fff;
}

.bn-faction-btn.active {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.35), rgba(136, 19, 55, 0.4));
    border-color: var(--bn-crimson);
    color: #fff;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.35);
}

.bn-faction-view {
    display: none;
    animation: bnFadeIn 0.35s ease forwards;
}

.bn-faction-view.active {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 35px;
    align-items: center;
    background: var(--bn-panel-bg);
    border: 1px solid var(--bn-card-border);
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.bn-faction-info h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bn-faction-info .desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #fbcfe8;
    margin-bottom: 22px;
    opacity: 0.9;
}

.bn-perks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bn-perks-list li {
    background: rgba(12, 4, 9, 0.6);
    border: 1px solid rgba(225, 29, 72, 0.15);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* STAT BARS */
.bn-stats-panel {
    background: rgba(12, 4, 9, 0.75);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 10px;
    padding: 24px;
}

.bn-stat-row {
    margin-bottom: 16px;
}

.bn-stat-row:last-child {
    margin-bottom: 0;
}

.bn-stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.bn-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.bn-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #be123c, #f43f5e);
}

.bn-bar-fill.purple {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.bn-bar-fill.amber {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

/* GAMEPLAY SYSTEMS GRID */
.bn-systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bn-system-card {
    background: var(--bn-panel-bg);
    border: 1px solid var(--bn-card-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bn-system-card:hover {
    transform: translateY(-5px);
    border-color: var(--bn-crimson);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(225, 29, 72, 0.2);
}

.bn-system-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 10px rgba(225, 29, 72, 0.4));
}

.bn-system-card h3 {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.bn-system-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #fbcfe8;
    opacity: 0.85;
}

/* PROGRESSION ROAD */
.bn-prog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bn-prog-card {
    background: linear-gradient(180deg, rgba(28, 12, 22, 0.9), rgba(14, 5, 10, 0.95));
    border: 1px solid var(--bn-card-border);
    border-radius: 12px;
    padding: 26px 20px;
    position: relative;
}

.bn-prog-tier {
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(225, 29, 72, 0.3);
    margin-bottom: 12px;
    line-height: 1;
}

.bn-prog-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.bn-prog-card p {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #fbcfe8;
    opacity: 0.85;
    margin-bottom: 12px;
}

.bn-prog-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #fda4af;
}

.bn-prog-features li {
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bn-prog-features li::before {
    content: "🩸";
    font-size: 0.7rem;
}

/* FAQ ACCORDION */
.bn-faq-wrap {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bn-faq-item {
    background: var(--bn-panel-bg);
    border: 1px solid rgba(225, 29, 72, 0.18);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.bn-faq-item.active {
    border-color: var(--bn-crimson);
}

.bn-faq-question {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.bn-faq-icon {
    font-size: 1.2rem;
    color: var(--bn-crimson);
    transition: transform 0.25s ease;
}

.bn-faq-item.active .bn-faq-icon {
    transform: rotate(180deg);
}

.bn-faq-answer {
    padding: 0 24px 18px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #fbcfe8;
    opacity: 0.9;
    display: none;
}

.bn-faq-item.active .bn-faq-answer {
    display: block;
}

/* PLAY MODAL */
.bn-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bn-modal.open {
    display: flex;
    animation: bnFadeIn 0.25s ease;
}

.bn-modal-content {
    background: linear-gradient(145deg, #1c0c16, #0e040a);
    border: 1px solid var(--bn-crimson);
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(225, 29, 72, 0.3);
    position: relative;
    text-align: center;
}

.bn-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #fda4af;
    font-size: 1.5rem;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .bn-hero-grid,
    .bn-faction-view.active {
        grid-template-columns: 1fr;
    }
    .bn-systems-grid,
    .bn-prog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bn-systems-grid,
    .bn-prog-grid,
    .bn-perks-list {
        grid-template-columns: 1fr;
    }
    .bn-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .bn-status-grid {
        grid-template-columns: 1fr;
    }
}
