/* ===== CSS RESET & BASE STYLES ===== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

}



body {

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: url('../images/volcano_bg2.png') center/cover fixed, 
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;

}

/* Fix for long tribe names */
.stat-card .stat-number {
    font-size: 3rem;
    word-break: break-word;
    line-height: 1.2;
}

/* Smaller font for tribe names specifically */
#top-tribe {
    font-size: 2rem !important;
    max-width: 100%;
    overflow-wrap: break-word;
}

.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}



/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {

    font-weight: 600;

    margin-bottom: 1rem;

}



.section-title {

    font-size: 2.5rem;

    text-align: center;

    margin-bottom: 3rem;

    color: #fff;

    position: relative;

}



.section-title::after {

    content: '';

    position: absolute;

    bottom: -10px;

    left: 50%;

    transform: translateX(-50%);

    width: 80px;

    height: 3px;

    background: linear-gradient(90deg, #ff6b35, #f7941d);

    border-radius: 2px;

}



hero-logo {

    text-align: center;

    margin-bottom: 2rem;

}



.main-logo {

    height: 350px;  /* Increased from 180px */

    width: auto;

    max-width: 100%;

    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));

    animation: float 3s ease-in-out infinite;

    transition: all 0.3s ease;

}



.main-logo:hover {

    filter: drop-shadow(0 6px 12px rgba(255, 107, 53, 0.6));

    transform: scale(1.05);

}



@keyframes float {

    0%, 100% { transform: translateY(0px); }

    50% { transform: translateY(-10px); }

}



@media (max-width: 768px) {

    .main-logo {

        height: 160px;  /* Increased mobile size too */

    }

}



/* ===== BUTTONS ===== */

.btn {

    display: inline-block;

    padding: 12px 24px;

    border: none;

    border-radius: 6px;

    font-size: 1rem;

    font-weight: 600;

    text-decoration: none;

    text-align: center;

    cursor: pointer;

    transition: all 0.3s ease;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.btn-primary {

    background: linear-gradient(135deg, #ff6b35, #f7941d);

    color: white;

    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);

}



.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);

}



.btn-secondary {

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    color: #fff;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}



.btn-secondary:hover {

    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}



.btn-outline {

    background: transparent;

    color: #ff6b35;

    border: 2px solid #ff6b35;

}



.btn-outline:hover {

    background: #ff6b35;

    color: white;

}



.btn-small {

    padding: 8px 16px;

    font-size: 0.9rem;

}



.btn-large {

    padding: 16px 32px;

    font-size: 1.1rem;

}



.btn-small {

    padding: 8px 16px;

    font-size: 0.9rem;

}



/* Navigation Actions */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 1rem;

}



.nav-actions .btn {

    white-space: nowrap;

}



/* ===== HEADER & NAVIGATION ===== */

.header {

    position: fixed;

    top: 0;

    width: 100%;

    background: rgba(10, 10, 10, 0.95);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    z-index: 1000;

}



.header,

.navbar,

.navbar .container,

.nav-actions,

.player-status-dropdown {

    overflow: visible !important;

}



.navbar .container {

    overflow: visible !important;

}



.navbar {

    padding: 1rem 0;

}



.navbar .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 2rem;

}



.nav-brand {

    display: flex;

    align-items: center;

    gap: 1rem;

}



.logo {

    height: 40px;

    width: auto;

}



.server-name {

    color: #fff;

    font-size: 1.5rem;

    font-weight: 700;

    margin: 0;

}



.nav-menu {

    display: flex;

    list-style: none;

    gap: 2rem;

}



.nav-link {

    color: #ccc;

    text-decoration: none;

    font-weight: 500;

    transition: color 0.3s ease;

    position: relative;

}



.nav-link:hover,

.nav-link.active {

    color: #ff6b35;

}



.nav-link::after {

    content: '';

    position: absolute;

    bottom: -5px;

    left: 0;

    width: 0;

    height: 2px;

    background: #ff6b35;

    transition: width 0.3s ease;

}



