/* ===== CSS Variables ===== */
:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-green: #4ade80;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
    --accent-pink: #f472b6;
    --accent-orange: #fb923c;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glow-green: rgba(74, 222, 128, 0.3);
    --glow-blue: rgba(96, 165, 250, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.5) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    max-width: 1000px;
    width: 98%;
    height: auto;
    filter: none;
    animation: float 3s ease-in-out infinite;
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.scroll-indicator {
    display: none;
}

/* ===== Links Section ===== */
.links-section {
    background: var(--bg-darker);
    min-height: auto;
    padding: 3rem 1.5rem 4rem;
    position: relative;
}

.links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 100%);
    pointer-events: none;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.title-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* ===== Vote Links ===== */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vote-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: var(--transition-smooth);
}

.vote-link:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--accent-green);
    box-shadow: 
        0 10px 40px -10px var(--glow-green),
        0 0 0 1px var(--accent-green);
}

.vote-link:hover::before {
    opacity: 1;
}

.vote-link:active {
    transform: translateY(0) scale(0.98);
}

/* Link Icons */
.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.link-icon.monicore {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.link-icon.planetmc {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.link-icon.mcua {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.link-icon.allmc {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.vote-link:hover .link-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Link Content */
.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Link Arrow */
.link-arrow {
    color: var(--text-muted);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.vote-link:hover .link-arrow {
    color: var(--accent-green);
    transform: translateX(4px);
}

/* ===== Server Info Badge ===== */
.server-info {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 100px;
    font-weight: 600;
    color: var(--accent-green);
}

.badge-icon {
    font-size: 1.25rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-subtle);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero-logo {
        max-width: 280px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .vote-link {
        padding: 1rem 1.25rem;
    }

    .link-icon {
        width: 42px;
        height: 42px;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-subtitle {
        font-size: 0.8rem;
    }
}

/* ===== Particle Background Effect ===== */
.links-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(74, 222, 128, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(167, 139, 250, 0.02) 0%, transparent 50%);
    pointer-events: none;
}
