/*
Theme Name: Coinbix Theme
Theme URI: https://coinbix.net
Template: generatepress
Description: Coinbix child theme based on GeneratePress — CoinDesk/Bankless inspired layout
Author: Coinbix Team
Version: 1.0.0
Text Domain: coinbix-theme
*/

/* === Brand Colors === */
:root {
    --cb-navy: #1a2332;
    --cb-gold: #c9a84c;
    --cb-gold-dark: #b8943f;
    --cb-bg: #f8f9fa;
    --cb-card: #ffffff;
    --cb-text: #333333;
    --cb-text-muted: #6c757d;
    --cb-border: #e9ecef;
}

/* === Global === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
    color: var(--cb-text);
    background-color: var(--cb-bg);
}

/* === Header — CoinDesk style === */
.site-header {
    background-color: var(--cb-navy) !important;
    border-bottom: 3px solid var(--cb-gold);
}

.site-header .site-title a,
.site-header .main-navigation a {
    color: #ffffff !important;
}

.site-header .main-navigation a:hover {
    color: var(--cb-gold) !important;
}

/* === Logo === */
.site-logo img,
.custom-logo-link img {
    max-height: 45px;
    width: auto;
}

/* === Content Cards — Bankless style === */
.post-card,
article.post {
    background: var(--cb-card);
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

article.post:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === Entry Title === */
.entry-title a {
    color: var(--cb-navy);
    text-decoration: none;
    font-weight: 700;
}

.entry-title a:hover {
    color: var(--cb-gold);
}

/* === Category Tags === */
.cat-links a {
    background: var(--cb-gold);
    color: var(--cb-navy);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

/* === Breadcrumb === */
.breadcrumb {
    font-size: 13px;
    color: var(--cb-text-muted);
    padding: 12px 0;
    border-bottom: 1px solid var(--cb-border);
    margin-bottom: 24px;
}

/* === Single Post === */
.single .entry-content {
    font-size: 17px;
    line-height: 1.8;
    max-width: 720px;
}

.single .entry-content h2 {
    color: var(--cb-navy);
    margin-top: 2em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--cb-gold);
}

/* === Sidebar — Bankless CTA style === */
.widget {
    background: var(--cb-card);
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    color: var(--cb-navy);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--cb-gold);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* === Footer === */
.site-footer {
    background-color: var(--cb-navy);
    color: #adb5bd;
}

.site-footer a {
    color: var(--cb-gold);
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .single .entry-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    article.post {
        padding: 16px;
    }
}

/* === HOMEPAGE LAYOUT === */

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

/* Hero */
.cb-hero {
    background: var(--cb-navy);
    padding: 80px 20px;
    text-align: center;
}

.cb-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cb-hero h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cb-gold-text {
    color: var(--cb-gold);
}

.cb-hero-sub {
    color: #adb5bd;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Section */
.cb-section {
    padding: 48px 0;
}

.cb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cb-navy);
}

.cb-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--cb-navy);
    margin: 0;
}

.cb-view-all {
    color: var(--cb-gold);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

/* Grid */
.cb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cb-card {
    background: var(--cb-card);
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cb-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cb-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.cb-card-img {
    background: linear-gradient(135deg, var(--cb-navy), #2a3a4e);
    min-height: 250px;
}

.cb-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cb-placeholder {
    background: linear-gradient(135deg, var(--cb-navy) 0%, #2a3a4e 50%, var(--cb-gold) 100%);
    opacity: 0.7;
}

.cb-card-body {
    padding: 20px;
}

.cb-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cb-tag {
    background: var(--cb-gold);
    color: var(--cb-navy);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.cb-date {
    color: var(--cb-text-muted);
    font-size: 13px;
}

.cb-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
    line-height: 1.3;
}

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

.cb-card h3 a:hover {
    color: var(--cb-gold);
}

.cb-card-featured h3 {
    font-size: 26px;
}

.cb-card p {
    color: var(--cb-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cb-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--cb-text-muted);
    padding: 60px 0;
    font-size: 16px;
}

/* Categories Bar */
.cb-categories-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

.cb-cat-pill {
    border: 2px solid var(--cb-navy);
    color: var(--cb-navy);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cb-cat-pill:hover {
    background: var(--cb-navy);
    color: #fff;
}

/* CTA — Bankless style */
.cb-cta {
    background: var(--cb-navy);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0 60px;
}

.cb-cta h2 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 12px;
}

.cb-cta p {
    color: #adb5bd;
    font-size: 16px;
    margin-bottom: 24px;
}

.cb-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cb-btn {
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.cb-btn-primary {
    background: var(--cb-gold);
    color: var(--cb-navy);
}

.cb-btn-primary:hover {
    background: var(--cb-gold-dark);
}

.cb-btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.cb-btn-outline:hover {
    background: #ffffff;
    color: var(--cb-navy);
}

/* Mobile */
@media (max-width: 768px) {
    .cb-hero h1 { font-size: 32px; }
    .cb-hero { padding: 48px 20px; }
    .cb-grid { grid-template-columns: 1fr; }
    .cb-card-featured { grid-template-columns: 1fr; }
    .cb-card-featured h3 { font-size: 20px; }
    .cb-cta { padding: 40px 20px; }
    .cb-cta h2 { font-size: 24px; }
    .cb-cta-buttons { flex-direction: column; align-items: center; }
}
