
/* Premium Tech News Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Playfair+Display:wght@700&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #d1d5db;
    --heading-color: #ffffff;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --accent-color: #10b981;
    --card-bg: #111111;
    --border-color: #222222;
    --badge-bg: rgba(59, 130, 246, 0.15);
    --badge-color: #60a5fa;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #000000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: var(--heading-color);
    margin: 0;
    font-size: 2em;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--heading-color);
    font-family: 'Inter', sans-serif;
    margin-top: 0;
}

.category-badge {
    display: inline-block;
    background-color: var(--badge-bg);
    color: var(--badge-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Hero Section (Magazine Layout) */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: flex-end;
}

.hero-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.hero-main:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    width: 100%;
}

.hero-content h2 {
    font-size: 2.5em;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content h2 a {
    color: #fff;
    text-decoration: none;
}

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

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

.section-title {
    font-size: 1.5em;
    font-weight: 800;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trending-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    align-items: center;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.trending-item:hover {
    border-color: var(--primary-color);
}

.trending-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.trending-item h4 {
    font-size: 1em;
    margin-bottom: 5px;
    line-height: 1.4;
}

.trending-item h4 a {
    color: var(--heading-color);
    text-decoration: none;
}

.trending-item h4 a:hover {
    color: var(--primary-color);
}

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

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #333;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 10px;
    font-size: 1.3em;
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-content h3 a {
    color: var(--heading-color);
    text-decoration: none;
}

.card-content h3 a:hover {
    color: var(--primary-color);
}

.article-meta {
    font-size: 0.85em;
    color: #888;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Article Page */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}
.article-header h1 {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}
.article-meta-large {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #888;
    margin-bottom: 30px;
}
.article-header img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    max-height: 600px;
    object-fit: cover;
    width: 100%;
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15em;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 25px;
    color: #d1d5db;
}
.article-content p:first-of-type {
    font-size: 1.25em;
    color: #fff;
    font-weight: 300;
}
.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    margin-top: 60px;
    margin-bottom: 20px;
}
.article-content h3 {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 15px;
}
.inline-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin: 40px 0;
}
ul, ol {
    margin-bottom: 40px;
    padding-left: 20px;
}
li {
    margin-bottom: 15px;
}
.newsletter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 60px 20px;
    text-align: center;
    border-radius: 16px;
    margin: 80px 0;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.newsletter-section h2 { font-size: 2.2em; margin-bottom: 15px; }
.newsletter-section p { color: #94a3b8; margin-bottom: 30px; font-size: 1.1em; }
.subscribe-form { display: flex; max-width: 500px; margin: 0 auto; gap: 10px; }
.subscribe-form input { flex-grow: 1; padding: 15px 20px; border-radius: 30px; border: none; outline: none; font-size: 1em; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.subscribe-form input::placeholder { color: #cbd5e1; }
.subscribe-form button { padding: 15px 30px; border-radius: 30px; border: none; background: var(--primary-color); color: #fff; font-weight: 800; cursor: pointer; transition: background 0.3s; }
.subscribe-form button:hover { background: var(--primary-hover); }

.footer {
    background-color: #020202;
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 20px 20px;
    margin-top: 60px;
}
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { font-size: 1.2em; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-color); }
.footer-col p { color: #888; line-height: 1.6; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: #555; font-size: 0.9em; }

/* Detik Style Layout */
.detik-layout { display: flex; gap: 40px; margin-top: 60px; }
.detik-main { flex: 2; }
.detik-sidebar { flex: 1; }

.list-article { display: flex; gap: 20px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--border-color); }
.list-article img { width: 250px; height: 160px; object-fit: cover; border-radius: 8px; }
.list-article-content { flex: 1; display: flex; flex-direction: column; }
.list-article-content h3 { font-size: 1.4em; margin-bottom: 15px; line-height: 1.4; }
.list-article-content h3 a { color: var(--heading-color); text-decoration: none; }
.list-article-content h3 a:hover { color: var(--primary-color); }

.category-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin: 40px 0 20px 0; }
.category-header h2 { color: var(--primary-color); font-size: 1.4em; margin: 0; text-transform: uppercase; }
.category-header a { color: #888; text-decoration: none; font-size: 0.9em; }
.category-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.category-card h3 { font-size: 1em; line-height: 1.4; }
.category-card h3 a { color: var(--heading-color); text-decoration: none; }

.rek-header { color: var(--primary-color); font-size: 1.2em; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; text-transform: uppercase; font-weight: 800;}
.rek-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.rek-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.rek-card .cat { color: var(--primary-color); font-size: 0.75em; text-transform: uppercase; margin-bottom: 5px; font-weight: bold; display: block; }
.rek-card h4 { font-size: 0.9em; line-height: 1.4; margin: 0; }
.rek-card h4 a { color: var(--heading-color); text-decoration: none; }

@media (max-width: 900px) {
    .detik-layout { flex-direction: column; }
    .list-article { flex-direction: column; }
    .list-article img { width: 100%; height: auto; }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
    .subscribe-form { flex-direction: column; }
}

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    .hero-main {
        height: 400px;
    }
    .article-header h1 {
        font-size: 2.5em;
    }
}
