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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #141420;
    --bg-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --accent-high: #ff4757;
    --accent-moderate: #ffa502;
    --accent-low: #3742fa;
    --accent-glow: #5f27cd;
    --border: #2a2a3e;
}

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

/* Header */
header {
    background: rgba(20, 20, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "";
    -webkit-text-fill-color: initial;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--text-primary);
}

.install-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Live Status Bar */
.status-bar {
    background: var(--bg-secondary);
    padding: 1rem;
    margin-top: 4rem;
    border-bottom: 1px solid var(--border);
}

.status-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.status-item {
    color: var(--text-secondary);
}

.status-item strong {
    color: var(--text-primary);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Event Cards */
.events-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-high);
    transition: width 0.3s;
}

.event-card.moderate::before {
    background: var(--accent-moderate);
}

.event-card.monitoring::before {
    background: var(--accent-low);
}

.event-card.ai-deception::before {
    background: linear-gradient(180deg, #ff00ff 0%, #00ffff 100%);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-glow);
}

.event-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.event-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-score {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-high);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.moderate .event-score {
    background: rgba(255, 165, 2, 0.2);
    color: var(--accent-moderate);
}

.monitoring .event-score {
    background: rgba(55, 66, 250, 0.2);
    color: var(--accent-low);
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.event-summary {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Prophecy Pulse */
.pulse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.pulse-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.pulse-card:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
}

.pulse-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pulse-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Trending */
.trending {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
    border-bottom: none;
}

.trend-up {
    color: #00ff00;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .status-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

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

/* Additional styles for better visibility */
html {
    background: var(--bg-primary);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--accent-glow);
    animation: spin 1s ease-in-out infinite;
}

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

/* Ensure proper styling cascade */
.event-card.moderate .event-score {
    background: rgba(255, 165, 2, 0.2);
    color: var(--accent-moderate);
}

.event-card.monitoring .event-score {
    background: rgba(55, 66, 250, 0.2);
    color: var(--accent-low);
}

/* Add this to your web/static/web/css/style.css */

/* Event Detail Styles */
.event-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #9f7aea;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #b794f4;
}

/* Main Article */
.event-detail {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

/* Event Header */
.event-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-geopolitical { background: linear-gradient(135deg, #f59e0b, #dc2626); }
.badge-natural { background: linear-gradient(135deg, #10b981, #059669); }
.badge-technology { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.badge-spiritual { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.badge-economic { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.badge-ai_deception { background: linear-gradient(135deg, #dc2626, #7c3aed); }

.event-title {
    font-size: 2rem;  /* Reduced from 2.5rem */
    font-weight: 700;
    line-height: 1.3;  /* Better line height */
    margin: 1rem 0;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* AI Deception Alert */
.ai-deception-alert {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(124, 58, 237, 0.2));
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: #dc2626; }
    50% { border-color: #f87171; }
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.alert-icon {
    font-size: 2rem;
    animation: shake 0.5s ease-in-out infinite alternate;
}

@keyframes shake {
    0% { transform: translateX(0); }
    100% { transform: translateX(3px); }
}

.biblical-warning {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.biblical-warning .verse {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.biblical-warning cite {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    color: #fbbf24;
}

/* Relevance Score Display */
.relevance-display {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
    flex-wrap: wrap;  /* Allow wrapping on smaller screens */
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    background: conic-gradient(from 0deg, #667eea, #764ba2);
    padding: 3px;
    flex-shrink: 0;  /* Prevent shrinking */
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: #0f172a;
    border-radius: 50%;
    z-index: 0;
}

.score-number {
    font-size: 2rem;
    z-index: 1;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 1;
}

.score-breakdown {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content Sections */
.event-summary {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.event-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #cbd5e1;
    margin: 2rem 0;
}

/* Hide all images in event content for copyright reasons */
.event-content img {
    display: none;
}

/* Style links in event content */
.event-content a {
    color: #a78bfa;
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    transition: all 0.2s;
}

.event-content a:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

/* Source Info */
.source-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.source-info h3 {
    color: #e0e7ff;
    margin-bottom: 1rem;
}

.external-link {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Keywords Section */
.keywords-section {
    margin: 2rem 0;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.keyword-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    font-size: 0.9rem;
}

.keyword-tag .weight {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 0.3rem;
}

/* Scripture Section */
.scripture-section {
    margin: 2rem 0;
}

.scripture-item {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.scripture-item h4 {
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.scripture-item blockquote {
    font-style: italic;
    padding-left: 1rem;
    border-left: 3px solid #6366f1;
    margin: 1rem 0;
}

/* Share Section */
.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.share-twitter { background: #1DA1F2; }
.share-facebook { background: #4267B2; }
.share-email { background: #667eea; }
.share-copy { background: #475569; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.share-count {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Related Events Sidebar */
.related-events {
    position: sticky;
    top: 2rem;
}

.related-events h3 {
    color: #e0e7ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.related-event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.related-event-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-4px);
}

.related-event-card a {
    text-decoration: none;
    color: inherit;
}

.related-event-card h4 {
    color: #c7d2fe;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-event-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 1024px) {  /* Changed from 768px to 1024px */
    .event-detail-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .event-detail {
        padding: 1.5rem;
    }
    
    .event-title {
        font-size: 1.8rem;
    }
    
    .relevance-display {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
    
    .related-events {
        position: static;
        margin-top: 2rem;
    }
}


