:root {
    --primary-color: #0ea5e9; /* Trustworthy premium blue */
    --primary-dark: #0284c7;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 6rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #cbd5e1;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, background-color 0.2s;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-block;
    background-color: white;
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background-color: var(--bg-main);
    border-color: var(--text-muted);
}

/* Grids & Cards */
.section { padding: 4rem 0; }
.bg-light { background-color: var(--bg-card); border-top: 1px solid var(--border-color); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; line-height: 1.4; }
.card h3 a { text-decoration: none; color: var(--text-main); }
.card h3 a:hover { color: var(--primary-color); }
.card p { color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.read-more { font-weight: 600; color: var(--primary-color); font-size: 0.9rem; }

/* Article Layout */
.article-layout { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; }
.article-header { text-align: center; margin-bottom: 3rem; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; letter-spacing: -0.5px; }
.article-header .meta { color: var(--text-muted); font-size: 0.9rem; }

.article-content { font-size: 1.1rem; line-height: 1.8; color: #1e293b; }
.article-content h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; color: #0f172a; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
.article-content h3 { font-size: 1.35rem; margin: 2rem 0 1rem; color: #0f172a; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: #0f172a; }

/* Ads Placeholder */
.ad-placeholder {
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Floating Share Buttons */
.share-buttons {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.share-btn:hover { transform: scale(1.1); }
.twitter { background-color: #000; }
.facebook { background-color: #1877F2; }
.linkedin { background-color: #0A66C2; }

/* Author Bio */
.author-bio {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 3rem 0;
}
.author-bio h3 { margin-bottom: 0.5rem; }
.author-bio p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 1rem;
    margin-top: auto;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h3, .footer-col h4 { color: white; margin-bottom: 1rem; }
.footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: white; }

.newsletter-form { margin-top: 1rem; display: flex; }
.newsletter-form input {
    flex-grow: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 1.5rem; font-size: 0.85rem; }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--text-main); }
.cookie-banner button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Search */
.search-page { text-align: center; max-width: 600px; margin: 4rem auto; }
.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--primary-color); }
.search-results { margin-top: 2rem; text-align: left; }
.search-result-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.search-result-item h3 a { color: var(--text-main); text-decoration: none; }
.search-result-item h3 a:hover { color: var(--primary-color); }
.search-result-item p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* Sidebar Layout */
.article-layout-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}
.article-main-column {
    flex: 1 1 65%;
    min-width: 0;
}
.article-sidebar {
    flex: 1 1 30%;
    min-width: 300px;
}
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.sidebar-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-card h4 { font-size: 1.05rem; line-height: 1.4; }
.sidebar-card h4 a { text-decoration: none; color: var(--text-main); transition: color 0.2s; }
.sidebar-card h4 a:hover { color: var(--primary-color); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 2rem;
        transform: none;
    }
    .hero h1 { font-size: 2.5rem; }
    .header-container { flex-direction: column; height: auto; padding: 1rem; }
    .main-nav { margin-top: 1rem; }
    .main-nav a { margin: 0 1rem; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 1rem; }
    .article-layout-with-sidebar { flex-direction: column; }
    .article-sidebar { min-width: 100%; }
}
