/**
 * Berlin Stadtgespräch - Styles
 * Based on V4 Light Theme
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-base: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-soft: #F5F5F5;
    --bg-warm: #FFF9F5;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #8A8A8A;
    --text-light: #B0B0B0;
    --border: #EBEBEB;
    --border-dark: #DEDEDE;
    --accent-coral: #FF6B5B;
    --accent-blue: #4A90D9;
    --accent-green: #34C759;
    --accent-purple: #9B6DD9;
    --accent-yellow: #FFB800;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Instrument Serif', Georgia, serif;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

/* Font Awesome Icon Styles */
.fa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-coral { color: var(--accent-coral); }
.icon-blue { color: var(--accent-blue); }
.icon-green { color: var(--accent-green); }
.icon-purple { color: var(--accent-purple); }
.icon-yellow { color: var(--accent-yellow); }
.icon-muted { color: var(--text-muted); }

/* Topic Icons (replacing emojis) */
.topic-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.topic-icon.small {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.topic-icon.large {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, #FF8F7B 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(255, 107, 91, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: 'Instrument Serif', serif;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-coral);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Search */
.search-container {
    flex: 1;
    max-width: 520px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    background: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: 50px;
    transition: all 0.2s;
}

.search-box:focus-within {
    background: var(--bg-white);
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-shortcut {
    padding: 0.25rem 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-soft);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-coral {
    background: linear-gradient(135deg, var(--accent-coral), #FF8F7B);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 91, 0.35);
}

.btn-coral:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 91, 0.4);
}

.btn-outline {
    background: white;
    color: var(--text-primary);
    border: 1.5px solid var(--border-dark);
}

.btn-outline:hover {
    background: var(--bg-soft);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    position: relative;
}

.btn-icon:hover {
    color: var(--text-primary);
}

.btn-icon-left {
    margin-right: 0.25rem;
}

/* ============================================
   USER ELEMENTS
   ============================================ */
.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem;
    padding-right: 0.9rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-pill:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-points {
    font-size: 0.7rem;
    color: var(--accent-coral);
    font-weight: 600;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #FFF5F3 50%, #FFF0ED 100%);
    border: 1px solid rgba(255, 107, 91, 0.15);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,91,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-coral);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-cta .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-link {
    color: var(--accent-coral);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
}

.section-link:hover {
    gap: 0.6rem;
}

/* ============================================
   TOPICS
   ============================================ */
.topics-section {
    margin-bottom: 3rem;
}

.topics-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin: 0 -2rem;
    padding: 0 2rem 1rem;
    scrollbar-width: none;
}

.topics-scroll::-webkit-scrollbar {
    display: none;
}

.topic-card {
    flex-shrink: 0;
    width: 280px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.topic-card-visual {
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.topic-card-visual .emoji-bg {
    font-size: 5rem;
    opacity: 0.2;
    position: absolute;
    transition: transform 0.3s;
}

.topic-card:hover .emoji-bg {
    transform: scale(1.15) rotate(5deg);
}

.topic-card-visual .emoji-main {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.topic-card-content {
    padding: 1.25rem;
}

.topic-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.topic-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.topic-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.topic-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.topic-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Topic Theme Colors */
.topic-card[data-theme="graffiti"] .topic-card-visual { background: linear-gradient(135deg, #FFE5E5 0%, #FFD4E5 100%); }
.topic-card[data-theme="salong"] .topic-card-visual { background: linear-gradient(135deg, #E8EAF6 0%, #C5CAE9 100%); }
.topic-card[data-theme="poller"] .topic-card-visual { background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%); }
.topic-card[data-theme="festivals"] .topic-card-visual { background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%); }
.topic-card[data-theme="verkehr"] .topic-card-visual { background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%); }
.topic-card[data-theme="wohnen"] .topic-card-visual { background: linear-gradient(135deg, #FBE9E7 0%, #FFCCBC 100%); }
.topic-card[data-theme="gastro"] .topic-card-visual { background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%); }
.topic-card[data-theme="nachtleben"] .topic-card-visual { background: linear-gradient(135deg, #EDE7F6 0%, #D1C4E9 100%); }
.topic-card[data-theme="hunde"] .topic-card-visual { background: linear-gradient(135deg, #EFEBE9 0%, #D7CCC8 100%); }
.topic-card[data-theme="kultur"] .topic-card-visual { background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%); }
.topic-card[data-theme="default"] .topic-card-visual { background: linear-gradient(135deg, #F5F5F5 0%, #E0E0E0 100%); }

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
}

/* ============================================
   FEED & POSTS
   ============================================ */
.feed-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-white);
    padding: 0.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: fit-content;
}

.feed-tab {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.feed-tab:hover {
    color: var(--text-primary);
}

.feed-tab.active {
    background: var(--text-primary);
    color: white;
}

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-more {
    margin-top: 1rem;
}

/* Post Card */
.post-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.2s;
}

.post-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.post-topic-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Topic pill colors */
.post-topic-pill[data-theme="graffiti"] { background: #FFE5E5; color: #C44569; }
.post-topic-pill[data-theme="salong"] { background: #E8EAF6; color: #5C6BC0; }
.post-topic-pill[data-theme="poller"] { background: #E8F5E9; color: #43A047; }
.post-topic-pill[data-theme="festivals"] { background: #FFF3E0; color: #EF6C00; }
.post-topic-pill[data-theme="verkehr"] { background: #E3F2FD; color: #1976D2; }
.post-topic-pill[data-theme="wohnen"] { background: #FBE9E7; color: #E64A19; }
.post-topic-pill[data-theme="nachtleben"] { background: #EDE7F6; color: #7E57C2; }
.post-topic-pill[data-theme="hunde"] { background: #EFEBE9; color: #795548; }
.post-topic-pill[data-theme="gastro"] { background: #FFEBEE; color: #D32F2F; }
.post-topic-pill[data-theme="default"] { background: #F5F5F5; color: #616161; }

.post-type-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-type-badge.discussion { background: #E3F2FD; color: #1565C0; }
.post-type-badge.post { background: #E8F5E9; color: #2E7D32; }
.post-type-badge.event { background: #FFF8E1; color: #F57F17; }
.post-type-badge.gallery { background: #FCE4EC; color: #C2185B; }
.post-type-badge.poll { background: #F3E5F5; color: #7B1FA2; }

.post-hot {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-coral);
}

.post-link {
    display: block;
}

.post-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    line-height: 1.35;
    color: var(--text-primary);
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-event-info {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.post-author-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-author-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-time {
    color: var(--text-light);
}

.post-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.post-meta-item:hover {
    background: var(--bg-soft);
}

.upvote-btn.voted,
.upvote-btn[data-voted="true"] {
    color: var(--accent-coral);
    font-weight: 600;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sidebar-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-link {
    font-size: 0.8rem;
    color: var(--accent-coral);
    font-weight: 600;
}

/* Trending */
.trending-topics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.trending-item:hover {
    background: var(--bg-soft);
}

.trending-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-soft);
    border-radius: 6px;
}

.trending-rank.hot {
    background: linear-gradient(135deg, var(--accent-coral), #FF8F7B);
    color: white;
}

.trending-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.trending-info {
    flex: 1;
}

.trending-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trending-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Events */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.event-item:hover {
    background: var(--bg-base);
}

.event-date {
    min-width: 48px;
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.event-day {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-coral);
    line-height: 1;
}

.event-month {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.event-info h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.event-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.leader-item:hover {
    background: var(--bg-soft);
}

.leader-rank {
    width: 22px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.leader-rank.gold { color: #FFB800; }
.leader-rank.silver { color: #94A3B8; }
.leader-rank.bronze { color: #CD7F32; }

.leader-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.leader-info {
    flex: 1;
}

.leader-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.leader-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.leader-points {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-coral);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--accent-coral), #FF8F7B);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: white;
    text-align: center;
}

.cta-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cta-card .btn {
    background: white;
    color: var(--accent-coral);
    width: 100%;
    font-weight: 700;
}

.cta-card .btn:hover {
    background: var(--bg-soft);
}

/* ============================================
   DROPDOWNS
   ============================================ */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 1000;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-soft);
    color: var(--text-primary);
}

.dropdown-item-danger:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.dropdown-header a {
    color: var(--accent-coral);
    font-weight: 500;
}

.dropdown-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notification-dropdown {
    width: 320px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: var(--accent-coral);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin: 0 auto 1rem;
    max-width: 1400px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    font-size: 1.5rem;
}

.footer-logo-text {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--text-primary);
    color: white;
}

.footer-links h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-made {
    color: var(--accent-coral);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .search-container {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .main-container {
        padding: 1.25rem;
    }

    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .topics-scroll {
        margin: 0 -1.25rem;
        padding: 0 1.25rem 1rem;
    }

    .topic-card {
        width: 260px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .btn-ghost {
        display: none;
    }

    .search-shortcut {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .feed-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile Menu Toggle (hidden by default) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topic-card {
    animation: slideUp 0.5s ease-out backwards;
}

.topic-card:nth-child(1) { animation-delay: 0.05s; }
.topic-card:nth-child(2) { animation-delay: 0.1s; }
.topic-card:nth-child(3) { animation-delay: 0.15s; }
.topic-card:nth-child(4) { animation-delay: 0.2s; }
.topic-card:nth-child(5) { animation-delay: 0.25s; }
.topic-card:nth-child(6) { animation-delay: 0.3s; }

.post-card {
    animation: slideUp 0.4s ease-out backwards;
}

.post-card:nth-child(1) { animation-delay: 0.35s; }
.post-card:nth-child(2) { animation-delay: 0.4s; }
.post-card:nth-child(3) { animation-delay: 0.45s; }
.post-card:nth-child(4) { animation-delay: 0.5s; }

/* Utility: Hidden */
[x-cloak] { display: none !important; }

/* ============================================
   AVATARS
   ============================================ */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-xs { width: 24px; height: 24px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 80px; height: 80px; }
.avatar-2xl { width: 120px; height: 120px; }

.topic-icon {
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

.topic-icon-xs { width: 24px; height: 24px; }
.topic-icon-sm { width: 32px; height: 32px; }
.topic-icon-md { width: 40px; height: 40px; }
.topic-icon-lg { width: 56px; height: 56px; }
.topic-icon-xl { width: 80px; height: 80px; }
