/* Base Styles */
:root {
    --primary-color: #6a5acd;
    --primary-dark: #4b3d8f;
    --secondary-color: #2d3748;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --gray-color: #a0aec0;
    --dark-gray: #4a5568;
    --light-gray: #e2e8f0;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: var(--light-gray);
    overflow-x: hidden;
}

/* Text Colors */
.text-muted {
    color: #94a3b8 !important;
}

.text-light {
    color: var(--light-gray) !important;
}

/* Navbar */
.navbar {
    background-color: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #6a5acd, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    color: var(--light-gray) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1607513746994-51f730a44832?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDEyMCI+PHBhdGggZmlsbD0iIzBmMTcyYSIgZD0iTTAgMGMwIDAgMjAwIDkwIDYwMCA5MHM2MDAtOTAgNjAwLTkwdjEyMEgwVjB6Ii8+PC9zdmc+') repeat-x;
    background-size: 1200px 100px;
    z-index: 1;
}

.mc-character {
    position: relative;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(106, 90, 205, 0.3));
}

.mc-character img {
	border-radius: 50px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Server Status */
.server-status-section {
    position: relative;
    z-index: 2;
}

.server-card {
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.server-card.online {
    border-left: 4px solid var(--success-color);
}

.server-card.offline {
    border-left: 4px solid var(--danger-color);
}

.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
}

/* News Section */
.news-section {
    background-color: #1e293b;
    position: relative;
}

.news-card {
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.about-image {
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
}

/* Voting Section */
.voting-section {
    background-color: #1e293b;
    position: relative;
}

.vote-card {
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.vote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.vote-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.3s ease;
}

.vote-card:hover .vote-logo {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

/* Footer */
.footer-section {
    background-color: #0f172a;
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem 0;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .brand-text {
    font-weight: 700;
    font-size: 2rem;
    background: linear-gradient(90deg, #6a5acd, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.auth-form .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(106, 90, 205, 0.25);
}

.auth-form label {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-top: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-color);
}

.password-toggle:hover {
    color: var(--light-gray);
}

.password-input-group {
    position: relative;
}

/* Utility Classes */
.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    margin: 1rem auto;
}

.bg-dark-blur {
    background-color: rgba(15, 23, 42, 0.8) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Animations */
.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .mc-character {
        margin-top: 2rem;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
}