:root {
    --primary: #E63946;
    --primary-glow: rgba(230, 57, 70, 0.4);
    --bg: #050505;
    --card: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.7;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 0.8; }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 550px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hidden {
    display: none !important;
}

/* Header / Logo */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeDown 0.8s ease forwards;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.logo-accent {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 400;
}

/* Link List */
.link-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Removed hardcoded staggered animations, now handled by script.js dynamically */

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.link-item:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(230, 57, 70, 0.1);
}

.link-item:hover::before {
    transform: translateX(100%);
}

.link-icon {
    font-size: 1.4rem;
    margin-right: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.link-item:hover .link-icon {
    color: var(--primary);
}

.link-text {
    flex: 1;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary);
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Redirect View */
.redirect-view {
    text-align: center;
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.loader {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(230, 57, 70, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.redirect-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.redirect-desc {
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.redirect-target {
    font-weight: 700;
    color: var(--primary);
}

.cancel-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.05);
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

/* Animations */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
    margin-top: 2rem;
}