.nav-link:hover::after,

.nav-link.active::after {

    width: 100%;

}



/* Hamburger Menu */

.hamburger {

    display: none;

    flex-direction: column;

    cursor: pointer;

    gap: 4px;

}



.hamburger span {

    width: 25px;

    height: 3px;

    background: #fff;

    transition: all 0.3s ease;

}



/* ===== HERO SECTION ===== */

.hero {

    height: 100vh;

    background: #1a1a1a url('../images/volcano_bg2.png') center/cover no-repeat;

    background-attachment: fixed;

    display: flex;

    align-items: center;

    text-align: center;

    position: relative;

}



.hero::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));

}



.hero-content {

    position: relative;

    z-index: 1;

    width: 100%;

}





.hero-title {

    font-size: 4rem;

    color: #fff;

    margin-bottom: 1rem;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);

}



.hero-subtitle {

    font-size: 1.2rem;

    color: #ccc;

    margin-bottom: 2rem;

    max-width: 600px;

    margin-left: auto;

    margin-right: auto;

}



.server-status {

    background: rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 12px;

    padding: 1.5rem;

    margin: 2rem auto;

    max-width: 400px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

}



.status-indicator {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;

    margin-bottom: 1rem;

}



.status-dot {

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: #ccc;

    animation: pulse 2s infinite;

}



.status-dot.online {

    background: #00ff88;

}



.status-dot.offline {

    background: #ff4444;

}



.status-text {

    color: #fff;

    font-weight: 600;

    font-size: 1.1rem;

}



.server-info {

    display: flex;

    justify-content: space-between;

    color: #ccc;

    font-size: 0.9rem;

}



.hero-actions {

    display: flex;

    gap: 1rem;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 2rem;

}



/* ===== FEATURES SECTION ===== */

.features {

    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.6) !important;

}



.features-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

}



.feature-card {

    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3); 
    border-radius: 12px; 
    padding: 2rem; 
    margin-bottom: 3rem; 
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);

}



.feature-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);

}



.feature-icon {

    font-size: 3rem;

    margin-bottom: 1rem;

}



.feature-card h3 {

    color: #fff;

    font-size: 1.3rem;

    margin-bottom: 1rem;

}



.feature-card p {

    color: #ccc;

    line-height: 1.6;

}



/* ===== QUICK STATS SECTION ===== */

.quick-stats {

    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.6) !important;

}



.stats-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 2rem;

}



.stat-card {

    background: rgba(255, 107, 53, 0.1); 
    border: 2px solid rgba(255, 107, 53, 0.3); 
    border-radius: 12px; 
    padding: 2rem; 
    margin-bottom: 3rem; 
    text-align: center;
    transition: transform 0.3s ease;

}



.stat-card:hover {

    transform: scale(1.05);

}



.stat-number {

    font-size: 3rem;

    color: #ff6b35;

    font-weight: 700;

    margin-bottom: 0.5rem;

}



.stat-label {

    color: #ccc;

    text-transform: uppercase;

    font-size: 0.9rem;

    letter-spacing: 1px;

}



/* ===== NEWS SECTION ===== */

.news {

    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.6) !important;

}



.news-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 3rem;

    flex-wrap: wrap;

    gap: 1rem;

}



.news-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 2rem;

}



.news-card {

    background: rgba(255, 107, 53, 0.1); 
    border: 2px solid rgba(255, 107, 53, 0.3); 
    border-radius: 12px; 
    padding: 2rem; 
    margin-bottom: 3rem; 
    text-align: left;
    transition: transform 0.3s ease;

}



.news-card:hover {

    transform: translateY(-5px);

}



.news-date {

    color: #ff6b35;

    font-size: 0.9rem;

    font-weight: 600;

    margin-bottom: 1rem;

}



.news-card h3 {

    color: #fff;

    font-size: 1.3rem;

    margin-bottom: 1rem;

}



