/* The Obvious - Shared Styles */

/* Stock Ticker */
.ticker-wrap {
    background: #1a1a2e;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.ticker {
    display: inline-flex;
    animation: ticker 60s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    color: #fff;
}

.ticker-label {
    font-weight: 600;
    opacity: 0.7;
}

.ticker-value {
    font-weight: 500;
}

.ticker-change {
    font-weight: 600;
    font-size: 0.75rem;
}

.ticker-change.positive {
    color: #22c55e;
}

.ticker-change.negative {
    color: #ef4444;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

:root {
    --primary: #1a1a2e;
    --accent: #e63946;
    --secondary: #457b9d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --border: #dee2e6;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: var(--primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.subscribe-btn {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.subscribe-btn:hover {
    background: #c1121f;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 1;
}

/* Navigation */
.nav {
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.nav a {
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-gray);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav a:hover, .nav a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* Main Content */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Page Header */
.section-page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.section-page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-page-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Featured Single */
.featured-single {
    margin-bottom: 3rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-article img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-content .category {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-top: 0.5rem;
    line-height: 1.2;
}

.featured-content h2 a:hover {
    color: var(--accent);
}

.featured-content .excerpt {
    margin-top: 1rem;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.meta .author {
    font-weight: 600;
    color: var(--primary);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.section-header a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.section-header a:hover {
    color: var(--accent);
}

/* Article Grid - 4 columns */
.article-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Article Card */
.article-card {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.article-card .category {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 1rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.article-card h3 a:hover {
    color: var(--accent);
}

.article-card .meta {
    margin-top: 0.75rem;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.load-more-btn {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.load-more-btn:hover {
    background: var(--accent);
}

/* Latest Page List */
.latest-page-list {
    display: flex;
    flex-direction: column;
}

.latest-page-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.latest-page-item:first-child {
    padding-top: 0;
}

.latest-page-item img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.latest-page-content .category {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.latest-page-content h2 {
    font-size: 1.3rem;
    margin-top: 0.3rem;
    line-height: 1.4;
}

.latest-page-content h2 a:hover {
    color: var(--accent);
}

.latest-page-content p {
    color: var(--gray);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Static Page */
.static-page {
    max-width: 800px;
    margin: 0 auto;
}

.static-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-hero img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.about-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.about-section a {
    color: var(--accent);
}

.about-section a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-page {
    max-width: 1000px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-section {
    margin-bottom: 2rem;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-section p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-section a {
    color: var(--accent);
}

.contact-section a:hover {
    text-decoration: underline;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #c1121f;
}

/* Footer */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer ul a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Legal Pages */
.legal-page .last-updated {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-section a {
    color: var(--accent);
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
    .article-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-article img {
        height: 300px;
    }
    
    .article-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        padding: 0.75rem 1rem;
    }
    
    .section-page-header h1 {
        font-size: 2rem;
    }
    
    .article-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .latest-page-item {
        flex-direction: column;
    }
    
    .latest-page-item img {
        width: 100%;
        height: 200px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
