/*
Theme Name: Sardinha S/A - Humor Financeiro
Theme URI: https://sardinhasa.org
Author: Sardinha Capital & Faria Lima Bets
Author URI: https://sardinhasa.org
Description: O tema oficial de humor financeiro, sátira do mercado de capitais e filosofia do loss consciente. Compre no topo, venda no fundo e finja que é holding de longo prazo.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sardinha-invest
Tags: blog, news, humor, finance, responsive, grid-layout, two-columns
*/

:root {
    --sard-bg: #f8fafc;
    --sard-card: #ffffff;
    --sard-border: #e2e8f0;
    --sard-text: #0f172a;
    --sard-muted: #64748b;
    --sard-blue: #0284c7;
    --sard-blue-dark: #0369a1;
    --sard-red: #ef4444;
    --sard-green: #10b981;
    --sard-yellow: #f59e0b;
    --sard-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--sard-bg);
    color: var(--sard-text);
    font-family: var(--sard-font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--sard-blue);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--sard-blue-dark);
}

/* Top Breaking Banner */
.sard-top-bar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 12px;
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sard-top-breaking {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
}
.sard-badge-urgent {
    background: var(--sard-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Ticker Tape */
.sard-ticker-wrap {
    background: #0284c7;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    padding: 7px 0;
    border-bottom: 2px solid #0369a1;
}
.sard-ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: tickerAnim 35s linear infinite;
}
@keyframes tickerAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
.sard-ticker-item {
    display: inline-block;
    margin-right: 28px;
}
.sard-down { color: #fca5a5; font-weight: 800; }
.sard-up { color: #86efac; font-weight: 800; }

/* Main Header */
.sard-header {
    background: #ffffff;
    border-bottom: 1px solid var(--sard-border);
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sard-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}
.sard-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.sard-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sard-logo-icon {
    font-size: 38px;
    line-height: 1;
}
.sard-site-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.sard-site-desc {
    font-size: 12px;
    color: var(--sard-muted);
    font-weight: 500;
}

/* Navigation */
.sard-nav-wrap {
    background: #ffffff;
    border-bottom: 1px solid var(--sard-border);
}
.sard-nav {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    white-space: nowrap;
}
.sard-nav a {
    color: #334155;
    font-size: 13.5px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
}
.sard-nav a:hover, .sard-nav a.active {
    background: #f1f5f9;
    color: var(--sard-blue);
}

/* Layout Grid */
.sard-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    margin: 28px auto;
}
@media (max-width: 860px) {
    .sard-main-layout {
        grid-template-columns: 1fr;
    }
}

/* Hero Article */
.sard-hero-card {
    background: var(--sard-card);
    border: 1px solid var(--sard-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sard-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.sard-hero-media {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sard-hero-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--sard-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.sard-hero-body {
    padding: 22px;
}
.sard-hero-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 10px;
}
.sard-hero-excerpt {
    font-size: 14px;
    color: var(--sard-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}
.sard-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Post Grid */
.sard-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 600px) {
    .sard-posts-grid {
        grid-template-columns: 1fr;
    }
}
.sard-card {
    background: var(--sard-card);
    border: 1px solid var(--sard-border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s;
}
.sard-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}
.sard-card-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.badge-loss { background: #fee2e2; color: #dc2626; }
.badge-guru { background: #fef3c7; color: #d97706; }
.badge-holding { background: #e0f2fe; color: #0284c7; }
.badge-trade { background: #dcfce7; color: #16a34a; }

.sard-card-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 8px;
}
.sard-card-desc {
    font-size: 13px;
    color: var(--sard-muted);
    margin-bottom: 12px;
    flex-grow: 1;
}

/* Sidebar Widgets */
.sard-widget {
    background: var(--sard-card);
    border: 1px solid var(--sard-border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.sard-widget-title {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sard-blue);
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Lossômetro Widget */
.sard-loss-meter {
    text-align: center;
    padding: 10px 0;
}
.sard-meter-val {
    font-size: 32px;
    font-weight: 900;
    color: var(--sard-red);
}
.sard-meter-status {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.sard-meter-bar {
    height: 10px;
    background: #fee2e2;
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
}
.sard-meter-fill {
    width: 88%;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* Horóscopo do Day Trader */
.sard-horoscopo-item {
    font-size: 12.5px;
    border-left: 3px solid var(--sard-yellow);
    padding: 8px 10px;
    background: #fefce8;
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
}

/* Calculadora Sardinha */
.sard-calc-box {
    background: #f8fafc;
    border: 1px dashed var(--sard-border);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
}
.sard-calc-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--sard-border);
    border-radius: 6px;
    font-size: 13px;
    margin: 6px 0;
}
.sard-calc-btn {
    width: 100%;
    background: var(--sard-blue);
    color: #ffffff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
}
.sard-calc-btn:hover {
    background: var(--sard-blue-dark);
}

/* Footer */
.sard-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 36px 0 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}
.sard-footer-disclaimer {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 24px;
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
}
.sard-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Page & Single View */
.sard-article-content {
    background: var(--sard-card);
    border: 1px solid var(--sard-border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.sard-article-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--sard-border);
    padding-bottom: 16px;
}
.sard-article-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 10px;
}
.sard-article-body {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}
.sard-article-body p {
    margin-bottom: 16px;
}
.sard-article-body blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--sard-blue);
    padding: 12px 16px;
    margin: 16px 0;
    font-style: italic;
    color: #475569;
}

/* Subtle secret admin access indicator (invisible dot in footer) */
.sard-secret-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: background 0.3s;
    cursor: pointer;
}
.sard-secret-dot:hover {
    background: #38bdf8;
}