.news-card p {

    color: #ccc;

    line-height: 1.6;

}



/* ===== FOOTER ===== */

.footer {

    background: #000;

    padding: 3rem 0 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

}



.footer-content {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

    margin-bottom: 2rem;

}



.footer-section h3 {

    color: #fff;

    margin-bottom: 1rem;

}



.footer-section ul {

    list-style: none;

}



.footer-section ul li {

    margin-bottom: 0.5rem;

}



.footer-section a {

    color: #ccc;

    text-decoration: none;

    transition: color 0.3s ease;

}



.footer-section a:hover {

    color: #ff6b35;

}



.footer-section p {

    color: #ccc;

}



.server-ip, .last-wipe {

    font-family: monospace;

    font-size: 0.9rem;

}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

/* --- Designer link (Discord) --- */
.footer-bottom .designer-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom .designer-link:hover {
    text-decoration: underline;
    color: #ffa366;
    transition: color 0.3s ease;
}

/* --- Site link (Anarkhy Ascended) --- */
.footer-bottom .site-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom .site-link:hover {
    text-decoration: underline;
    color: #ffa366;
    transition: color 0.3s ease;
}






.nav-dropdown {

    position: relative;

}



.dropdown-trigger {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    transition: all 0.3s ease;

}



.dropdown-arrow {

    font-size: 0.7rem;

    transition: transform 0.3s ease;

}



.nav-dropdown:hover .dropdown-arrow {

    transform: rotate(180deg);

}



.dropdown-menu {

    position: absolute;

    top: 100%;

    left: 50%;

    transform: translateX(-50%);

    min-width: 280px;

    background: rgba(20, 20, 20, 0.95);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 107, 53, 0.3);

    border-radius: 16px;

    padding: 0;

    margin-top: 1rem;

    opacity: 0;

    visibility: hidden;

    transform: translateX(-50%) translateY(-10px);

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 107, 53, 0.1);

    z-index: 1000;

    overflow: hidden;

}



.nav-dropdown:hover .dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform: translateX(-50%) translateY(0);

}



.dropdown-content {

    padding: 1rem 0;

}



.dropdown-item {

    display: flex;

    align-items: center;

    gap: 1rem;

    padding: 1rem 1.5rem;

    color: #ccc;

    text-decoration: none;

    transition: all 0.3s ease;

    position: relative;

    border: none;

    background: none;

    width: 100%;

    text-align: left;

    cursor: pointer;

}



.dropdown-item::before {

    content: '';

    position: absolute;

    left: 0;

    top: 0;

    bottom: 0;

    width: 4px;

    background: linear-gradient(135deg, #ff6b35, #f7941d);

    transform: scaleY(0);

    transition: transform 0.3s ease;

}



.dropdown-item:hover::before {

    transform: scaleY(1);

}



.dropdown-item:hover {

    background: rgba(255, 107, 53, 0.1);

    color: #fff;

    transform: translateX(5px);

}



.dropdown-icon {

    font-size: 1.5rem;

    width: 2rem;

    height: 2rem;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255, 107, 53, 0.1);

    border-radius: 10px;

    transition: all 0.3s ease;

}



.dropdown-item:hover .dropdown-icon {

    background: rgba(255, 107, 53, 0.2);

    transform: scale(1.1);

}



.dropdown-text {

    display: flex;

    flex-direction: column;

    gap: 0.2rem;

}



.dropdown-title {

    font-weight: 600;

    font-size: 1rem;

    color: inherit;

}



.dropdown-desc {

    font-size: 0.8rem;

    color: #999;

    transition: color 0.3s ease;

}



.dropdown-item:hover .dropdown-desc {

    color: #ccc;

}



/* Staggered Animation */

.dropdown-item {

    opacity: 0;

    transform: translateY(10px);

    animation: none;

}



.nav-dropdown:hover .dropdown-item {

    animation: dropdownItemFadeIn 0.3s ease forwards;

}



