/* ========================================
   NEWSLETT - Vanilla CSS
   Clean Black & White Theme
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-elevated: #171717;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1200px;
    --header-height: 56px;

    --transition: 0.15s ease;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.nav-menu {
    display: none;
    gap: 32px;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 16px;
}

.btn-lg {
    padding: 14px 28px;
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    margin-top: var(--header-height);
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.text-muted {
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 64px;
}

@media (min-width: 480px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

@media (min-width: 640px) {
    .hero-stats {
        gap: 64px;
    }
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 2rem;
    }
}

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

/* ========================================
   Sections
   ======================================== */

section {
    padding: 64px 0;
    border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    section {
        padding: 80px 0;
    }
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

/* ========================================
   Features Grid
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.feature-card {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
    transition: border-color var(--transition);
}

.feature-card:hover {
    border-color: var(--border-default);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

@media (min-width: 640px) {
    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.875rem;
    }
}

/* ========================================
   News Grid
   ======================================== */

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   News Card
   ======================================== */

.news-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.news-card:hover {
    border-color: var(--border-default);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.02);
}

.news-card-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
}

.tag-category {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.tag-trending {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.news-card-content {
    padding: 16px;
}

@media (min-width: 640px) {
    .news-card-content {
        padding: 20px;
    }
}

.news-card-headline {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.news-card-source {
    color: var(--text-secondary);
    font-weight: 500;
}

.news-card-reactions {
    display: flex;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.news-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
}

.action-group {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.action-btn.icon-only {
    width: 32px;
    padding: 0;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.news-card-link:hover {
    color: var(--text-primary);
}

/* ========================================
   Premium CTA
   ======================================== */

.premium-cta {
    border-top: 1px solid var(--border-subtle);
}

.premium-cta-content {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.premium-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.premium-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.premium-cta p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 200px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

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

/* ========================================
   Feed Page Specific
   ======================================== */

.feed-header {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 32px;
}

.feed-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.refresh-btn svg {
    transition: transform 0.3s ease;
}

.refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Categories Bar */
.categories-bar {
    position: sticky;
    top: var(--header-height);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
    z-index: 50;
    overflow-x: auto;
}

.categories-list {
    display: flex;
    gap: 8px;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .categories-list {
        padding: 0;
    }
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.news-card-skeleton .news-card-image {
    background: var(--bg-tertiary);
}

.news-card-skeleton .skeleton-line {
    height: 16px;
    margin-bottom: 8px;
}

.news-card-skeleton .skeleton-line:last-child {
    width: 60%;
}

/* Load More */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Meme Mode Button */
.meme-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.meme-mode-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.meme-mode-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(168, 85, 247, 0.5);
    color: #e879f9;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.live {
    background: #22c55e;
}

.status-dot.demo {
    background: var(--text-muted);
}

.status-dot.meme {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    animation: pulse-meme 1.5s ease-in-out infinite;
}

@keyframes pulse-meme {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* ========================================
   News Modal (Expanded View)
   ======================================== */

.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.news-modal {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.news-modal-overlay.active .news-modal {
    transform: scale(1) translateY(0);
}

.news-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.news-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.news-modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

.news-modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.news-modal-content {
    padding: 24px;
}

@media (min-width: 640px) {
    .news-modal-content {
        padding: 32px;
    }
}

.news-modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.news-modal-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.news-modal-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .news-modal-title {
        font-size: 1.75rem;
    }
}

.news-modal-summary {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.news-modal-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.news-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 480px) {
    .news-modal-actions {
        flex-direction: row;
        justify-content: space-between;
    }
}

.news-modal-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.news-modal-read-more:hover {
    opacity: 0.9;
}

/* Make news card clickable */
.news-card {
    cursor: pointer;
}

.news-card-headline {
    cursor: pointer;
}

.news-card-headline:hover {
    color: var(--text-secondary);
}

/* Body scroll lock when modal open */
body.modal-open {
    overflow: hidden;
}

/* ========================================
   Logo Image
   ======================================== */

.logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

@media (min-width: 640px) {
    .logo-img {
        height: 36px;
    }
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-page {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 64px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .legal-content h1 {
        font-size: 2.5rem;
    }
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

@media (min-width: 640px) {
    .legal-section h2 {
        font-size: 1.375rem;
    }
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.legal-section p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-section ul {
    list-style-type: disc;
}

.legal-section ol {
    list-style-type: decimal;
}

.legal-section li {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legal-section li ul,
.legal-section li ol {
    margin-top: 8px;
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity var(--transition);
}

.legal-section a:hover {
    opacity: 0.8;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Legal Page Tables */
.data-table,
.data-deletion-table {
    margin: 24px 0;
    overflow-x: auto;
}

.data-table table,
.data-deletion-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td,
.data-deletion-table th,
.data-deletion-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.data-table th,
.data-deletion-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.data-table td,
.data-deletion-table td {
    color: var(--text-secondary);
}

.status-deleted {
    color: #ef4444 !important;
    font-weight: 500;
}

.status-anonymized {
    color: #f59e0b !important;
    font-weight: 500;
}

.status-reset {
    color: #6366f1 !important;
    font-weight: 500;
}

/* Contact List */
.contact-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.contact-list li {
    padding: 8px 0;
}

/* Intro Section */
.intro-section {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 40px;
}

.intro-text {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

/* Deletion Methods */
.deletion-methods {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .deletion-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

.deletion-method {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.method-header h3 {
    margin: 0 !important;
    color: var(--text-primary) !important;
}

.steps-list {
    padding-left: 20px !important;
}

.steps-list li {
    margin-bottom: 12px;
}

.method-note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 0.8125rem !important;
    color: var(--text-muted) !important;
}

/* Timeline */
.timeline {
    margin: 24px 0;
    padding-left: 24px;
    border-left: 2px solid var(--border-default);
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -34px;
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Warning List */
.warning-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.warning-list li {
    padding: 8px 0;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

@media (min-width: 640px) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
    transition: border-color var(--transition);
}

.contact-card:hover {
    border-color: var(--border-default);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.contact-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-card a:hover {
    color: var(--text-primary);
}

.response-time {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-section {
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 40px;
}

/* ========================================
   Hands-Free AI Mode (TTS Player)
   ======================================== */

.hands-free-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.hands-free-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.hands-free-btn.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(34, 197, 94, 0.6);
    }
}

/* TTS Player Bar */
.tts-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    padding: 12px 24px;
    display: none;
    align-items: center;
    gap: 16px;
    z-index: 1001;
}

.tts-player.active {
    display: flex;
}

.tts-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tts-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.tts-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tts-btn.primary {
    width: 48px;
    height: 48px;
    background: #8b5cf6;
}

.tts-btn.primary:hover {
    background: #7c3aed;
}

.tts-info {
    flex: 1;
    min-width: 0;
}

.tts-article-info {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.tts-speed {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tts-speed-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
}

.tts-speed-btn.active {
    background: #8b5cf6;
    color: white;
}

.tts-close {
    padding: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
}

/* Premium Prompt Modal */
.premium-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.premium-prompt-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.premium-prompt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.premium-prompt-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.premium-prompt-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.premium-prompt-content p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ========================================
   Sponsored Ads (Native looking)
   ======================================== */

.news-card.sponsored {
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(99, 102, 241, 0.05));
}

.sponsored-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.news-card.sponsored .news-card-source {
    color: #8b5cf6;
}

.sponsored-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.2s;
}

.sponsored-cta:hover {
    transform: translateX(4px);
}

/* Mobile adjustments for TTS */
@media (max-width: 640px) {
    .tts-player {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .tts-info {
        order: -1;
        flex-basis: 100%;
    }

    .hands-free-btn {
        bottom: 80px;
        right: 16px;
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
}

/* ========================================
   Share Dropdown Menu
   ======================================== */

.share-dropdown {
    position: relative;
}

.share-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    margin-bottom: 8px;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.share-icon {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.share-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 6px 0;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   Article Selection Mode
   ======================================== */

/* Selection checkbox container on news cards */
.news-card-selection {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.news-card {
    position: relative;
}

.article-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.article-checkbox-label:hover {
    background: rgba(139, 92, 246, 0.8);
}

.article-checkbox {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-custom svg {
    opacity: 0;
    transition: opacity 0.2s;
}

.checkbox-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

/* Selected state */
.news-card.selected .article-checkbox-label {
    background: rgba(139, 92, 246, 0.9);
}

.news-card.selected .checkbox-custom {
    background: white;
    border-color: white;
}

.news-card.selected .checkbox-custom svg {
    opacity: 1;
    stroke: #8b5cf6;
}

.news-card.selected {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Selection Bar - Fixed at bottom */
.selection-bar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.listen-selected-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    }
}

.listen-selected-btn:hover {
    transform: scale(1.02);
}

.clear-selection-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-selection-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Select Mode Button */
.select-mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #a78bfa;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.select-mode-btn:hover {
    background: rgba(139, 92, 246, 0.25);
}

.select-mode-btn.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    color: white;
}

.selected-count {
    font-size: 0.8125rem;
    color: #a78bfa;
    font-weight: 500;
}

/* Listen Single Button */
.listen-single-btn {
    width: 32px;
    padding: 0 !important;
    font-size: 1rem !important;
    background: rgba(139, 92, 246, 0.2) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.listen-single-btn:hover {
    background: rgba(139, 92, 246, 0.4) !important;
    transform: scale(1.1);
}

/* ========================================
   Responsive Improvements
   ======================================== */

/* Mobile improvements */
@media (max-width: 640px) {
    .feed-header {
        padding-top: calc(var(--header-height) + 16px);
        padding-bottom: 16px;
    }

    .feed-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .select-mode-btn,
    .meme-mode-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .selection-bar {
        bottom: 100px;
        left: 16px;
        right: 16px;
        transform: none;
        flex-direction: column;
    }

    .listen-selected-btn {
        width: 100%;
        justify-content: center;
    }

    .clear-selection-btn {
        width: 100%;
        text-align: center;
    }

    /* Smaller checkbox on mobile */
    .article-checkbox-label {
        padding: 6px 10px;
    }

    .checkbox-custom {
        width: 16px;
        height: 16px;
    }

    .checkbox-text {
        font-size: 0.6875rem;
    }

    /* Better touch targets */
    .reaction-btn {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }

    .action-btn {
        height: 36px;
        padding: 0 14px;
    }

    .action-btn.icon-only {
        width: 36px;
    }

    /* TTS Player mobile */
    .tts-player.active {
        bottom: 0;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .hands-free-btn {
        bottom: 90px;
    }
}

/* Tablet improvements */
@media (min-width: 641px) and (max-width: 1023px) {
    .selection-bar {
        bottom: 90px;
    }
}

/* Smooth transitions for seamless UX */
.news-card,
.selection-bar,
.listen-selected-btn,
.clear-selection-btn,
.article-checkbox-label,
.checkbox-custom {
    transition: all 0.2s ease;
}

/* Hide selection by default, show when needed */
.news-card-selection {
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.2s;
}

.news-card:hover .news-card-selection {
    opacity: 1;
    transform: scale(1);
}

.news-card.selected .news-card-selection {
    opacity: 1;
    transform: scale(1);
}

/* Animated TTS player when playing */
.tts-player.active .tts-btn.primary {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Improved focus states for accessibility */
.article-checkbox-label:focus-within {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

.btn:focus-visible,
.action-btn:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* ========================================
   AI Features Section (Premium)
   ======================================== */

.ai-features-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.ai-features-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.ai-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 480px) {
    .ai-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ai-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.75rem;
}

.ai-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 119, 6, 0.2));
    border-color: #8b5cf6;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.ai-btn .ai-icon {
    font-size: 1.25rem;
}

.ai-input-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ai-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
}

.ai-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.ai-submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.ai-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-response {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    position: relative;
}

.ai-response-content {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.ai-success {
    white-space: pre-wrap;
}

.ai-error {
    color: #ef4444;
}

.ai-remaining {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ai-close-response {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.ai-close-response:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Premium Required Modal */
.premium-prompt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}

.premium-prompt-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
}

.premium-prompt-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.premium-prompt-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.premium-prompt-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.premium-prompt-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.premium-prompt-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ========================================
   AI Features Bar (Feed Page)
   ======================================== */

.ai-features-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
}

.ai-bar-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ai-bar-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-bar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-bar-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 119, 6, 0.2));
    border-color: #8b5cf6;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.ai-bar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-bar-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    color: white;
}

@media (max-width: 768px) {
    .ai-features-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ai-bar-buttons {
        width: 100%;
    }

    .ai-bar-btn {
        flex: 1;
        justify-content: center;
        min-width: 80px;
    }
}

/* ========================================
   Share Menu Styles
   ======================================== */

.share-dropdown {
    position: relative;
}

.share-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-8px);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.share-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.share-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 0;
}

/* Scrollbar for share menu */
.share-menu::-webkit-scrollbar {
    width: 6px;
}

.share-menu::-webkit-scrollbar-track {
    background: transparent;
}

.share-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.share-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Quick Share Popup (For Cards)
   ======================================== */

.quick-share-popup {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: popupFadeIn 0.2s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.quick-share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-share-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(217, 119, 6, 0.3));
    border-color: #8b5cf6;
    transform: translateY(-2px);
}