@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --gold: #C5A880;
    --gold-dark: #A88D66;
    --black: #222222;
    --gray-dark: #555555;
    --gray-light: #F7F7F7;
    --border: #E8E8E8;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

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

/* --- Topbar (2016 style) --- */
.topbar {
    background-color: var(--gray-light);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
}

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

.topbar-links a {
    margin-left: 20px;
    color: var(--gray-dark);
}

/* --- Header --- */
.header {
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--black);
    text-transform: uppercase;
}

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

.tagline {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--gray-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* --- Navigation --- */
.main-nav {
    border-bottom: 1px solid var(--border);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: 20px 25px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.nav-list a:hover {
    color: var(--gold);
}

/* --- Hero Section (Editorial Style) --- */
.hero {
    margin: 40px 0;
}

.hero-inner {
    position: relative;
    height: 500px;
    background-image: url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-box {
    background: var(--white);
    padding: 50px 40px;
    max-width: 500px;
    margin-left: 80px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.category-label {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.hero-box h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-box p {
    color: var(--gray-dark);
    margin-bottom: 25px;
    font-size: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--black);
    color: var(--black);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.btn:hover {
    background: var(--black);
    color: var(--white);
}

.btn-gold {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

/* --- Layout Grid --- */
.main-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.content-left {
    flex: 1;
}

.sidebar {
    width: 320px;
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card {
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.article-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 20px;
    background: var(--gray-light);
}

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 12px;
    color: var(--gray-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Sidebar Widgets --- */
.widget {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--gray-light);
    border: 1px solid var(--border);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.trending-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.trending-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-list h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
}

/* --- Footer --- */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 12px;
    color: #666;
}

/* --- Forms (Login/Register) --- */
.auth-wrapper {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.auth-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--gray-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.auth-wrapper .btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* --- Detail Page --- */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin: 20px 0;
    line-height: 1.2;
}

.article-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin-bottom: 40px;
}

.article-content {
    max-width: 700px;
    margin: 0 auto 80px;
    font-size: 18px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 60px;
    float: left;
    line-height: 1;
    padding-right: 15px;
    color: var(--gold);
}

.article-content blockquote {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: italic;
    text-align: center;
    margin: 40px 0;
    padding: 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--gold-dark);
}

/* --- List Page --- */
.list-header {
    padding: 40px 0;
    text-align: center;
    background: var(--gray-light);
    margin-bottom: 40px;
}

.list-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
}

.list-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.list-item-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    font-size: 14px;
}

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