:root {
    --primary: #ccff00; /* Neon Green */
    --primary-dark: #99cc00;
    --background: #0f172a; /* Slate 900 */
    --surface: #1e293b; /* Deep Slate - like the screenshot cards */
    --surface-darker: #0f172a;
    --surface-border: rgba(204, 255, 0, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px; /* Wider for 3-column grid */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header-wrapper {
    background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(204, 255, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1rem;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.5));
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.header-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

.stats-widget {
    background: rgba(204, 255, 0, 0.05);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 12px;
    padding: 1rem 2rem;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.05);
}

.stats-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.4);
}

.stats-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

/* Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

/* Post Card */
.post-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.post-card:hover {
    border-color: rgba(204, 255, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(204, 255, 0, 0.08);
}

.post-card.published {
    opacity: 0.5;
    filter: grayscale(0.5);
    border-color: transparent;
}

.post-card.published::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.publish-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.publish-toggle input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.hook-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.subtitle-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.caption-box {
    background: var(--surface-darker);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.caption-text {
    font-size: 0.9rem;
    color: #94a3b8;
    white-space: pre-wrap; /* Keeps line breaks */
    line-height: 1.5;
}

.copy-btn {
    width: 100%;
    margin-top: 1rem;
    background: rgba(204, 255, 0, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.copy-btn:hover {
    background: var(--primary);
    color: var(--background);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--background);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header-main {
        flex-direction: column;
    }
    
    .stats-widget {
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
