/* ═══════════════════════════════════════════════════════
   FUTURISTIC UI UPGRADE
   Modern glassmorphism, neon accents, micro-animations
   Layered ON TOP of existing style.css
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --accent: #cc7954;
    --accent-glow: rgba(204,121,84,0.35);
    --gold: #ffdda9;
    --neon-blue: #5aa0ef;
    --neon-red: #ff4444;
    --neon-green: #4ac08d;
    --neon-purple: #a97fff;
    --glass-bg: rgba(8,10,18,0.75);
    --glass-border: rgba(200,128,82,0.1);
    --glass-blur: 16px;
    --surface: rgba(12,14,24,0.92);
    --surface-hover: rgba(20,22,34,0.95);
    --text-primary: #feffff;
    --text-secondary: #b0a89e;
    --text-muted: #696868;
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Global Smoothing ── */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(5,7,16,0.4); }
::-webkit-scrollbar-thumb { background: rgba(200,128,82,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,128,82,0.45); }

/* ── Selection ── */
::selection { background: rgba(204,121,84,0.3); color: #fff; }

/* ══════════════════════════════
   NAVIGATION — Glass Morphism
   ══════════════════════════════ */
.topPanel {
    background: rgba(5,7,16,0.65) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(200,128,82,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.topPanel-wrapper {
    border-bottom: none !important;
}

/* Nav link hover glow */
.nav li a {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nav li:hover > a {
    text-shadow: 0 0 20px rgba(204,121,84,0.25);
}

/* Dropdown glass */
.nav li ul {
    background: rgba(8,10,20,0.92) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    border: 1px solid rgba(200,128,82,0.1) !important;
    border-top: 2px solid var(--accent) !important;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 1px rgba(200,128,82,0.15) !important;
    border-radius: 0 0 8px 8px !important;
    animation: navDropIn 0.25s var(--transition-smooth);
}
@keyframes navDropIn {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.nav li ul li a {
    transition: all 0.25s ease !important;
    position: relative;
}
.nav li ul li:hover a {
    background: rgba(204,121,84,0.06) !important;
}

/* ══════════════════════════
   SIDEBAR BLOCKS — Depth
   ══════════════════════════ */
.blockHome {
    background: var(--glass-bg) !important;
    background-image: none !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03) !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--transition-smooth) !important;
    overflow: hidden;
    position: relative;
}
.blockHome::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,128,82,0.2), transparent);
    z-index: 1;
}
.blockHome:hover {
    border-color: rgba(200,128,82,0.2) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(200,128,82,0.04), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    transform: translateY(-2px);
}

/* Table block rows — subtle glow on hover */
.tableBlock-content {
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.tableBlock-content:hover {
    box-shadow: inset 3px 0 0 var(--accent);
}

/* Player name hover effect */
.tableBlock-conten_name a {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.tableBlock-conten_name a:hover {
    color: var(--gold) !important;
    text-shadow: 0 0 12px rgba(255,221,169,0.2);
}

/* ══════════════════════════
   CONTENT AREA — Glass
   ══════════════════════════ */
.content {
    background: var(--surface) !important;
    background-image: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200,128,82,0.06) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}
.content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(200,128,82,0.15) 50%, transparent 90%);
    z-index: 1;
}

/* Section titles — neon underline */
.h2-title span {
    position: relative;
}
.h2-title span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 25px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: width 0.5s var(--transition-smooth);
}
.h2-title:hover span::after {
    width: 80px;
}

/* Content page title */
.h2-title-content {
    border-bottom: 1px solid rgba(200,128,82,0.08) !important;
    position: relative;
}
.h2-title-content::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 60px; height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* ══════════════════════════
   TABLES — Modern Polish
   ══════════════════════════ */
table tr {
    transition: background-color 0.2s ease;
}
table tr:hover {
    background-color: rgba(204,121,84,0.04) !important;
}
table thead td {
    position: relative;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
}

/* ══════════════════════════
   NEWS BLOCKS — Glow
   ══════════════════════════ */
.newsBlock {
    border: 1px solid rgba(200,128,82,0.06);
    border-radius: 10px !important;
    overflow: hidden;
    position: relative;
}
.newsBlock::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,128,82,0.2), transparent);
}
.newsLink {
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.newsLink::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(204,121,84,0.06), transparent);
    transition: width 0.4s ease;
}
.newsLink:hover::before {
    width: 100%;
}

/* ══════════════════════════
   INPUTS — Neon Focus
   ══════════════════════════ */
input:focus, textarea:focus, select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(204,121,84,0.1), 0 0 20px rgba(204,121,84,0.08) !important;
    outline: none;
}

