/*
Theme Name: Gorila39 Magazine
Theme URI: https://gorila39.id
Description: Magazine-style WordPress theme with left sidebar, featured posts, trending section
Version: 1.0
Author: Gorila39
License: GPL v2 or later
*/

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

:root {
    --primary: #2d1b69;
    --accent: #00d4ff;
    --text: #222;
    --light: #f8f9fa;
    --border: #e0e0e0;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.7;
}

.site-header {
    background: var(--primary);
    color: white;
    padding: 15px 0;
    border-bottom: 3px solid var(--accent);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 25px;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a0f3d 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* Main layout */
.main-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.sidebar {
    order: -1;
}

.content-area {
    order: 1;
}

/* Sidebar widgets */
.widget {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
}

.widget h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget ul {
    list-style: none;
}

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

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

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

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

/* Featured post */
.featured-post {
    background: white;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.featured-content {
    padding: 30px;
}

.featured-label {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.featured-post h2 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.featured-excerpt {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.read-more-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s;
}

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

/* Posts grid */
.posts-list {
    display: grid;
    gap: 25px;
}

.post-item {
    background: white;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.post-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-item h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.4;
}

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

.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.post-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.post-link:hover {
    text-decoration: underline;
}

/* Single post */
.single-content {
    background: white;
    padding: 40px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

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

.single-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.post-content {
    color: #444;
    line-height: 1.9;
    font-size: 16px;
}

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

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

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

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

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

.footer-links {
    margin-top: 15px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 1;
    }
    
    .content-area {
        order: 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .featured-post h2 {
        font-size: 20px;
    }
}
