/* MPS-Daily - Modern CSS */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #22222e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --border: #2a2a3a;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
}

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

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

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

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

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

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

/* Sources Section */
.sources-section h2,
.how-to h2,
.contribute h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.source-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.source-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-glow);
}

.source-info {
    flex: 1;
}

.source-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.source-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.btn-copy {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-copy.copied {
    background: #6b7280;
}

/* How To Section */
.how-to {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.steps {
    display: flex;
    gap: 20px;
}

.step {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contribute Section */
.contribute {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contribute p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 768px) {
    .stats-bar {
        gap: 20px;
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .source-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .source-actions {
        width: 100%;
    }
    
    .btn-copy {
        flex: 1;
        text-align: center;
    }
}
