/* style.css */
:root {
    --bg-dark: #09030f;
    --panel-bg: rgba(17, 11, 26, 0.85);
    --panel-border: #3b1c61;
    --primary-color: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.6);
    --text-main: #d3c4e3;
    --text-muted: #8b7d9b;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.5);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: url('../img/bg_main.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

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

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--primary-color);
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
    position: relative;
    z-index: 100;
}

.nav-logo {
    height: 60px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    font-size: 13px;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    font-weight: 500;
}

.main-nav a.active, .main-nav a:hover {
    color: #fff;
}

.main-nav a.active::after, .main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.btn-glow {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 2px;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 0 10px var(--gold-glow), 0 0 15px var(--gold-glow);
    text-shadow: 0 0 5px var(--gold);
    border-radius: 2px;
}

.btn-glow:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: inset 0 0 20px var(--gold-glow), 0 0 25px var(--gold-glow);
    color: #fff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 650px;
    width: 100%;
    margin-bottom: -30px;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.subtitle {
    font-size: 26px;
    letter-spacing: 15px;
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--primary-color);
    margin-left: 15px; /* offset for tracking */
}

.tagline {
    font-size: 18px;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.tagline span {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.btn-play-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 50px;
    background: linear-gradient(135deg, #2a0845, #6441A5);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(100, 65, 165, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.5);
    text-transform: uppercase;
}

.btn-play-large:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(100, 65, 165, 1), inset 0 0 30px rgba(212, 175, 55, 0.8);
    color: #fff;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.floating { animation: float 6s ease-in-out infinite; }

@keyframes pulse {
    0% { box-shadow: 0 0 30px rgba(100, 65, 165, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 50px rgba(100, 65, 165, 1), inset 0 0 40px rgba(212, 175, 55, 0.8); }
    100% { box-shadow: 0 0 30px rgba(100, 65, 165, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.5); }
}
.pulse-glow { animation: pulse 3s infinite; }

@keyframes tracking-in-expand {
    0% { letter-spacing: -0.5em; opacity: 0; }
    40% { opacity: 0.6; }
    100% { opacity: 1; }
}
.tracking-in-expand { animation: tracking-in-expand 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both; }

/* Main Container Layout */
.container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Widgets Base */
.widget {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 0 20px rgba(59, 28, 97, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.widget-title {
    text-align: center;
    padding: 15px;
    font-size: 16px;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(0,0,0,0.3);
}

/* Left Sidebar - Login */
.login-widget form {
    padding: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 35px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--panel-border);
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #4b1a82, #8a2be2, #4b1a82);
    background-size: 200% auto;
    border: 1px solid var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.5s;
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 0 15px var(--primary-glow);
}

.forgot-pwd {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
}

.widget-actions {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-secondary {
    display: block;
    text-align: center;
    padding: 10px;
    background: rgba(59, 28, 97, 0.4);
    border: 1px solid var(--panel-border);
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 12px;
}

.btn-secondary:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: var(--primary-color);
}

.connect-with {
    padding: 20px;
    text-align: center;
}

.line-text {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    position: relative;
}

.line-text::before, .line-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: var(--panel-border);
}
.line-text::before { left: 0; }
.line-text::after { right: 0; }

.btn-discord {
    width: 100%;
    padding: 10px;
    background: #5865F2;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-discord:hover {
    background: #4752C4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

/* Right Sidebar - Status */
.status-widget {
    padding-bottom: 20px;
}
.server-name {
    text-align: center;
    padding: 15px 0 5px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.status-indicator {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    margin-right: 5px;
    box-shadow: 0 0 10px #4CAF50;
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.status-stats {
    padding: 0 20px;
    margin-bottom: 20px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--panel-border);
    font-size: 13px;
}
.stat-row:last-child { border-bottom: none; }
.text-gold {
    color: var(--gold);
    font-weight: bold;
}
.time {
    color: var(--text-muted);
    font-size: 11px;
    flex-direction: column;
    text-align: center;
    padding-top: 15px;
    gap: 5px;
}
.status-widget .btn-secondary {
    margin: 0 20px;
}

/* Legendary Banner */
.legendary-banner {
    background: url('../img/legendary_gear.jpg') center/cover;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--panel-border);
    position: relative;
    overflow: hidden;
}
/* Fallback if image missing */
.legendary-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(138,43,226,0.3), rgba(212,175,55,0.1));
    z-index: 0;
}
.legendary-banner h4 {
    font-size: 18px;
    color: var(--gold);
    text-shadow: 0 0 10px #000, 0 0 20px var(--gold);
    position: relative;
    z-index: 1;
}
.legendary-banner p {
    font-size: 10px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* Center Content */
/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}
.feature-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    text-align: center;
    padding: 10px;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-5px);
}
.card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.feature-card:hover .card-img img {
    transform: scale(1.1);
}
.feature-card h4 {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.feature-card p {
    font-size: 10px;
    color: var(--text-muted);
}

/* Image hue filters for reuse if needed */
.filter-hue-1 img { filter: hue-rotate(45deg); }
.filter-hue-2 img { filter: hue-rotate(120deg) saturate(1.5); }
.filter-hue-3 img { filter: hue-rotate(180deg); }
.filter-hue-4 img { filter: hue-rotate(270deg) brightness(1.2); }

/* Info Columns (4 cols) */
.info-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.info-col {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 15px;
}
.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.col-title {
    font-size: 14px;
    color: #fff;
    letter-spacing: 1px;
}
.view-all {
    font-size: 10px;
    color: var(--gold);
}

ul { list-style: none; }
.news-list li, .ranking-list li, .drops-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
}
.news-list li:last-child, .ranking-list li:last-child, .drops-list li:last-child {
    border-bottom: none;
}
.news-list a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 10px;
}
.news-list .date {
    font-size: 10px;
    color: var(--text-muted);
}
.news-icon { margin-right: 5px; }
.news-icon.purple { color: var(--primary-color); }

