/* ===== GKMania - Vibrant Professional Theme ===== */

:root {
    --gk-primary: #6C3CE1;
    --gk-primary-dark: #5229B6;
    --gk-secondary: #FF6B35;
    --gk-accent: #00D4AA;
    --gk-gold: #FFD23F;
    --gk-pink: #FF4081;
    --gk-blue: #2196F3;
    --gk-navy: #1a1a2e;
    --gk-dark: #16213e;
    --gk-gradient: linear-gradient(135deg, #6C3CE1 0%, #FF6B35 100%);
    --gk-gradient-cool: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gk-gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gk-gradient-fresh: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gk-gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gk-gradient-ocean: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    --gk-body-bg: #f0f2f8;
    --gk-card-shadow: 0 4px 20px rgba(108, 60, 225, 0.08);
    --gk-card-hover-shadow: 0 8px 30px rgba(108, 60, 225, 0.15);
}

html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--gk-body-bg);
    color: #333;
}

main { flex: 1; }

/* ===== Navbar ===== */
.gk-navbar {
    background: var(--gk-navy);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--gk-primary);
    padding: 0.6rem 0;
}

.gk-navbar .navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--gk-gold), var(--gk-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gk-navbar .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.gk-navbar .nav-link:hover,
.gk-navbar .nav-link:focus {
    color: #fff;
    background: rgba(108, 60, 225, 0.3);
}

.gk-nav-btn {
    background: var(--gk-gradient);
    color: #fff !important;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.gk-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.4);
    color: #fff !important;
}

/* ===== Hero Section ===== */
.gk-hero {
    background: linear-gradient(135deg, var(--gk-navy) 0%, #0f3460 50%, var(--gk-primary-dark) 100%);
    border-radius: 24px;
    padding: 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.gk-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108,60,225,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.gk-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,53,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.gk-hero-content { position: relative; z-index: 1; }

.gk-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.gk-hero .gk-highlight {
    background: linear-gradient(135deg, var(--gk-gold), var(--gk-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gk-hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; }

/* ===== Buttons ===== */
.btn-gk-primary {
    background: var(--gk-gradient);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
}

.btn-gk-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 60, 225, 0.45);
    color: #fff;
}

.btn-gk-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.7rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-gk-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-gk-accent {
    background: linear-gradient(135deg, var(--gk-accent), #00b894);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-gk-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.45);
    color: #fff;
}

.btn-gk-gold {
    background: linear-gradient(135deg, var(--gk-gold), #f0c000);
    color: var(--gk-navy);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(255, 210, 63, 0.3);
}

.btn-gk-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 210, 63, 0.5);
    color: var(--gk-navy);
}

/* ===== Stats Counter ===== */
.gk-stats-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gk-stat-item {
    text-align: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 120px;
    flex: 1;
}

.gk-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gk-gold), var(--gk-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gk-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* ===== Feature Cards ===== */
.gk-feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--gk-card-shadow);
    height: 100%;
}

.gk-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gk-card-hover-shadow);
}

.gk-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* ===== Category Tags ===== */
.gk-category-tag {
    background: #fff;
    border-radius: 14px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: all 0.25s ease;
    border: 2px solid #f0f0f0;
    cursor: default;
    height: 100%;
}

.gk-category-tag:hover {
    transform: translateY(-3px);
    border-color: var(--gk-primary);
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.12);
}

.gk-category-tag i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.3rem;
}

.gk-category-tag span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
}

/* ===== CTA Banner ===== */
.gk-cta-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gk-cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== General Cards ===== */
.gk-card {
    background: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: var(--gk-card-shadow);
    overflow: hidden;
    transition: all 0.25s ease;
}

.gk-card:hover {
    box-shadow: var(--gk-card-hover-shadow);
}

.gk-card-header {
    background: var(--gk-gradient);
    color: #fff;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
}

.gk-card-header-dark {
    background: var(--gk-navy);
    color: #fff;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
}

/* ===== Dashboard Stat Cards ===== */
.gk-dash-stat {
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.gk-dash-stat:hover { transform: translateY(-4px); }
.gk-dash-stat.purple { background: var(--gk-gradient-cool); }
.gk-dash-stat.green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.gk-dash-stat.orange { background: linear-gradient(135deg, #f7971e, #ffd200); }

/* ===== Quiz Options ===== */
.option-label {
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 12px !important;
    border: 2px solid #e8e8e8 !important;
    padding: 0.7rem 1rem !important;
}

.option-label:hover {
    background-color: #f0ebff;
    border-color: var(--gk-primary) !important;
}

.option-label.bg-primary { background: #f0ebff !important; border-color: var(--gk-primary) !important; }

.quiz-question .form-check-input {
    border-color: #555;
}

.quiz-question .form-check-input:checked {
    background-color: #444;
    border-color: #444;
}

.quiz-question { scroll-margin-top: 100px; }

.q-nav-btn {
    font-size: 0.8rem;
    padding: 0.25rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}

/* ===== Form Sliders ===== */
.form-range::-webkit-slider-thumb { background: var(--gk-primary); }
.form-range::-moz-range-thumb { background: var(--gk-primary); }

/* ===== Quiz Timer ===== */
.gk-timer {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

/* ===== Tables ===== */
.table th {
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ===== Footer ===== */
.gk-footer {
    background: var(--gk-navy);
    color: rgba(255,255,255,0.7);
    padding: 1.5rem 0;
    border-top: 3px solid var(--gk-primary);
}

/* ===== Misc ===== */
.cursor-pointer { cursor: pointer; }
.badge { font-weight: 500; }
.gk-badge-purple { background: var(--gk-primary); color: #fff; }
.gk-badge-orange { background: var(--gk-secondary); color: #fff; }

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

.gk-animate { animation: fadeInUp 0.5s ease-out forwards; }
.gk-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.gk-animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.gk-animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.gk-animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== Section Titles ===== */
.gk-section-title {
    font-weight: 800;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.gk-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background: var(--gk-gradient);
}

.gk-section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .gk-hero { padding: 2rem 1.5rem; }
    .gk-hero h1 { font-size: 2rem; }
    .gk-stats-row { gap: 0.75rem; }
    .gk-stat-item { min-width: 80px; padding: 0.8rem; }
    .gk-stat-number { font-size: 1.4rem; }
}