.nav-dropdown:hover .dropdown-item:nth-child(1) { animation-delay: 0.05s; }

.nav-dropdown:hover .dropdown-item:nth-child(2) { animation-delay: 0.1s; }

.nav-dropdown:hover .dropdown-item:nth-child(3) { animation-delay: 0.15s; }

.nav-dropdown:hover .dropdown-item:nth-child(4) { animation-delay: 0.2s; }



@keyframes dropdownItemFadeIn {

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* Dropdown Menu Entrance Effect */

.dropdown-menu::before {

    content: '';

    position: absolute;

    top: -8px;

    left: 50%;

    transform: translateX(-50%);

    width: 0;

    height: 0;

    border-left: 8px solid transparent;

    border-right: 8px solid transparent;

    border-bottom: 8px solid rgba(20, 20, 20, 0.95);

    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.2));

}



/* Enhanced Hover Effects */

.nav-dropdown {

    transition: all 0.3s ease;

}



.nav-dropdown:hover {

    background: rgba(255, 107, 53, 0.05);

    border-radius: 8px;

}



/* Glossy Effect */

.dropdown-menu::after {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 1px;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);

}



/* Mobile Responsiveness */

@media (max-width: 768px) {

    .dropdown-menu {

        position: static;

        transform: none;

        margin-top: 0;

        border-radius: 0;

        background: rgba(30, 30, 30, 0.95);

        border: none;

        border-top: 1px solid rgba(255, 107, 53, 0.3);

        box-shadow: inset 0 1px 0 rgba(255, 107, 53, 0.1);

    }

    

    .nav-dropdown:hover .dropdown-menu {

        transform: none;

    }

    

    .dropdown-menu::before {

        display: none;

    }

    

    .dropdown-item {

        padding: 0.8rem 1rem;

    }

    

    .dropdown-item:hover {

        transform: translateX(0);

    }

}



/* ===== ANIMATIONS ===== */

@keyframes pulse {

    0%, 100% { opacity: 1; }

    50% { opacity: 0.5; }

}



@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {

    .hamburger {

        display: flex;

    }

    

    .nav-menu {

        position: fixed;

        top: 100%;

        left: -100%;

        width: 100%;

        height: calc(100vh - 80px);

        background: rgba(10, 10, 10, 0.98);

        flex-direction: column;

        justify-content: center;

        align-items: center;

        transition: left 0.3s ease;

    }

    

    .nav-menu.active {

        left: 0;

    }

    

    .nav-actions {

        position: fixed;

        top: 20px;

        right: 70px;

        z-index: 1001;

        gap: 0.5rem;

    }

    

    .nav-actions .btn {

        padding: 6px 12px;

        font-size: 0.8rem;

    }

    

    .hero-title {

        font-size: 2.5rem;

    }

    

    .hero-actions {

        flex-direction: column;

        align-items: center;

    }

    

    .features-grid,

    .stats-grid,

    .news-grid {

        grid-template-columns: 1fr;

    }

    

    .news-header {

        text-align: center;

        flex-direction: column;

    }

    

    .section-title {

        font-size: 2rem;

    }

}



@media (max-width: 480px) {

    .container {

        padding: 0 15px;

    }

    

    .hero-title {

        font-size: 2rem;

    }

    

    .hero-subtitle {

        font-size: 1rem;

    }

    

    .server-status {

        padding: 1rem;

    }

    

    .feature-card,

    .stat-card,

    .news-card {

        padding: 1.5rem;

    }

}



/* ===== UTILITY CLASSES ===== */

.text-center { text-align: center; }

.text-left { text-align: left; }

.text-right { text-align: right; }



.mb-1 { margin-bottom: 1rem; }

.mb-2 { margin-bottom: 2rem; }

.mb-3 { margin-bottom: 3rem; }



.mt-1 { margin-top: 1rem; }

.mt-2 { margin-top: 2rem; }

.mt-3 { margin-top: 3rem; }