/* Rankings */
.rank {
    width: 20px;
    text-align: center;
    font-weight: bold;
    margin-right: 10px;
    font-family: var(--font-heading);
}
.rank.gold { color: #FFD700; text-shadow: 0 0 5px #FFD700; }
.rank.silver { color: #C0C0C0; text-shadow: 0 0 5px #C0C0C0; }
.rank.bronze { color: #CD7F32; text-shadow: 0 0 5px #CD7F32; }

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 1px solid var(--primary-color);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.guild-icon { border-radius: 4px; }

.ranking-list .name {
    flex: 1;
    color: #fff;
}
.ranking-list .stat, .ranking-list .bp {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 5px;
}
.guilds-list .bp {
    color: var(--gold);
}

/* Drops */
.drop-icon {
    width: 30px;
    height: 30px;
    background: #000;
    border: 1px solid var(--panel-border);
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.drop-icon img { max-width: 100%; max-height: 100%; }
.drop-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.item-name { font-weight: bold; font-size: 11px; }
.item-name.legend { color: #FF8C00; }
.item-name.epic { color: #BA55D3; }
.item-name.rare { color: #4169E1; }
.player-name { font-size: 10px; color: var(--text-muted); }
.drops-list .time { font-size: 10px; color: var(--text-muted); }

/* Footer */
.main-footer {
    background: #05010a;
    border-top: 2px solid var(--primary-color);
    padding: 60px 40px 20px;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.5;
    transition: var(--transition);
}
.footer-logo:hover {
    filter: none;
    opacity: 1;
}
.footer-logo-col p {
    color: var(--text-muted);
    font-size: 12px;
    max-width: 300px;
}
.footer-links h4, .footer-social h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #fff;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 10px;
    display: inline-block;
}
.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.links-grid a {
    font-size: 12px;
    color: var(--text-muted);
}
.links-grid a:hover { color: var(--primary-color); }

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.social-link {
    width: 40px;
    height: 40px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
}
.social-link:hover {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}
.join-discord { font-size: 10px; color: var(--text-muted); }

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 11px;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 250px 1fr;
    }
    .sidebar-right {
        grid-column: 1;
        grid-row: 2;
    }
    .content-center {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .info-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar-left, .sidebar-right, .content-center {
        grid-column: 1;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
