/* MapleVenture CMS - Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #141414;
    --red-primary: #c41e3a;
    --red-light: #e63950;
    --red-dark: #8b1528;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666;
    --border-color: #2a2a2a;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

a { color: var(--red-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: #fff; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ========== HEADER ========== */
.header {
    background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--red-primary);
    color: #fff;
    transform: scale(1.1);
}

.header-actions { display: flex; gap: 20px; }
.header-actions a {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-actions a:hover { color: #fff; }

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a { text-decoration: none; }
.logo h1 {
    font-family: 'Russo One', sans-serif;
    font-size: 28px;
    color: #fff;
    letter-spacing: 2px;
}
.logo span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.nav-main { display: flex; gap: 5px; }
.nav-main a {
    padding: 10px 18px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.3s;
}
.nav-main a:hover,
.nav-main a.active {
    background: var(--red-primary);
    color: #fff;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-title {
    font-family: 'Russo One', sans-serif;
    font-size: 42px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--red-light), var(--red-primary));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.6);
    color: #fff;
}

/* Slide transitions */
.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}

/* Individual slide backgrounds */
.hero-slide.slide-1 {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)),
        url('/assets/images/kerning.webp') center/cover no-repeat;
}

.hero-slide.slide-2 {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)),
        url('/assets/images/black-mages-wrath.png') center/cover no-repeat;
}

.hero-slide.slide-3 {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)),
        url('/assets/images/20150324181826_90996.jpg') center/cover no-repeat;
}

/* Decorative elements for slides */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    pointer-events: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}
.slider-arrow:hover { background: var(--red-primary); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}
.slider-dot.active { background: var(--red-primary); }

/* ========== MAIN LAYOUT ========== */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 30px;
    padding: 40px 0;
}

/* ========== SIDEBAR ========== */
.sidebar, .right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.sidebar-header {
    background: var(--red-primary);
    padding: 12px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-content { padding: 15px; }

/* Download Buttons */
.download-btn {
    display: block;
    background: linear-gradient(180deg, var(--red-light), var(--red-primary));
    color: #fff !important;
    padding: 12px 15px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}
.download-btn.secondary {
    background: linear-gradient(180deg, #444, #333);
}

/* ========== WELCOME BOX ========== */
.welcome-box {
    background: linear-gradient(135deg, var(--red-dark), var(--bg-card));
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.welcome-box h2 { margin-bottom: 10px; }
.welcome-box .stat {
    display: inline-block;
    margin-right: 20px;
    color: var(--text-secondary);
}
.welcome-box .stat i { color: var(--red-light); margin-right: 5px; }

/* ========== ABOUT SECTION ========== */
.about-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.about-section h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}
.about-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: center;
}
.about-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.about-images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}
.about-images img:hover { transform: scale(1.05); }

/* ========== NEWS SECTION ========== */
.news-section { margin-bottom: 30px; }

.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.news-tab {
    padding: 10px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}
.news-tab:hover,
.news-tab.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
}

.news-list { display: flex; flex-direction: column; gap: 15px; }

.news-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}
.news-item:hover {
    border-color: var(--red-primary);
    transform: translateX(5px);
}

.news-thumb {
    width: 180px;
    height: 130px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-content {
    padding: 15px 15px 15px 0;
    flex: 1;
}
.news-content h3 { font-size: 16px; margin-bottom: 8px; }
.news-content h3 a { color: #fff; }
.news-content h3 a:hover { color: var(--red-light); }
.news-content p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    background: var(--red-primary);
    color: #fff !important;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ========== RANKINGS SECTION ========== */
.rankings-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-color);
}
.rankings-section h2 {
    font-family: 'Russo One', sans-serif;
    text-align: center;
    margin-bottom: 25px;
}

.big-kahuna {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--red-dark), var(--bg-darker));
    border-radius: 8px;
    margin-bottom: 25px;
}
.big-kahuna h3 {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.big-kahuna .player-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}
.big-kahuna .player-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.big-kahuna .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--red-light);
}
.big-kahuna .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.rankings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}
.ranking-table th,
.ranking-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.ranking-table th {
    background: var(--bg-darker);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ranking-table tr:hover { background: rgba(255,255,255,0.02); }

.vote-poll {
    background: var(--bg-darker);
    padding: 20px;
    border-radius: 8px;
}
.vote-poll h4 {
    font-size: 13px;
    margin-bottom: 15px;
    color: var(--red-light);
}
.poll-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}
.poll-option input { accent-color: var(--red-primary); }
.vote-btn {
    width: 100%;
    padding: 12px;
    background: var(--red-primary);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}
.vote-btn:hover { background: var(--red-light); }

