/* ============================================================
   HERO — перенесено из wotlk/public/css/style.css
   Адаптировано под layout нового проекта (Bootstrap, .container).
   Секция full-bleed: выходит за пределы .container на всю ширину.
   ============================================================ */

.site-hero {
    --color-ice: #5ec8ff;
    --color-ice-light: #8bdcff;
    --muted: #8e97a5;

    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -1.5rem; /* компенсируем .container my-4 */
    overflow: hidden;
    background: #080b10;
}

/* --- Видео-фон --- */
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: .58;
    filter: saturate(.78) contrast(1.08);
    transform: scale(1.015);
}

/* --- Затемнение + виньетка --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(5,8,13,.94) 0%,
        rgba(5,8,13,.78) 35%,
        rgba(5,8,13,.38) 63%,
        rgba(5,8,13,.78) 100%
    );
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 50% 40%,
        transparent 15%,
        rgba(0,0,0,.24) 65%,
        rgba(0,0,0,.72) 100%
    );
}

/* --- Контент --- */
.hero-content {
    position: relative;
    z-index: 3;
    width: calc(100% - 48px);
    max-width: 1425px;
    min-height: 520px;
    margin: 0 auto;
    padding: 70px 0 60px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-copy {
    width: min(580px, 54%);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo {
    width: 150px;
    height: auto;
    display: block;
    margin-bottom: 22px;
    filter: drop-shadow(0 5px 18px rgba(0,0,0,.55));
    animation: heroLogoFloat 5s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.hero-kicker {
    margin: 0 0 10px;
    color: var(--color-ice);
    font-family: "Cinzel", serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .20em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(94,200,255,.35);
}

.hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-family: "Cinzel", serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.025em;
    text-shadow: 0 4px 22px rgba(0,0,0,.65);
}

.hero-description {
    max-width: 570px;
    margin: 18px 0 0;
    color: rgba(235,240,245,.78);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    text-shadow: 0 2px 8px rgba(0,0,0,.65);
}

/* --- Правая колонка: реалмы --- */
.home-welcome-realms {
    width: 400px;
    max-width: 100%;
    flex: 0 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

/* --- Карточка статуса реалма --- */
.realm-status-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 94px;
    padding: 12px 18px 11px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 22px;
    row-gap: 4px;
    background: rgba(7,11,16,.76);
    border: 1px solid rgba(73,177,32,.28);
    border-left: 3px solid #49b120;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.025);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.realm-status-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(73,177,32,.10), transparent 55%);
}

.realm-status-card > * {
    position: relative;
    z-index: 1;
}

.realm-main-info {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.realm-title-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.realm-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: contain;
}

.realm-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

.realm-uptime {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 8px;
    white-space: nowrap;
}

.realm-uptime span:first-child {
    color: #727570;
    font-weight: 700;
    letter-spacing: .12em;
}

.realm-uptime span:last-child {
    color: #49b120;
    font-weight: 700;
}

.realm-online {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    white-space: nowrap;
    min-width: 58px;
    flex-shrink: 0;
}

.realm-online span:first-child {
    color: #ffffff;
    font-family: "Cinzel", serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1;
}

.realm-online span:last-child {
    margin-top: 4px;
    color: #727570;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* --- Оффлайн-состояние --- */
.realm-status-offline {
    border-color: rgba(224,52,52,.28);
    border-left-color: #b51f2b;
}

.realm-status-offline::after {
    background: linear-gradient(90deg, rgba(224,52,52,.10), transparent 55%);
}

.realm-status-offline .realm-uptime span:last-child {
    color: #e03434;
}

.realm-status-offline .realm-online span:first-child {
    color: #727570;
}

.realm-status-offline .faction-bar {
    opacity: .35;
}

/* --- Полоса фракций --- */
.faction-bar {
    grid-column: 1 / -1;
    grid-row: 3;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 5px;
    margin-top: 4px;
    display: flex;
    background: rgba(255,255,255,.05);
    border-radius: 3px;
    box-shadow: inset 0 0 3px rgba(0,0,0,.45);
    cursor: default;
}

.faction-bar-alliance,
.faction-bar-horde {
    height: 100%;
    flex-shrink: 0;
    transition: width .8s cubic-bezier(.4,0,.2,1), filter .2s ease;
    position: relative;
    overflow: hidden;
}

.faction-bar-alliance {
    border-radius: 3px 0 0 3px;
    background: linear-gradient(90deg, #176dcc, #38a4ff, #176dcc);
    box-shadow: 0 0 10px rgba(39,140,255,.65);
}

.faction-bar-horde {
    border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, #b51f2b, #f04444, #b51f2b);
    box-shadow: 0 0 10px rgba(224,52,52,.65);
}

.faction-bar-alliance:hover,
.faction-bar-horde:hover {
    filter: brightness(1.3);
}

.faction-bar-alliance::after,
.faction-bar-horde::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 55%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    animation: factionBarShine 2.4s linear infinite;
    pointer-events: none;
}

.faction-bar-horde::after {
    animation-delay: -1.2s;
}

@keyframes factionBarShine {
    from { transform: translateX(-120%); }
    to   { transform: translateX(220%); }
}

/* --- Кастомный tooltip для полос фракций --- */
.faction-tooltip {
    position: fixed;
    padding: 6px 14px;
    background: rgba(5,8,13,.96);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    color: #d4dce6;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0,0,0,.6);
}

.faction-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Адрес подключения (realmlist) --- */
.realm-connect {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 2px 0 0;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(7,11,16,.6);
    backdrop-filter: blur(12px);
}

.realm-connect-label {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.realm-connect-address {
    font-size: 14px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--color-ice);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.realm-connect-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,.05);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}

.realm-connect-copy:hover {
    background: rgba(255,255,255,.1);
}

.realm-connect-copy-icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: color .15s;
}

.realm-connect-copy:hover .realm-connect-copy-icon {
    color: var(--color-ice);
}

.realm-connect-copy.copied .realm-connect-copy-icon {
    color: #4ade80;
}

/* --- Кнопка «Продолжить» (скролл к новостям) --- */
.hero-scroll {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 17px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,.32);
    text-decoration: none;
    transform: translateX(-50%);
}

.hero-scroll span {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .2em;
}

.hero-scroll svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: scrollArrow 1.8s ease-in-out infinite;
}

@keyframes scrollArrow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 991.98px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 34px;
        min-height: 0;
        padding: 56px 0 70px;
    }
    .hero-copy {
        width: 100%;
    }
    .home-welcome-realms {
        width: 100%;
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        width: calc(100% - 32px);
        padding: 44px 0 64px;
    }
    .hero-logo {
        width: 118px;
        margin-bottom: 16px;
    }
    .realm-status-card {
        padding: 11px 14px 10px;
        column-gap: 14px;
    }
    .realm-online {
        min-width: 46px;
    }
    .realm-online span:first-child {
        font-size: 20px;
    }
    .realm-connect {
        flex-wrap: wrap;
    }
}