/* ===== PERFECTLY POSITIONED DROPDOWN ===== */



/* Make the container relative for absolute positioning */

.player-status-dropdown {

    position: relative !important;

    display: inline-block !important;

}



/* The dropdown menu */

#player-dropdown-menu {

    display: none;

    opacity: 1 !important;

    visibility: visible !important;

    position: absolute !important;  /* Absolute to parent container */

    top: 100% !important;           /* Start right at bottom of button */

    right: -23px !important;            /* Align to right edge */

    margin-top: 8px !important;     /* Small gap below button */

    background: #1a1a1a !important;

    border: 1px solid #ff6b35 !important;

    border-radius: 8px !important;

    padding: 8px 4px !important;

    min-width: 220px !important;

    z-index: 999999 !important;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;

}



/* Show when open */

.player-status-dropdown.open #player-dropdown-menu {

    display: block !important;

}



/* If absolute positioning doesn't work, fallback to fixed */

@supports not (position: absolute) {

    #player-dropdown-menu {

        position: fixed !important;

    }

}



/* Menu items styling */

#player-dropdown-menu a,

#player-dropdown-menu button {

    display: block !important;

    opacity: 1 !important;

    visibility: visible !important;

    padding: 10px 16px !important;

    margin: 2px 4px !important;

    color: #ffffff !important;

    background: rgba(255, 255, 255, 0.05) !important;

    border: none !important;

    border-radius: 4px !important;

    text-decoration: none !important;

    cursor: pointer !important;

    width: calc(100% - 8px) !important;

    text-align: left !important;

    font-size: 14px !important;

    line-height: 1.4 !important;

}



#player-dropdown-menu a:hover,

#player-dropdown-menu button:hover {

    background: rgba(255, 107, 53, 0.2) !important;

    color: #ff6b35 !important;

}



/* Divider */

#player-dropdown-menu .dropdown-divider {

    display: block !important;

    height: 1px !important;

    background: #444 !important;

    margin: 6px 4px !important;

    border: none !important;

}



/* Logout button */

#player-dropdown-menu .logout-item {

    color: #ff6b6b !important;

}



/* Ensure header allows overflow for dropdown */

.header,

.navbar,

.nav-actions {

    overflow: visible !important;

}



/* ===== SERVER INFO DETAILED ===== */

.server-info-detailed {

    margin-top: 2rem;

    padding: 1rem;

}



.server-maps-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 1rem;

    max-width: 900px;

    margin: 0 auto;

}



.server-map-card {

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 8px;

    padding: 1rem;

    transition: all 0.3s ease;

}



.server-map-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

}



.server-map-card.online {

    border-color: rgba(0, 255, 136, 0.3);

}



.server-map-card.offline {

    border-color: rgba(255, 68, 68, 0.3);

    opacity: 0.7;

}



.map-header {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    margin-bottom: 0.75rem;

}



.map-status {

    font-size: 0.8rem;

}



.map-name {

    color: #fff;

    font-size: 1.1rem;

    margin: 0;

    flex: 1;

}



.map-info {

    display: flex;

    justify-content: space-between;

    margin-bottom: 0.75rem;

    font-size: 0.9rem;

    color: #ccc;

}



.map-players {

    display: flex;

    align-items: center;

    gap: 0.25rem;

}



.map-connection {

    margin-top: 0.5rem;

}



.btn-connect-small {

    width: 100%;

    padding: 0.5rem;

    background: rgba(255, 107, 53, 0.1);

    border: 1px solid rgba(255, 107, 53, 0.3);

    color: #ff6b35;

    border-radius: 4px;

    cursor: pointer;

    transition: all 0.3s ease;

    font-size: 0.85rem;

}



.btn-connect-small:hover {

    background: rgba(255, 107, 53, 0.2);

    border-color: #ff6b35;

}



/* Responsive */

@media (max-width: 768px) {

    .server-maps-grid {

        grid-template-columns: 1fr;

    }
}