/* Poll Results */
.poll-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.poll-result-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.poll-result-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}
.poll-result-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}
.poll-result-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-primary), var(--red-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ========== RIGHT SIDEBAR WIDGETS ========== */
.latest-posts .post-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.latest-posts .post-item:last-child { border-bottom: none; }
.latest-posts .post-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}
.latest-posts .post-info h4 { font-size: 13px; margin-bottom: 3px; }
.latest-posts .post-meta { font-size: 11px; color: var(--text-muted); }

.top-recent .user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.top-recent .user-item:last-child { border-bottom: none; }
.top-recent .user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-darker);
}
.top-recent .user-info h4 { font-size: 13px; }
.top-recent .user-info span { font-size: 11px; color: var(--text-muted); }

.streamers-widget .streamer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.streamers-widget .streamer-item:last-child { border-bottom: none; }
.live-badge {
    background: #dc3545;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.newsletter-widget input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #fff;
    margin-bottom: 10px;
    font-size: 13px;
}
.newsletter-widget input:focus {
    outline: none;
    border-color: var(--red-primary);
}
.newsletter-widget button {
    width: 100%;
    padding: 10px;
    background: var(--red-primary);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.newsletter-widget button:hover { background: var(--red-light); }

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer h4 {
    color: var(--red-primary);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer a {
    display: block;
    color: var(--text-secondary);
    padding: 4px 0;
    font-size: 13px;
}
.footer a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    transition: all 0.3s;
    text-align: center;
}
.btn-primary {
    background: var(--red-primary);
    color: #fff !important;
}
.btn-primary:hover { background: var(--red-light); }

/* ========== FLASH MESSAGES ========== */
.flash-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.flash-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}
.flash-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* ========== SMEGA CHAT ========== */
.smega-chat {
    padding: 0 !important;
}
.smega-messages {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
}
.smega-messages::-webkit-scrollbar {
    width: 4px;
}
.smega-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}
.smega-msg {
    padding: 8px 10px;
    margin-bottom: 6px;
    background: var(--bg-darker);
    border-radius: 4px;
    font-size: 12px;
    border-left: 3px solid var(--red-primary);
}
.smega-msg.type-super { border-left-color: #ffc107; }
.smega-msg.type-heart { border-left-color: #e91e63; }
.smega-msg.type-skull { border-left-color: #9c27b0; }
.smega-msg .smega-name {
    color: var(--red-light);
    font-weight: 700;
}
.smega-msg .smega-time {
    float: right;
    color: var(--text-muted);
    font-size: 10px;
}
.smega-msg .smega-text {
    display: block;
    color: var(--text-secondary);
    margin-top: 3px;
    word-wrap: break-word;
}
.smega-empty {
    text-align: center;
    padding: 30px 15px;
    color: var(--text-muted);
    font-size: 12px;
}

/* ========== CHARACTER AVATARS ========== */
.char-avatar-small {
    width: 32px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
}
.char-avatar-medium {
    width: 64px;
    height: 80px;
    object-fit: contain;
    background: var(--bg-darker);
    border-radius: 6px;
}
.char-avatar-large {
    width: 96px;
    height: 120px;
    object-fit: contain;
    background: var(--bg-card);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}
.char-cell {
    display: flex;
    align-items: center;
}
.char-cell span {
    white-space: nowrap;
}

/* Big Kahuna Avatar */
.big-kahuna .kahuna-avatar {
    width: 120px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
    background: rgba(196, 30, 58, 0.1);
    border-radius: 8px;
    border: 2px solid var(--red-primary);
}

/* ========== USER CP ========== */
.usercp-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}
.usercp-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.usercp-avatar {
    width: 80px;
    height: 100px;
    object-fit: contain;
    background: var(--bg-darker);
    border-radius: 6px;
}
.usercp-info h2 {
    font-size: 22px;
    margin-bottom: 5px;
}
.usercp-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}
.usercp-stats span i {
    color: var(--red-light);
    margin-right: 5px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}
.character-card:hover {
    border-color: var(--red-primary);
    transform: translateY(-3px);
}
.character-card.main-char {
    border-color: var(--red-primary);
    background: linear-gradient(var(--bg-card), rgba(196, 30, 58, 0.1));
}
.character-card .char-img {
    width: 80px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 10px;
}
.character-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
}
.character-card .char-details {
    font-size: 12px;
    color: var(--text-muted);
}
.character-card .set-main-btn {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 11px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.character-card .set-main-btn:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .sidebar, .right-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 15px;
    }
    .nav-main { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 28px; }
    .sidebar, .right-sidebar { grid-template-columns: 1fr; }
    .rankings-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .news-item { flex-direction: column; }
    .news-thumb { width: 100%; height: 150px; }
    .about-images { grid-template-columns: 1fr; }
}