/* 
 * TEMPLATE: MAGAZINE
 * Magazine-style design dengan layout grid besar
 */

:root {
    --primary: #e74c3c;
    --secondary: #c0392b;
    --accent: #ecf0f1;
    --text: #2c3e50;
    --bg: #ffffff;
    --card-bg: #ffffff;
}

body {
    background: var(--bg);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
}

/* Header - Magazine Style */
header {
    background: var(--primary);
    color: white;
    padding: 15px 0;
    border-bottom: 5px solid var(--secondary);
}

header h1 {
    font-size: 3em;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    font-family: 'Impact', 'Arial Black', sans-serif;
}

header a {
    color: white;
    background: var(--secondary);
    padding: 12px 25px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    font-size: 0.9em;
}

header a:hover {
    background: #a93226;
    transform: scale(1.05);
}

/* Top Bar dengan tanggal */
.top-bar {
    background: var(--accent);
    padding: 10px 0;
    border-bottom: 1px solid #bdc3c7;
    font-size: 0.85em;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Bar */
.search-bar {
    background: #f8f9fa;
    padding: 25px 0;
    border-bottom: 3px solid var(--primary);
}

.search-form input {
    border: 2px solid #ddd;
    border-radius: 3px;
    padding: 14px 20px;
    font-size: 1em;
    transition: all 0.3s;
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    background: var(--primary);
    border: none;
    border-radius: 3px;
    padding: 14px 35px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.search-form button:hover {
    background: var(--secondary);
}

/* Categories - Magazine Style */
.categories {
    background: #2c3e50;
    padding: 0;
    border-bottom: 3px solid var(--primary);
}

.categories a {
    display: inline-block;
    padding: 15px 25px;
    margin: 0;
    background: transparent;
    color: white;
    border-right: 1px solid #34495e;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.categories a:hover,
.categories a.active {
    background: var(--primary);
}

/* Article Cards - Magazine Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.article-card {
    background: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.12);
    transition: all 0.3s;
    border-left: 5px solid var(--primary);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.2);
    border-left-width: 8px;
}

.article-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.article-content {
    padding: 25px;
}

.article-title a {
    color: var(--text);
    font-weight: 800;
    font-size: 1.4em;
    line-height: 1.3;
    letter-spacing: -0.5px;
    transition: color 0.3s;
    display: block;
    margin-bottom: 15px;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.article-meta {
    color: #999;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.article-meta i {
    color: var(--primary);
    margin-right: 5px;
}

/* Featured Article (First one larger) */
.article-card:first-child {
    grid-column: span 2;
}

.article-card:first-child .article-image {
    height: 400px;
}

.article-card:first-child .article-title a {
    font-size: 2em;
}

/* Pagination */
.pagination {
    margin: 50px 0;
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid #ecf0f1;
}

.pagination a {
    display: inline-block;
    padding: 12px 22px;
    margin: 0 5px;
    background: white;
    color: var(--text);
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
    font-weight: 700;
}

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

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0;
    margin-top: 60px;
    border-top: 5px solid var(--primary);
}

footer a {
    color: var(--primary);
    font-weight: 600;
}

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

/* Sidebar untuk ads/widgets */
.sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-left: 3px solid var(--primary);
}

/* Breaking News Banner */
.breaking-news {
    background: var(--primary);
    color: white;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-card:first-child {
        grid-column: span 1;
    }
    
    .article-card:first-child .article-image {
        height: 220px;
    }
    
    .article-card:first-child .article-title a {
        font-size: 1.4em;
    }
}
