/*
Theme Name: Gorila39 Green
Theme URI: https://gorila39.id
Description: Custom WordPress theme untuk Gorila39 tier-2 domains dengan auto-pull latest posts
Version: 1.0
Author: Gorila39
Author URI: https://gorila39.id
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gorila39-green
Domain Path: /languages

This theme, like WordPress, is licensed under the GPL.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d5e3d;
    --secondary-color: #10b981;
    --light-bg: #f5f5f5;
    --dark-text: #333;
    --border-color: #e0e0e0;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
}

.site-title:hover {
    opacity: 0.9;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-navigation a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Main Content Area */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 40px 20px;
}

.main-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--secondary-color);
}

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

.post-card-content {
    padding: 20px;
}

.post-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    padding-right: 0;
}

.widget {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.widget ul {
    list-style: none;
}

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

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

.widget a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
}

.widget a:hover {
    text-decoration: underline;
}

/* Single Post */
.single-post {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.single-post h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 36px;
}

.post-content {
    color: #555;
    line-height: 1.8;
    margin: 30px 0;
    font-size: 16px;
}

.post-content h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 24px;
}

.post-content h3 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-size: 20px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content ul, .post-content ol {
    margin: 15px 0 15px 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
}

.site-footer p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--secondary-color);
}

.pagination a:hover, .pagination .current {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        gap: 15px;
        font-size: 14px;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        padding: 20px;
    }
    
    .single-post h1 {
        font-size: 28px;
    }
}
