/* ===== Design System ===== */
:root {
    --color-primary: #E53935;
    --color-primary-dark: #c62828;
    --color-primary-light: #fff5f5;
    --color-accent: #ff7043;
    --color-dark: #1B2838;
    --color-dark-mid: #243447;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fb;
    --color-bg-card: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #5f6b7a;
    --color-text-light: #a0aab4;
    --color-border: #e8ecf1;
    --color-success: #27ae60;
    --color-vote-up: #27ae60;
    --color-vote-down: #e74c3c;
    --shadow-sm: 0 1px 4px rgba(27,40,56,0.06);
    --shadow-md: 0 6px 24px rgba(27,40,56,0.08);
    --shadow-lg: 0 12px 48px rgba(27,40,56,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrapper { padding-top: 0; }

/* ===== Header ===== */
.header-bar-top-container {
    background: linear-gradient(135deg, #1B2838 0%, #0f1c2e 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(27,40,56,0.25);
}
.header-bar-1 {
    background: transparent;
    border-bottom: 3px solid var(--color-primary);
    padding: 10px 0;
}
.site-name { font-weight: 900; font-size: 30px; letter-spacing: -0.5px; color: #fff; }
.site-name-1 { color: #ffffff; }
.site-name-2 { color: var(--color-primary); }
.site-name-t { display: inline-block; position: relative; }
.site-name-t::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 8px solid var(--color-primary);
}
.site-name-mid { display: none; }

/* ===== Topic Nav ===== */
.topnav_topics_row { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0 2px; }
.topnav_topics_row_item {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all var(--transition);
}
.topnav_topics_row_item:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* ===== Search Nav ===== */
.searchformnav .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.searchformnav .form-control::placeholder { color: rgba(255,255,255,0.4); }
.searchformnav .form-control:focus { background: rgba(255,255,255,0.12); border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(229,57,53,0.2); }
.searchformnav .btn-outline-secondary { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.searchformnav .btn-outline-secondary:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.searchformnav .btn-outline-danger { border-color: rgba(229,57,53,0.5); color: var(--color-primary); }
.searchformnav .btn-outline-danger:hover { background: var(--color-primary); color: #fff; }
.searchformnav .btn-success { background: var(--color-primary); border-color: var(--color-primary); }

/* ===== Dropdown ===== */
.custom-dropdown { position: relative; display: inline-block; }
.custom-dropdown-toggle {
    cursor: pointer; padding: 4px 10px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm); color: #fff; position: relative; top: -2px;
}
.custom-dropdown-icon::before { content: '\2261'; font-size: 18px; }
.custom-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 220px; z-index: 1000;
    padding: 6px 0; background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.custom-dropdown:hover .custom-dropdown-menu { display: block; }
.custom-dropdown-item { display: block; padding: 10px 16px; color: var(--color-text); font-size: 14px; }
.custom-dropdown-item:hover { background: var(--color-bg-alt); }

/* ===== Hero ===== */
.hero-section {
    background: linear-gradient(160deg, #1B2838 0%, #1e3a52 35%, #162d45 65%, #1B2838 100%);
    color: #fff;
    padding: 72px 20px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(229,57,53,0.15) 0%, rgba(255,112,67,0.05) 40%, transparent 65%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229,57,53,0.08) 0%, transparent 60%);
    border-radius: 50%;
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.15) translate(20px, -10px); opacity: 1; }
}
.hero-section h1 {
    font-size: 3rem; font-weight: 900; margin-bottom: 14px; position: relative;
    letter-spacing: -1.5px; line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-section p { font-size: 1.15rem; opacity: 0.7; max-width: 520px; margin: 0 auto 32px; position: relative; line-height: 1.65; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 36px; position: relative; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 2.2rem; font-weight: 900; color: #fff; }
.hero-stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.hero-search { max-width: 480px; margin: 0 auto; display: flex; gap: 8px; position: relative; }
.hero-search input {
    flex: 1; padding: 14px 20px; border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md); font-size: 16px;
    background: rgba(255,255,255,0.07); color: #fff; backdrop-filter: blur(10px);
}
.hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(229,57,53,0.15); }
.hero-search button {
    padding: 14px 28px; background: var(--color-primary); color: #fff; border: none;
    border-radius: var(--radius-md); font-weight: 700; font-size: 16px; cursor: pointer;
    transition: all var(--transition); box-shadow: 0 4px 15px rgba(229,57,53,0.3);
}
.hero-search button:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(229,57,53,0.4); }

/* ===== Section Headers ===== */
.section-header {
    font-size: 1.35rem; font-weight: 800; margin: 40px 0 18px; color: var(--color-text);
    display: flex; align-items: center; gap: 14px;
}
.section-header::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    flex-shrink: 0;
}
.section-header::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