/* ══════════════════════════
   BUTTONS — Glow Effect
   ══════════════════════════ */
button:hover, .button:hover {
    filter: brightness(120%);
    box-shadow: 0 0 24px 6px rgba(59,36,151,0.25), 0 0 12px rgba(204,121,84,0.15) !important;
}
button:active, .button:active {
    transform: scale(0.97);
}

/* ══════════════════════════
   MODAL — Glass Morphism
   ══════════════════════════ */
.modal_div {
    background: rgba(5,7,16,0.95) !important;
    background-image: none !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(200,128,82,0.12);
    border-radius: 12px !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 1px rgba(200,128,82,0.2) !important;
}
.modalTitle {
    border-bottom: 1px solid rgba(200,128,82,0.1) !important;
    position: relative;
}
.modalTitle::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 50px; height: 2px;
    background: var(--accent);
}
.fieldGroup span {
    background: rgba(5,7,16,0.9) !important;
    border-radius: 2px;
    padding: 3px 6px !important;
    transition: color 0.3s, text-shadow 0.3s;
}

/* ══════════════════════════
   FOOTER — Depth
   ══════════════════════════ */
footer {
    background: linear-gradient(180deg, rgba(4,6,12,0.88) 0%, rgba(2,3,6,0.98) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.f-menu li a {
    border-radius: 4px;
    transition: opacity 0.3s, padding-left 0.3s, color 0.3s, background 0.3s !important;
}
.f-menu li a:hover {
    background: rgba(200,128,82,0.04);
}

/* ══════════════════════════
   GALLERY — Modern Cards
   ══════════════════════════ */
.sliderImg img {
    border-radius: 6px;
    border: 1px solid rgba(200,128,82,0.08);
    transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s ease, border-color 0.3s !important;
}
.sliderImg img:hover {
    border-color: rgba(200,128,82,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(200,128,82,0.05) !important;
}

/* ══════════════════════════
   MICRO-ANIMATIONS
   ══════════════════════════ */

/* Entrance fade-in for main content */
.main {
    animation: mainFadeIn 0.6s ease;
}
@keyframes mainFadeIn {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Staggered sidebar block entrance */
aside > div {
    animation: sidebarSlideIn 0.5s var(--transition-smooth) both;
}
aside > div:nth-child(1) { animation-delay: 0.1s; }
aside > div:nth-child(2) { animation-delay: 0.2s; }
aside > div:nth-child(3) { animation-delay: 0.3s; }
aside > div:nth-child(4) { animation-delay: 0.4s; }
@keyframes sidebarSlideIn {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Alert banner polish */
.alert, .alert-success, .alert-warning {
    border-radius: 6px;
    border-left: 4px solid currentColor;
    backdrop-filter: blur(8px);
    animation: alertSlide 0.4s var(--transition-smooth);
}
@keyframes alertSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   MODULE PAGES — Shared Upgrades
   ══════════════════════════════════ */

/* Hero sections glassmorphism */
.gw-hero, .ct-hero, .bl-header {
    position: relative;
    overflow: hidden;
}
.gw-hero::after, .ct-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,128,82,0.2), transparent);
}

/* Tab bars — glass */
.gw-tabs, .ct-tabs, .bl-tabs {
    background: rgba(5,7,16,0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,128,82,0.08) !important;
}
.gw-tab, .ct-tab, .bl-tab {
    transition: all 0.3s ease !important;
    position: relative;
}
.gw-tab:hover, .ct-tab:hover, .bl-tab:hover {
    background: rgba(204,121,84,0.04) !important;
}
.gw-tab.active, .ct-tab.active, .bl-tab.active {
    background: rgba(204,121,84,0.08) !important;
}
.gw-tab.active::after, .ct-tab.active::after, .bl-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px 1px 0 0;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Panel glass */
.gw-panel, .ct-panel, .bl-panel {
    background: rgba(5,7,16,0.82) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gw-faction {
    background: rgba(5,7,16,0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Cards — hover lift */
.ct-card, .ct-vote-card, .gw-podium-card, .gw-season-card,
.bl-streak-card, .bl-rival-card {
    border-radius: 8px !important;
    transition: all 0.35s var(--transition-smooth) !important;
    position: relative;
    overflow: hidden;
}
.ct-card::before, .ct-vote-card::before, .gw-podium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.ct-card:hover, .ct-vote-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 1px rgba(200,128,82,0.2) !important;
}
.gw-podium-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35) !important;
}

/* Period buttons — pill style */
.gw-period-btn {
    border-radius: 20px !important;
    padding: 6px 18px !important;
    transition: all 0.3s ease !important;
}
.gw-period-btn.active {
    box-shadow: 0 0 12px rgba(204,121,84,0.15);
}

/* Rows — left accent on hover */
.gw-guild-row, .gw-killer-row, .gw-feed-row,
.bl-tl-item {
    border-radius: 4px;
    transition: all 0.25s ease !important;
}
.gw-guild-row:hover, .gw-killer-row:hover {
    box-shadow: inset 3px 0 0 var(--accent) !important;
}
.bl-tl-item:hover {
    box-shadow: inset 3px 0 0 var(--accent);
}

/* Guild podium position badges — glow */
.gw-guild-pos.p1 { box-shadow: 0 0 10px rgba(255,215,0,0.2); }
.gw-guild-pos.p2 { box-shadow: 0 0 8px rgba(192,192,192,0.15); }
.gw-guild-pos.p3 { box-shadow: 0 0 8px rgba(205,127,50,0.15); }

/* Faction war bar — glass */
.gw-fw-bar {
    border-radius: 6px !important;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.2) !important;
}
.gw-fw-vs {
    border-radius: 14px !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Tier badges — subtle glow matching tier color */
.ct-tier-badge.tier-S { box-shadow: 0 0 8px rgba(255,68,68,0.15); }
.ct-tier-badge.tier-A { box-shadow: 0 0 8px rgba(255,165,0,0.12); }
.ct-tier-badge.tier-B { box-shadow: 0 0 8px rgba(255,215,0,0.1); }

/* Vote stars — glow */
.ct-vote-star.active, .ct-vote-star:hover {
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.4));
}

