:root {
    --accent: #e85d26;
    --accent-hover: #d14e1b;
    --text: #1a1a1a;
    --text-secondary: #555;
    --bg: #f4f1ee;
}
* { box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: #fff;
    padding: 4rem 2rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(232, 93, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 93, 38, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-logo {
    height: 72px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}
.hero h1 span {
    color: var(--accent);
}
.hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    margin: 0;
}

/* ---- Content ---- */
.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 3rem 4rem;
    flex: 1;
    width: 100%;
}

/* ---- Section heading ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}
.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.count-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

/* ---- Cards ---- */
a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.talk-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.talk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #f5a623);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.talk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}
.talk-card:hover::before {
    opacity: 1;
}
.talk-card .card-emoji {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}
.talk-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    color: var(--text);
}
.talk-card .desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}
.talk-card .meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #f5f5f5;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
}
.meta-tag.theme-tag {
    background: #fff4ef;
    color: var(--accent);
    font-weight: 600;
}
.talk-card .open-arrow {
    position: absolute;
    bottom: 1.75rem;
    right: 1.75rem;
    color: #ccc;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}
.talk-card:hover .open-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ---- Loading / empty ---- */
#loading { min-height: 250px; }
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}
.spinner-border { color: var(--accent) !important; width: 2rem; height: 2rem; }

/* ---- Footer ---- */
footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 1.25rem 2rem;
    font-size: 0.85rem;
    margin-top: auto;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; }
footer a:hover { color: #fff; text-decoration: underline; }
