/* ==========================================
   Nexus Landing Page - Content Styles
   (Header/footer/base in common.css)
   ========================================== */

/* ==========================================
   Landing Page Layout
   ========================================== */
.landing-page {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: 100vh;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================
   Hero Slider
   ========================================== */
.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 7;
}

.slider-track { position: relative; width: 100%; height: 100%; }

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active { opacity: 1; }

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.slide-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.slider-btn:hover { background: rgba(0,0,0,0.75); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active { background: #fff; }

/* ==========================================
   Card Sections
   ========================================== */
.card-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 500;
    transition: color 0.2s;
}

.view-all:hover { color: var(--gold-light); }

/* News List */
.news-list { display: flex; flex-direction: column; }

.news-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.news-row:last-child { border-bottom: none; }
.news-row:hover { background: var(--bg-card-hover); }

.news-badge-col { flex-shrink: 0; }

.news-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-notice { background: var(--green); color: #fff; }
.badge-update { background: #e67e22; color: #fff; }
.badge-event { background: var(--discord); color: #fff; }

.news-row-title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-row-date {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.empty-row {
    padding: 40px 20px;
    text-align: center;
}

.empty-row p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Rankings Grid */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 20px;
}

.rank-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 10px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.rank-card:hover { border-color: var(--border-hover); }

.rank-number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.rank-1 { background: linear-gradient(135deg, #f4d03f, #d4af37); color: #1a1a2e; }
.rank-2 { background: linear-gradient(135deg, #a0a0a0, #808080); color: #1a1a2e; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0622e); color: #fff; }
.rank-4 { background: rgba(255,255,255,0.1); }
.rank-5 { background: rgba(255,255,255,0.1); }

.rank-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    word-break: break-all;
}

/* ==========================================
   Sidebar
   ========================================== */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-card-header {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Login Card */
.login-header {
    padding: 14px 16px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-header.red { color: var(--red); border-bottom: 2px solid var(--red); }
.login-header.gold { color: var(--gold); border-bottom: 2px solid var(--gold); }

.login-body {
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.profile-avatar-lg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Action Buttons */
.btn-action {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover { background: #a12020; }

.btn-gold-solid {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a1a2e;
}

.btn-gold-solid:hover { box-shadow: 0 4px 15px rgba(212,175,55,0.3); }

.btn-outline-light {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline-light:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-discord {
    background: var(--discord);
    color: #fff;
}

.btn-discord:hover { background: #4752c4; }

/* Server Info */
.server-info { padding: 12px 16px; }

.server-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.server-row + .server-row { border-top: 1px solid var(--border-color); }

.status-online {
    color: var(--green);
    font-weight: 600;
}

/* Discord Widget */
.discord-widget {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discord-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.discord-info i {
    font-size: 1.5rem;
    color: var(--discord);
}

/* Download Widget */
.download-widget {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-widget p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   Responsive - Landing Content
   ========================================== */
@media (max-width: 992px) {
    .landing-container {
        grid-template-columns: 1fr;
    }

    .side-col {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .rankings-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-page { padding-top: 80px; }
    .landing-container { padding: 0 16px; }

    .side-col {
        grid-template-columns: 1fr;
    }

    .rankings-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-slider { aspect-ratio: 16 / 9; }

    .slide-title { font-size: 1.2rem; }
    .slide-overlay { padding: 20px 18px; }
    .slide-badge { font-size: 0.65rem; padding: 2px 8px; }

    .section-top { padding: 14px 16px; }
    .section-title { font-size: 0.9rem; }
    .news-row { padding: 10px 16px; gap: 10px; }
    .news-row-title { font-size: 0.82rem; }

    .rank-card { padding: 12px 8px; }
    .rank-number { width: 30px; height: 30px; font-size: 0.85rem; }
    .rank-name { font-size: 0.72rem; }

    .sidebar-card-header { padding: 10px 14px; font-size: 0.8rem; }
    .login-body { padding: 16px 14px; }
    .btn-action { padding: 9px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .landing-page { padding-top: 64px; padding-bottom: 20px; }
    .landing-container { padding: 0 12px; gap: 16px; }

    .rankings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 14px;
    }

    .hero-slider { aspect-ratio: 4 / 3; }
    .slide-title { font-size: 1rem; }
}