/* ===== Cards ===== */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: transparent;
}
.card:hover::after { transform: scaleX(1); }
.card-img-top {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e8ec 100%);
}
.card-body { padding: 16px 18px; flex: 1; }
.card-title {
    font-weight: 700; font-size: 0.95rem; margin-bottom: 6px;
    color: var(--color-text); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-text { color: var(--color-text-muted); font-size: 0.8rem; line-height: 1.45; }

/* ===== Topic Grid ===== */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 16px 0 28px;
}
.topic-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.topic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition);
}
.topic-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229,57,53,0.12);
    text-decoration: none;
}
.topic-card:hover::before { opacity: 1; }
.topic-card h3 { font-size: 0.85rem; font-weight: 700; margin: 0; color: var(--color-text); }

/* ===== List Grid ===== */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 16px 0 28px;
}

/* ===== Spot Items ===== */
.spot-item {
    display: flex; gap: 16px; padding: 20px; margin-bottom: 10px;
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); transition: all var(--transition); align-items: flex-start;
    position: relative;
}
.spot-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity var(--transition);
}
.spot-item:hover { box-shadow: var(--shadow-sm); }
.spot-item:hover::before { opacity: 1; }
.vote-column { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; }
.spot-rank {
    font-size: 18px; font-weight: 900; min-width: 46px; height: 46px; line-height: 46px;
    text-align: center; background: linear-gradient(135deg, var(--color-primary), #d32f2f); color: #fff;
    border-radius: var(--radius-sm); box-shadow: 0 3px 12px rgba(229,57,53,0.3);
}
.spot-image {
    width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0;
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e8ec 100%);
}
.spot-content { flex: 1; min-width: 0; }
.spot-content h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: var(--color-text); }
.spot-content p { color: var(--color-text-muted); font-size: 0.88rem; margin: 0; line-height: 1.55; }

