:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --muted-color: #6c757d;
}

body {
    background-color: var(--bg-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

/* Cards */
.article-card {
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--primary-color);
}

.card-text {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.badge-loc {
    background-color: #edf2f7;
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Article Detail */
.article-container {
    max-width: 760px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
}

.article-header h1 {
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-image-detail {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* CTA & Share */
.cta-section {
    background-color: #f8fff9;
    border: 1px solid #e0f2e9;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.btn-wa {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
    margin: 5px;
    transition: background-color 0.2s;
    border: none;
}

.btn-wa:hover {
    background-color: #128C7E;
    color: white;
}

.share-buttons .btn-share {
    border-radius: 50px;
    padding: 8px 20px;
    margin: 0 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-fb { background-color: #1877F2; color: white; border: none; }
.btn-fb:hover { background-color: #166fe5; color: white; }

.btn-wa-share { background-color: #25D366; color: white; border: none; }
.btn-wa-share:hover { background-color: #128C7E; color: white; }

/* Login/Gen Form */
.login-card, .card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    border-color: var(--accent-color);
}

.progress {
    height: 10px;
    border-radius: 10px;
}

#log-area {
    border-radius: 10px;
    background: #222;
    color: #0f0;
}
