/* Forum Styles - Matching FIndMCal Design */

:root {
    --primary: #ff9f1c;
    --primary-dark: #e8890a;
    --secondary: #10b981;
    --bg-main: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-elevated: #242424;
    --text-main: #f5f5f5;
    --text-muted: #9ca3af;
    --border: #2d2d2d;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

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

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-badge {
    background: var(--primary);
    color: #000;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Main */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--border);
}

/* Privacy Notice */
.privacy-notice {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.privacy-notice a {
    color: var(--secondary);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
}

/* Posts */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.post-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.post-category {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 15px;
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.post-category.sip {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.post-category.fire {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.post-category.tax {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.post-category.general {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

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

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

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-section p,
.footer-section li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

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

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}