/* ============================================
   SHREE SHIVAM — LinkedIn Content Engine
   Premium Dark Theme
   ============================================ */

:root {
    --bg-primary: #06060e;
    --bg-secondary: #0d0d1a;
    --bg-card: #111125;
    --bg-card-hover: #16163a;
    --border: #1e1e4a;
    --border-glow: #6c5ce7;
    --text-primary: #f0f0ff;
    --text-secondary: #8888aa;
    --text-muted: #555577;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --gold: #f0c040;
    --gold-dark: #c49b20;
    --fire: #ff6b35;
    --fire-glow: rgba(255, 107, 53, 0.3);
    --target: #00cec9;
    --target-glow: rgba(0, 206, 201, 0.3);
    --post: #fd79a8;
    --post-glow: rgba(253, 121, 168, 0.3);
    --hash: #0984e3;
    --hash-glow: rgba(9, 132, 227, 0.3);
    --image: #00b894;
    --image-glow: rgba(0, 184, 148, 0.3);
    --tips: #fdcb6e;
    --tips-glow: rgba(253, 203, 110, 0.3);
    --success: #00b894;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 14, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--accent);
    animation-duration: 1.2s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-right-color: var(--gold);
    animation-duration: 1.8s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-bottom-color: var(--fire);
    animation-duration: 1s;
}

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

.loader-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.loader-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--fire));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.loader-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loader-steps .step {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.loader-steps .step.active {
    color: var(--accent-light);
}

.loader-steps .step.done {
    color: var(--success);
}

.loader-steps .step.done i {
    animation: none;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.15);
}

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

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

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #0a0a14;
    letter-spacing: -1px;
    box-shadow: 0 4px 15px rgba(240, 192, 64, 0.3);
}

.brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.date-badge i {
    color: var(--accent-light);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 184, 148, 0.08);
    border: 1px solid rgba(0, 184, 148, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--success);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(162, 155, 254, 0.08));
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.72rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 28px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--accent-light), var(--fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Generate Button */
.generate-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    border: none;
    padding: 18px 44px;
    border-radius: 60px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--accent-glow);
    letter-spacing: 0.5px;
}

.generate-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.generate-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 4px;
}

/* ==================== OUTPUT SECTION ==================== */
.output-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    position: sticky;
    top: 80px;
    z-index: 50;
    background: rgba(6, 6, 14, 0.85);
    backdrop-filter: blur(15px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.08);
}

.action-btn.regenerate {
    border-color: var(--fire);
    color: var(--fire);
}

.action-btn.regenerate:hover {
    background: rgba(255, 107, 53, 0.08);
}

.action-btn.back-btn {
    margin-left: auto;
}

/* Output Cards */
.output-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    animation: cardSlideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes cardSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.output-card:nth-child(2) { animation-delay: 0.1s; }
.output-card:nth-child(3) { animation-delay: 0.2s; }
.output-card:nth-child(4) { animation-delay: 0.3s; }
.output-card:nth-child(5) { animation-delay: 0.4s; }
.output-card:nth-child(6) { animation-delay: 0.5s; }
.output-card:nth-child(7) { animation-delay: 0.6s; }

.output-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.06);
}

.highlight-card {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.06);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.card-icon.fire { background: var(--fire-glow); color: var(--fire); }
.card-icon.target { background: var(--target-glow); color: var(--target); }
.card-icon.post { background: var(--post-glow); color: var(--post); }
.card-icon.hash { background: var(--hash-glow); color: var(--hash); }
.card-icon.image { background: var(--image-glow); color: var(--image); }
.card-icon.tips { background: var(--tips-glow); color: var(--tips); }

.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.copy-btn {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

.card-body {
    padding: 24px;
}

/* Trend Items */
.trend-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.015);
    margin-bottom: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.trend-item:last-child {
    margin-bottom: 0;
}

.trend-item:hover {
    background: rgba(255,255,255,0.03);
    border-color: var(--border);
}

.trend-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
    color: white;
}

.trend-info {
    flex: 1;
}

.trend-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.trend-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trend-scores {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

.score-pill.high {
    border-color: rgba(0, 184, 148, 0.3);
    color: var(--success);
}

.score-pill.mid {
    border-color: rgba(253, 203, 110, 0.3);
    color: var(--tips);
}

/* Selected Topic */
.selected-topic {
    background: linear-gradient(135deg, rgba(0, 206, 201, 0.06), rgba(108, 92, 231, 0.06));
    border: 1px solid rgba(0, 206, 201, 0.2);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.selected-topic h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--target);
    font-family: 'Playfair Display', serif;
}

