/* ================================
   Metro Daily - Static Site Styles
   ================================ */

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #ef4444;
    --accent: #fbbf24;
    --background: #fefefe;
    --surface: #ffffff;
    --text: #171717;
    --text-light: #525252;
    --border: #e5e5e5;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #16a34a;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 0.5rem;
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

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

ul, ol { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================================
   Header
   ================================ */
.site-header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.logo:hover { color: white; }

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

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    opacity: 0.9;
    transition: opacity var(--transition);
}

.main-nav a:hover {
    opacity: 1;
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ================================
   Breaking News Ticker
   ================================ */
.breaking-banner {
    background: #1a1a1a;
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
}

.breaking-banner .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breaking-label {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker {
    overflow: hidden;
    flex: 1;
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 35s linear infinite;
    font-size: 0.875rem;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================================
   Content Grid
   ================================ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 968px) {
    .content-grid { grid-template-columns: 1fr; }
}

/* ================================
   Featured Article
   ================================ */
.featured-article { margin-bottom: 2rem; }

.featured-link {
    display: block;
    color: white;
}

.featured-link:hover { color: white; }

.featured-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.featured-link:hover .featured-image img {
    transform: scale(1.02);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.featured-overlay .category {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    animation: pulse 2s infinite;
}

.featured-overlay h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.featured-overlay .excerpt {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-overlay .meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

.meta .separator { margin: 0 0.5rem; }

/* ================================
   Article Grid
   ================================ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

@media (max-width: 600px) {
    .article-grid { grid-template-columns: 1fr; }
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    border-top: 3px solid var(--danger);
}

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

.article-card a { display: block; }

.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content { padding: 1.25rem; }

.card-content .category {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.card-content .excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content .meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ================================
   Alert Box
   ================================ */
.alert-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid var(--danger);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    overflow: hidden;
}

.alert-header {
    background: var(--danger);
    color: white;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.alert-icon { font-size: 1.25rem; }

.alert-content {
    padding: 1.25rem;
}

.alert-content p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.alert-cta {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    transition: background var(--transition);
}

.alert-cta:hover {
    background: var(--primary-dark);
    color: white;
}

/* ================================
   Latest Section
   ================================ */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
}

.latest-list {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.latest-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

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

.latest-item:hover { background: #fef2f2; }

.latest-image {
    width: 80px;
    height: 80px;
    border-radius: 0.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-content { flex: 1; }

.latest-content h4 {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.latest-content h4 a:hover { color: var(--primary); }

.latest-content .meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ================================
   Sidebar
   ================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

/* Wanted Section */
.wanted {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border: 2px solid var(--danger);
}

.wanted .sidebar-title {
    color: var(--danger);
    border-color: var(--danger);
}

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

.wanted-image {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--danger);
}

.wanted-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.unknown-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    font-size: 0.625rem;
    padding: 0.25rem;
    font-weight: 700;
}

.wanted-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.wanted-charges {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.wanted-reward {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.wanted-tip {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.wanted-tip:hover {
    background: var(--primary-dark);
    color: white;
}

/* Stats */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-number.danger { color: var(--danger); }
.stat-number.warning { color: var(--warning); }

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

/* Newsletter */
.newsletter p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: border-color var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ================================
   Footer
   ================================ */
.site-footer {
    background: #171717;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { padding-right: 2rem; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon { font-size: 1.5rem; }

.footer-logo h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer-links h5 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.social-links a:hover { opacity: 1; }

@media (max-width: 480px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
