/* ===== Aurora Design System – Common Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --aurora-bg: #050816;
    --aurora-surface: rgba(255,255,255,0.085);
    --aurora-border: rgba(148,163,184,0.28);
    --aurora-border-hover: rgba(183,28,28,0.5);
    --aurora-glow: rgba(183,28,28,0.28);
    --aurora-primary: #b71c1c;
    --aurora-primary-light: #ef9a9a;
    --aurora-secondary: #e53935;
    --aurora-accent: #c62828;
    --aurora-success: #10b981;
    --aurora-warning: #f59e0b;
    --aurora-danger: #ef4444;
    --aurora-text: #f1f5f9;
    --aurora-text-muted: #dbe7ff;
    --aurora-gradient: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
    --aurora-gradient-warm: linear-gradient(135deg, #8e1212 0%, #b71c1c 100%);
    --aurora-radius: 20px;
    --aurora-radius-sm: 12px;
    --aurora-radius-pill: 50px;
    --aurora-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(183,28,28,0.28), transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(198,40,40,0.2), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(142,18,18,0.18), transparent 35%),
        var(--aurora-bg);
    color: var(--aurora-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Glassmorphism Card ===== */
.glass-card {
    background: var(--aurora-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--aurora-border);
    border-radius: var(--aurora-radius);
    transition: var(--aurora-transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(15,23,42,0.28);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--aurora-radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(139,92,246,0), rgba(139,92,246,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--aurora-transition);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--aurora-border-hover);
    box-shadow: 0 20px 60px rgba(183,28,28,0.2), 0 0 40px rgba(198,40,40,0.12);
}

.glass-card:hover::before {
    background: linear-gradient(135deg, rgba(183,28,28,0.55), rgba(229,57,53,0.45));
}

/* ===== Footer ===== */
.footer {
    padding: 20px 0 80px;
    text-align: center;
    border-top: 1px solid var(--aurora-border);
    background: linear-gradient(180deg, transparent 0%, rgba(183,28,28,0.08) 100%);
}

.footer p {
    color: var(--aurora-text-muted);
}

.footer a {
    color: var(--aurora-text-muted);
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: var(--aurora-transition);
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--aurora-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--aurora-primary-light);
}

.footer a:hover::after {
    width: 100%;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
    margin-bottom: 16px;
}

.footer-nav a {
    color: var(--aurora-text-muted);
    text-decoration: none;
    margin: 0 16px;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aurora-primary-light);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--aurora-primary-light);
}

.footer-nav a:hover::after {
    width: 100%;
}

/* ===== Back Button ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    margin-bottom: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(183,28,28,0.24), rgba(229,57,53,0.18));
    border: 1px solid rgba(239,154,154,0.28);
    box-shadow: 0 12px 28px rgba(183,28,28,0.22);
    color: var(--aurora-primary-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, rgba(183,28,28,0.4), rgba(229,57,53,0.3));
    border-color: rgba(239,154,154,0.46);
    color: #fff;
    transform: translateX(-4px);
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* ===== Floating Navigation Widget ===== */
.floating-nav-widget {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--aurora-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--aurora-transition);
}

.nav-btn:hover {
    transform: scale(1.12);
    border-color: var(--aurora-border-hover);
    box-shadow: 0 8px 24px rgba(183,28,28,0.3);
}

.progress-btn {
    background: rgba(30,30,50,0.8);
}

.top-btn {
    background: linear-gradient(135deg, rgba(183,28,28,0.88), rgba(229,57,53,0.82));
}

.menu-btn {
    background: linear-gradient(135deg, rgba(198,40,40,0.86), rgba(239,83,80,0.8));
}

.bottom-btn {
    background: linear-gradient(135deg, rgba(142,18,18,0.86), rgba(183,28,28,0.82));
}

.nav-btn i {
    font-size: 16px;
    color: white;
}

.progress-text {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 113.097;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s;
}

/* ===== 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(-8px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(183,28,28,0.25); }
    50% { box-shadow: 0 0 40px rgba(183,28,28,0.45); }
}

.animate-in {
    animation: fadeInUp 0.6s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .floating-nav-widget {
        bottom: 16px;
        right: 12px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}