.selected-topic p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.topic-tags {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.topic-tag {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topic-tag.emotion { background: rgba(253, 121, 168, 0.12); color: var(--post); border: 1px solid rgba(253, 121, 168, 0.25); }
.topic-tag.viral { background: rgba(255, 107, 53, 0.12); color: var(--fire); border: 1px solid rgba(255, 107, 53, 0.25); }
.topic-tag.brand { background: rgba(240, 192, 64, 0.12); color: var(--gold); border: 1px solid rgba(240, 192, 64, 0.25); }

/* Post Content */
.post-body {
    font-size: 0.95rem;
    line-height: 1.85;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-primary);
    font-weight: 400;
}

/* Hashtags */
.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hashtag {
    padding: 8px 18px;
    background: rgba(9, 132, 227, 0.08);
    border: 1px solid rgba(9, 132, 227, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hash);
    cursor: pointer;
    transition: var(--transition);
}

.hashtag:hover {
    background: rgba(9, 132, 227, 0.15);
    border-color: var(--hash);
    transform: translateY(-2px);
}

/* Image Prompt */
.image-prompt-box {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.05), rgba(108, 92, 231, 0.05));
    border: 1px solid rgba(0, 184, 148, 0.15);
    border-radius: var(--radius-sm);
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.overlay-suggestion {
    margin-top: 16px;
    padding: 14px 20px;
    background: rgba(240, 192, 64, 0.06);
    border: 1px solid rgba(240, 192, 64, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.overlay-suggestion i {
    color: var(--gold);
    font-size: 1.1rem;
}

.overlay-suggestion span {
    font-size: 0.88rem;
    color: var(--gold);
    font-weight: 600;
    font-style: italic;
}

/* Tips */
.tips-card {
    border-color: rgba(253, 203, 110, 0.15);
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.tip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tip-item i {
    color: var(--tips);
    margin-top: 3px;
    flex-shrink: 0;
}

.tip-item span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== DETAIL PAGE ==================== */
.detail-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    position: sticky;
    top: 80px;
    z-index: 50;
    background: rgba(6, 6, 14, 0.85);
    backdrop-filter: blur(15px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.detail-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.detail-back-btn:hover {
    background: var(--accent-glow);
    transform: translateX(-3px);
}

.detail-actions {
    display: flex;
    gap: 10px;
}

.detail-hero {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.4s ease forwards;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--fire));
}

.detail-hero .detail-category {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(108, 92, 231, 0.25);
    margin-bottom: 16px;
}

.detail-hero .detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--text-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-hero .detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 700px;
}

.detail-hero .detail-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid;
}

.detail-meta-pill.virality {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.25);
    color: var(--fire);
}

.detail-meta-pill.relatability {
    background: rgba(0, 206, 201, 0.08);
    border-color: rgba(0, 206, 201, 0.25);
    color: var(--target);
}

.detail-meta-pill.brand-fit {
    background: rgba(240, 192, 64, 0.08);
    border-color: rgba(240, 192, 64, 0.25);
    color: var(--gold);
}

.detail-meta-pill.emotion {
    background: rgba(253, 121, 168, 0.08);
    border-color: rgba(253, 121, 168, 0.25);
    color: var(--post);
}

.detail-meta-pill.score {
    background: rgba(108, 92, 231, 0.08);
    border-color: rgba(108, 92, 231, 0.25);
    color: var(--accent-light);
}

.detail-card {
    animation: cardSlideUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.detail-card:nth-child(3) { animation-delay: 0.1s; }
.detail-card:nth-child(4) { animation-delay: 0.2s; }
.detail-card:nth-child(5) { animation-delay: 0.3s; }
.detail-card:nth-child(6) { animation-delay: 0.4s; }

/* Clickable Trend Items */
.trend-item.clickable {
    cursor: pointer;
    position: relative;
}

.trend-item.clickable::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
}

.trend-item.clickable:hover::after {
    opacity: 1;
    color: var(--accent-light);
    right: 12px;
}

.trend-item.clickable:hover {
    background: rgba(108, 92, 231, 0.06);
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateX(4px);
}

.trend-item .click-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.trend-item.clickable:hover .click-hint {
    opacity: 1;
    color: var(--accent-light);
}

/* No-post badge for trends without a template */
.trend-item .no-post-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
    margin-left: 6px;
}

@media (max-width: 768px) {
    .detail-hero .detail-title {
        font-size: 1.3rem;
    }

    .detail-topbar {
        top: 110px;
    }

    .detail-hero {
        padding: 24px 18px;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

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

.footer strong {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.footer-sub {
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 2px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .generate-btn {
        padding: 16px 36px;
        font-size: 0.95rem;
    }

    .quick-actions {
        gap: 8px;
        top: 110px;
    }

    .action-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .card-body {
        padding: 18px;
    }

    .trend-item {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 16px 40px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .output-section {
        padding: 10px 14px 40px;
    }

    .quick-actions {
        flex-wrap: wrap;
    }

    .brand-text h1 {
        font-size: 1.1rem;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}
