/*!
Theme Name: Modern News
Theme URI: https://example.com
Author: News Team
Author URI: https://example.com
Description: Tema berita profesional dengan desain modern dan responsif
Version: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-news
Domain Path: /languages
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #CA1200;
    --secondary-color: #333333;
    --tertiary-color: #666666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --text-dark: #222222;
    --text-light: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-dark);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1em;
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============ HEADER ============ */
.site-header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    padding: 1.5rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.site-title a {
    color: inherit;
}

.site-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Navigation */
.main-navigation {
    background-color: var(--secondary-color);
    padding: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-color: var(--primary-color);
}

/* ============ MAIN CONTENT ============ */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    min-height: calc(100vh - 300px);
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-article {
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.featured-article-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.featured-article-image img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
}

.featured-article-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.featured-article-excerpt {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    transition: var(--transition);
}

.read-more-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: var(--light-gray);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.article-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.article-card-title a {
    color: inherit;
}

.article-card-title a:hover {
    color: var(--primary-color);
}

.article-card-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.article-card-excerpt {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

/* ============ SINGLE POST ============ */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-image {
    margin: 2rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content img {
    margin: 2rem 0;
    border-radius: 4px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* ============ FOOTER ============ */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    margin-top: 4rem;
    padding: 3rem 20px 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: #cccccc;
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #cccccc;
}

/* ============ SIDEBAR ============ */
.sidebar {
    flex: 1;
}

.widget {
    background-color: var(--light-gray);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul a {
    color: var(--text-dark);
}

.widget ul a:hover {
    color: var(--primary-color);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-article-image {
        order: -1;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .site-content {
        padding: 1.5rem 15px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-article {
        padding: 1.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .featured-article-content h2 {
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.25rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card-image {
        height: 150px;
    }

    .post-content {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .navigation {
        display: none;
    }
}