/* ══════════════════════════
   BATTLE LOG Enhancements
   ══════════════════════════ */
.bl-stats {
    background: var(--surface) !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(200,128,82,0.08) !important;
}
.bl-stat {
    transition: background 0.3s ease;
}
.bl-stat:hover {
    background: rgba(204,121,84,0.04);
}
.bl-stat-value {
    text-shadow: 0 0 20px currentColor;
}
.bl-kd-bar-wrap {
    background: var(--surface) !important;
    background-image: none !important;
}
.bl-kd-bar {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}
.bl-header {
    border-radius: 8px 8px 0 0;
}
.bl-threat {
    backdrop-filter: blur(6px);
    border-radius: 4px !important;
}

/* Streak dots — micro animation */
.bl-streak-dot {
    transition: transform 0.2s ease;
}
.bl-streak-dot:hover {
    transform: scale(1.8);
    z-index: 1;
}

/* ══════════════════════════════
   HOMEPAGE PANELS — Glass
   ══════════════════════════════ */
.hp-panel {
    border-radius: 10px !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
}
.hp-panel::before {
    border-radius: 10px 10px 0 0;
}
.hp-panel-head {
    position: relative;
}
.hp-panel-head::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,128,82,0.12), transparent);
}

/* Quick cards — glass */
.hp-quick-card {
    border-radius: 10px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}
.hp-quick-card:hover {
    transform: translateY(-3px) !important;
}

/* ══════════════════════════════
   EVENT COUNTDOWN WIDGET
   ══════════════════════════════ */
.ecw-panel {
    border-radius: 10px !important;
}
.ecw-countdown {
    font-variant-numeric: tabular-nums;
}
.ecw-next-name {
    text-shadow: 0 0 16px currentColor;
}

/* ══════════════════════════════
   DOWNLOAD BLOCKS — Glass
   ══════════════════════════════ */
.downloadBlock {
    border-radius: 10px !important;
    border: 1px solid rgba(200,128,82,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s, transform 0.3s var(--transition-smooth), box-shadow 0.3s;
}
.downloadBlock:hover {
    border-color: rgba(200,128,82,0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ══════════════════════════════
   LINK GLOW UTILITY
   ══════════════════════════════ */
.content-page a {
    position: relative;
    transition: color 0.3s, text-shadow 0.3s;
}
.content-page a:hover {
    text-shadow: 0 0 12px rgba(255,221,169,0.2);
}

/* ══════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ══════════════════════════════ */
@media (max-width: 768px) {
    .blockHome { border-radius: 6px !important; }
    .content { border-radius: 6px !important; }
    .hp-panel { border-radius: 6px !important; }
    .newsBlock { border-radius: 6px !important; }
    .modal_div { border-radius: 8px !important; }
    aside > div { animation: none; }
    .main { animation: none; }
}

/* ══════════════════════════════
   NEON ACCENT KEYFRAME
   (used by homepage & widgets)
   ══════════════════════════════ */
@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 4px var(--accent-glow); }
    50% { box-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(204,121,84,0.1); }
}

/* Accent-bordered elements get subtle pulse on hover */
.gw-season-card.active-season {
    animation: neonPulse 3s ease-in-out infinite;
}
