/*!
 * Theme Name: Lightspeed News
 * Theme URI: https://example.com
 * Author: Your Name
 * Author URI: https://example.com
 * Description: Theme berita ringan dengan performa tinggi
 * Version: 1.0.0
 * License: GPL v2 or later
 * Text Domain: lightspeed-news
 * Domain Path: /languages
 * Requires at least: 5.0
 * Requires PHP: 7.4
 */

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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c0392b;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 10px 0;
    background: #2c3e50;
    color: #fff;
    font-size: 0.9rem;
}

.header-main {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.site-description {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0;
}

/* Navigation */
.site-nav {
    flex: 1;
    text-align: right;
}

.menu {
    list-style: none;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: block;
    padding: 10px 15px;
    color: #2c3e50;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.menu-item > a:hover,
.menu-item.current-menu-item > a {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

/* Main Content Area */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin: 20px 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.post-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #ecf0f1;
}

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

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 15px;
}

.post-category {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
}

.post-title a {
    color: #2c3e50;
}

.post-title a:hover {
    color: #e74c3c;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    font-size: 0.85rem;
    color: #95a5a6;
    display: flex;
    gap: 15px;
}

.post-date,
.post-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar */
.primary-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e74c3c;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.widget a {
    color: #2c3e50;
}

.widget a:hover {
    color: #e74c3c;
}

/* Featured Post */
.featured-post {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.featured-thumbnail {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 30px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.site-footer a {
    color: #ecf0f1;
}

.site-footer a:hover {
    color: #e74c3c;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #95a5a6;
}

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

    .menu {
        flex-direction: column;
        gap: 0;
    }

    .menu-item > a {
        padding: 8px 10px;
    }

    .site-nav {
        text-align: left;
    }

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

    .featured-thumbnail {
        height: 250px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .header-main {
        flex-direction: column;
        text-align: center;
    }
}