/*
Theme Name: Cari Fakta
Description: Theme khusus untuk website debunking hoax Indonesia
Version: 1.0
Author: Cari Fakta Team
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo h1 {
    color: #dc3545;
    font-size: 2rem;
    font-weight: 700;
}

.site-tagline {
    color: #666;
    font-size: 0.9rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #dc3545;
}

/* Breaking News Ticker */
.breaking-news {
    background: #dc3545;
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
}

.ticker-content {
    white-space: nowrap;
    animation: scroll 30s linear infinite;
}

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

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Article Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    text-decoration: none;
    color: #333;
}

.article-title a:hover {
    color: #dc3545;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.status-hoax {
    background: #dc3545;
    color: white;
}

.status-fact {
    background: #28a745;
    color: white;
}

.status-misleading {
    background: #ffc107;
    color: #333;
}

.status-partial {
    background: #17a2b8;
    color: white;
}

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

.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #dc3545, #e73c7e);
    color: white;
    text-align: center;
}

.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    margin: 1rem 0;
}

.newsletter-widget button {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Trending List */
.trending-list {
    list-style: none;
}

.trending-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

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

/* Single Article */
.single-article {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* Social Share */
.social-share {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.share-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: scale(1.05);
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }

/* Footer */
.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .share-buttons {
        flex-wrap: wrap;
    }
}

/* Ad Spaces */
.ad-banner {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 2rem;
    text-align: center;
    color: #666;
    margin: 2rem 0;
    border-radius: 8px;
}

.ad-300x250 {
    width: 300px;
    height: 250px;
    margin: 0 auto;
}