/* ===== Vote Buttons ===== */
.vote-btn {
    background: var(--color-bg-alt); border: 2px solid var(--color-border);
    border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; padding: 7px 10px;
    color: var(--color-text-light); transition: all var(--transition); line-height: 1;
    min-width: 42px; text-align: center; font-weight: 700;
}
.vote-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); transform: scale(1.1); }
.vote-up.active { background: #e8f5e9; color: var(--color-vote-up); border-color: var(--color-vote-up); transform: scale(1.05); }
.vote-down.active { background: #fce4ec; color: var(--color-vote-down); border-color: var(--color-vote-down); transform: scale(1.05); }
.vote-btn.voting { opacity: 0.5; pointer-events: none; }

/* ===== Share Buttons ===== */
.share-buttons { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
    border-radius: 50px; font-size: 13px; font-weight: 600; color: #fff;
    cursor: pointer; border: none; transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: #fff; text-decoration: none; }
.share-btn-x { background: #14171a; }
.share-btn-fb { background: #1877f2; }
.share-btn-reddit { background: #ff4500; }
.share-btn-wa { background: #25d366; }
.share-btn-copy { background: #636e72; }

/* ===== Breadcrumbs ===== */
.bc_container { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 0; }
.bc_arrow { color: var(--color-text-light); font-size: 12px; }
.bc_arrow:before { content: "›"; }
.bc_a { color: var(--color-text-muted); font-size: 13px; font-weight: 500; }
.bc_a:hover { color: var(--color-primary); }

/* ===== Sidebar ===== */
.sidebar-card {
    border-radius: var(--radius-md); background: var(--color-bg-card); padding: 20px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); margin-bottom: 16px;
}
.sidebar-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; color: var(--color-text); }
.sidebar-card ul { padding: 0 0 0 16px; margin: 0; }
.sidebar-card li { margin-bottom: 8px; font-size: 13px; }
.sidebar-card a { color: var(--color-text-muted); font-weight: 500; }
.sidebar-card a:hover { color: var(--color-primary); }

.list-info-card {
    border-radius: var(--radius-md); background: var(--color-bg-card); padding: 20px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); font-size: 13px;
}
.list-info-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.list-info-card div { margin-bottom: 4px; color: var(--color-text-muted); }

/* ===== Related Section ===== */
.related-section {
    border-radius: var(--radius-md); background: var(--color-bg-alt); padding: 28px;
    border: 1px solid var(--color-border); margin: 36px 0;
}
.related-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; color: var(--color-text); }
.related-section ul { padding: 0 0 0 20px; }
.related-section li { margin-bottom: 8px; }
.related-section a { color: var(--color-text); font-weight: 500; }
.related-section a:hover { color: var(--color-primary); }

/* ===== Root Page ===== */
.root-list-row { border-radius: var(--radius-md); padding: 12px; transition: background var(--transition); }
.root-list-row:hover { background: var(--color-bg-alt); }

/* ===== Topic Page ===== */
.topic-hero {
    background: linear-gradient(135deg, #1B2838 0%, #1e3a52 100%);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.topic-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229,57,53,0.12) 0%, transparent 65%);
    border-radius: 50%;
}
.topic-hero-content { display: flex; align-items: center; gap: 24px; position: relative; }
.topic-hero-icon { height: 72px; width: 72px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.8; }
.topic-hero-title { font-size: 2rem; font-weight: 900; color: #fff; margin: 0 0 6px; letter-spacing: -0.5px; }
.topic-hero-subtitle { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin: 0 0 10px; max-width: 500px; line-height: 1.5; }
.topic-hero-stats { display: flex; gap: 20px; }
.topic-hero-stats span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.topic-hero-stats strong { color: #fff; }
.topic-description {
    padding: 20px 24px; border-radius: var(--radius-md); margin-bottom: 24px;
    border: 1px solid var(--color-border); background: var(--color-bg-alt);
    color: var(--color-text-muted); line-height: 1.7; font-size: 0.95rem;
}
.topic-empty {
    text-align: center; padding: 60px 20px; background: var(--color-bg-alt);
    border-radius: var(--radius-lg); margin: 30px 0;
}
.topic-empty h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.topic-empty p { color: var(--color-text-muted); margin-bottom: 20px; }
.category_h1 { font-size: 2.2rem; font-weight: 900; margin: 24px 0 8px; }
.category_h4 { color: var(--color-text-muted); font-weight: 400; font-size: 1rem; }

/* ===== Footer ===== */
footer {
    margin-top: 48px !important; padding: 36px 0;
    background: linear-gradient(135deg, #1B2838 0%, #0f1c2e 100%);
    border-top: 3px solid var(--color-primary);
    color: rgba(255,255,255,0.45); font-size: 13px;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}
footer a { color: rgba(255,255,255,0.65); font-weight: 500; transition: color var(--transition); }
footer a:hover { color: #fff; }

/* ===== Auth ===== */
#_topnav_auth_container { position: relative; display: inline-block; z-index: 1001; }
#_topnav_auth_container_start { color: rgba(255,255,255,0.8); cursor: pointer; }
#_topnav_auth_container_start:hover + #_topnav_auth_container_inner { display: block !important; }
#_topnav_auth_container_inner {
    display: none; position: absolute; top: 24px; right: 0;
    background: #fff; box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px;
    border-radius: var(--radius-md); border: 1px solid var(--color-border);
}
#_topnav_auth_container:hover #_topnav_auth_container_inner { display: block !important; }
._topnav_auth_container_inner_a { display: block; color: var(--color-text); padding: 8px 12px; border-radius: var(--radius-sm); }
._topnav_auth_container_inner_a:hover { background: var(--color-bg-alt); }

/* ===== Misc ===== */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.image-left { order: 1; }
.image-right { order: 2; }
.lists_parent_container { margin-bottom: 8px; }
.lists_parent_container a { text-decoration: none; color: var(--color-text); }
.lists_parent_container a:hover { color: var(--color-primary); }
ol li::marker { font-size: 2em; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .hero-section { padding: 40px 16px 36px; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-stats { gap: 24px; }
    .hero-stat-number { font-size: 1.5rem; }
    .hero-search { flex-direction: column; }
    .topic-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .list-grid { grid-template-columns: 1fr; }
    .spot-item { padding: 14px; gap: 10px; }
    .spot-image { width: 80px; height: 60px; }
    .spot-rank { font-size: 16px; min-width: 36px; height: 36px; line-height: 36px; }
    .spot-content h2 { font-size: 0.95rem; }
    .category_h1 { font-size: 1.6rem; text-align: center; }
    .category_h4 { text-align: center; }
    .topic-hero { padding: 28px 20px; }
    .topic-hero-content { flex-direction: column; text-align: center; }
    .topic-hero-title { font-size: 1.5rem; }
    .topic-hero-stats { justify-content: center; }
    .searchformnav { margin-bottom: 5px; }
    .custom-dropdown { display: none; }
    .site-name { font-size: 24px; }
    .share-buttons { justify-content: center; }
    .vote-btn { min-width: 34px; padding: 4px 8px; }
}

@media (max-width: 500px) {
    .topnav_topics_row { display: none; }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== XP Popup ===== */
.xp-popup {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    animation: xpFloat 2s ease-out forwards;
    pointer-events: none;
    z-index: 100;
    text-align: center;
    line-height: 1.3;
}
@keyframes xpFloat {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-40px); }
}

/* ===== Game-like Animations ===== */

/* Card entrance animation */
.card { animation: cardIn 0.4s ease-out both; }
.list-grid .card:nth-child(1) { animation-delay: 0s; }
.list-grid .card:nth-child(2) { animation-delay: 0.05s; }
.list-grid .card:nth-child(3) { animation-delay: 0.1s; }
.list-grid .card:nth-child(4) { animation-delay: 0.15s; }
.list-grid .card:nth-child(5) { animation-delay: 0.2s; }
.list-grid .card:nth-child(6) { animation-delay: 0.25s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Spot item entrance */
.spot-item { animation: spotIn 0.3s ease-out both; }
@keyframes spotIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Vote button bounce on click */
.vote-btn:active { transform: scale(0.85); }
.vote-up.active { animation: voteUp 0.4s ease; }
.vote-down.active { animation: voteDown 0.4s ease; }
@keyframes voteUp {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.05); }
}
@keyframes voteDown {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.05); }
}

/* Score change flash */
.spot-rank.scored { animation: scoreFlash 0.5s ease; }
@keyframes scoreFlash {
  0% { background: var(--color-primary); }
  50% { background: #ff7043; box-shadow: 0 0 20px rgba(255,112,67,0.5); }
  100% { background: linear-gradient(135deg, var(--color-primary), #d32f2f); }
}

/* Topic card hover pulse */
.topic-card:hover h3 { animation: topicPulse 0.3s ease; }
@keyframes topicPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Hero text shimmer */
.hero-section h1 {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, #ff7043 50%, #fff 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Surprise button wiggle */
.surprise-btn:hover { animation: wiggle 0.5s ease; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* Streak fire animation for gamification */
.streak-fire { display: inline-block; animation: firePulse 1s ease infinite; }
@keyframes firePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Level badge glow */
.level-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), #ff7043);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  animation: badgeGlow 2s ease infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(229,57,53,0.3); }
  50% { box-shadow: 0 0 15px rgba(229,57,53,0.6); }
}

/* Notification bell bounce */
.notif-bell { cursor: pointer; transition: all 0.2s; }
.notif-bell:hover { animation: bellRing 0.5s ease; }
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-3deg); }
}

/* Confetti burst for level ups */
.confetti {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall 3s ease-out forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}