:root {
    --primary: #C0392B;
    --primary-dark: #922B21;
    --accent: #E74C3C;
    --dark: #1A1A2E;
    --grey: #7F8C8D;
    --light-grey: #ECF0F1;
    --white: #FFFFFF;
    --success: #27AE60;
    --warning: #F39C12;
    --error: #E74C3C;
    --info: #2980B9;
    --bg: #F8F9FA;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
body { background: var(--bg); color: var(--dark); line-height: 1.7; font-size: 16px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.align-center { align-items: center; }
.gap-15 { gap: 15px; }
.flex-1 { flex: 1; }
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; }
.mb-5 { margin-bottom: 5px; } .mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; }
.p-15 { padding: 15px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-grey { color: var(--grey); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--white); padding: 10px 20px; border-radius: 6px; border: 1px solid var(--primary); cursor: pointer; font-weight: bold; transition: all 0.2s; }
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 5px 10px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Header & Nav */
.main-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.top-bar { background: var(--primary); padding: 10px 0; color: var(--white); }
.top-bar a { color: var(--white); }
.logo img { max-height: 40px; }
.logo h1 { font-size: 24px; margin: 0; }
.auth-buttons { display: flex; align-items: center; gap: 10px; }
.auth-buttons .btn { border-color: var(--white); }
.auth-buttons .btn-outline { color: var(--white); }
.auth-buttons .btn-outline:hover { background: var(--white); color: var(--primary); }
.user-greeting { margin-right: 10px; font-weight: bold; }
.hamburger-menu { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

.main-nav { padding: 15px 0; border-bottom: 1px solid #eee; }
.main-nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 20px; flex-wrap: wrap; }
.nav-links a { font-weight: 600; color: var(--dark); padding: 5px 0; }
.nav-links a:hover { color: var(--primary); border-bottom: 2px solid var(--primary); }
.search-form { display: flex; align-items: center; background: #eee; border-radius: 20px; overflow: hidden; padding: 2px 10px; }
.search-form input { border: none; background: transparent; padding: 5px; outline: none; width: 150px; }
.search-form button { border: none; background: transparent; cursor: pointer; }

/* Ticker */
.breaking-news-ticker { display: flex; background: var(--accent); color: var(--white); overflow: hidden; height: 40px; }
.ticker-label { padding: 0 15px; font-weight: bold; line-height: 40px; background: var(--primary-dark); white-space: nowrap; z-index: 10; position: relative; }
.ticker-content { flex: 1; overflow: hidden; position: relative; }
.marquee { display: flex; line-height: 40px; white-space: nowrap; animation: marquee 30s linear infinite; }
.ticker-item { padding-right: 50px; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Cards & Grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 20px; transition: transform 0.2s, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card-header { padding: 15px 20px; border-bottom: 1px solid #eee; background: #fafafa; }
.card-header h2, .card-header h3 { margin: 0; }
.card-body { padding: 20px; }

.article-card { display: flex; flex-direction: column; height: 100%; }
.article-img { position: relative; height: 200px; width: 100%; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--white); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; }
.article-content { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.article-title { font-size: 18px; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey); margin-bottom: 15px; margin-top: auto; }
.reporter-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* Article Details */
.article-detail-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 8px; margin: 20px 0; }
.article-tags a { display: inline-block; background: #eee; padding: 5px 12px; border-radius: 20px; font-size: 13px; margin-right: 5px; margin-bottom: 5px; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; }
.form-control:focus { border-color: var(--primary); outline: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Alerts */
.alert { padding: 12px 15px; border-radius: 6px; margin-bottom: 20px; font-weight: bold; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-warning { background: #fff3cd; color: #856404; }
.badge { padding: 3px 8px; border-radius: 12px; font-size: 12px; color: white; }
.badge-pending { background: var(--warning); }
.badge-approved, .badge-active { background: var(--success); }
.badge-rejected, .badge-expired, .badge-inactive { background: var(--error); }
.badge-draft { background: var(--grey); }

/* Share Buttons */
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.share-btn { border-radius: 6px; padding: 10px 18px; color: white; font-weight: bold; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none; }
.share-btn:hover { filter: brightness(0.9); }
.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088CC; }
.share-twitter { background: #1DA1F2; }
.share-facebook { background: #1877F2; }
.share-copy { background: var(--grey); }
.share-download { background: var(--primary); }

/* Footer */
.main-footer { background: var(--dark); color: var(--white); padding: 40px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-about h3 { margin-bottom: 10px; }
.social-links a { display: inline-block; background: rgba(255,255,255,0.1); padding: 8px; border-radius: 4px; margin-right: 10px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 14px; }

/* Auth */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 70vh; }
.auth-box { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.auth-box-large { max-width: 600px; }
.auth-box h2 { text-align: center; margin-bottom: 20px; }
.auth-link { text-align: center; margin-top: 15px; font-size: 14px; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hamburger-menu { display: block; }
    .main-nav { display: none; }
    .main-nav.active { display: block; }
    .nav-links { flex-direction: column; gap: 10px; width: 100%; }
    .search-form { margin-top: 10px; width: 100%; }
    .search-form input { width: 100%; }
    .top-bar .auth-buttons .btn { display: none; }
}
