/* CSS Variables */
:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-card: #1e2433;
    --text-primary: #e4e6eb;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --positive: #3fb950;
    --negative: #f85149;
    --warning: #d29922;
    --border: #30363d;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(88, 166, 255, 0.1);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-small {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: bold;
}

.stat-value.positive {
    color: var(--positive);
}

.stat-value.negative {
    color: var(--negative);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(88, 166, 255, 0.05);
}

.loading, .empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem !important;
}

.row-win {
    border-left: 3px solid var(--positive);
}

.row-loss {
    border-left: 3px solid var(--negative);
}

.row-opened {
    background: rgba(88, 166, 255, 0.05);
}

/* Signals */
.signal {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-extreme {
    background: rgba(248, 81, 73, 0.2);
    color: var(--negative);
    animation: pulse 2s infinite;
}

.signal-strong {
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning);
}

.signal-moderate {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent);
}

.signal-developing {
    background: rgba(139, 148, 158, 0.2);
    color: var(--text-secondary);
}

.signal-weak {
    background: rgba(139, 148, 158, 0.1);
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Exit Reasons */
.reason {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.reason-target_hit {
    background: rgba(63, 185, 80, 0.2);
    color: var(--positive);
}

.reason-trailing_stop {
    background: rgba(63, 185, 80, 0.2);
    color: var(--positive);
}

.reason-stop_loss {
    background: rgba(248, 81, 73, 0.2);
    color: var(--negative);
}

.reason-manual {
    background: rgba(139, 148, 158, 0.2);
    color: var(--text-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(63, 185, 80, 0.2);
    color: var(--positive);
}

.badge-pending,
.badge-neutral {
    background: rgba(139, 148, 158, 0.2);
    color: var(--text-secondary);
}

/* Market Regime */
.market-regime {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.regime-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.regime-value {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.regime-bullish {
    background: rgba(63, 185, 80, 0.2);
    color: var(--positive);
}

.regime-neutral {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent);
}

.regime-bearish {
    background: rgba(248, 81, 73, 0.2);
    color: var(--negative);
}

.regime-reason {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.regime-warning {
    color: var(--warning);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-primary:hover {
    background: #4393e6;
}

.btn-danger {
    color: var(--negative);
    border-color: var(--negative);
}

.btn-danger:hover {
    background: rgba(248, 81, 73, 0.1);
}

.btn-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
    background: var(--bg-card);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.last-update {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: auto;
}

/* Filters */
.filters {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Text colors */
.positive {
    color: var(--positive);
}

.negative {
    color: var(--negative);
}

.text-muted {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Analysis */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.analysis-item .label {
    color: var(--text-secondary);
}

.analysis-item .value {
    font-weight: 600;
}

/* Config Bar */
.config-bar {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.config-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.config-value {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.2rem 0.6rem;
    background: var(--bg-card);
    border-radius: 4px;
}

.config-item-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.config-currency {
    padding: 0.3rem 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
}

.config-input {
    width: 100px;
    padding: 0.3rem 0.5rem;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.config-input:focus {
    outline: none;
    background: var(--bg-secondary);
}

.config-input::-webkit-inner-spin-button,
.config-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.config-input[type=number] {
    -moz-appearance: textfield;
}

.config-input-sm {
    width: 55px;
}

.config-unit {
    padding: 0.3rem 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Toggle Switch */
.config-item-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: white;
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 25px;
}

.toggle-on {
    color: var(--positive);
}

.toggle-off {
    color: var(--text-secondary);
}

/* Stat dollar sub-value */
.stat-dollar {
    font-size: 1rem;
    opacity: 0.8;
}

/* Headings */
h1 {
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Guide Page */
.guide-container {
    max-width: 900px;
}

.guide-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.guide-section {
    line-height: 1.8;
}

.guide-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.guide-section p {
    margin-bottom: 1rem;
}

.guide-section ul, .guide-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-section li {
    margin-bottom: 0.5rem;
}

/* Table of Contents */
.toc {
    background: var(--bg-secondary);
}

.toc-list {
    columns: 2;
    column-gap: 2rem;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--accent);
    text-decoration: none;
}

.toc-list a:hover {
    text-decoration: underline;
}

/* Example and Info Boxes */
.example-box, .warning-box, .info-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.example-box {
    background: rgba(88, 166, 255, 0.1);
    border-left: 4px solid var(--accent);
}

.warning-box {
    background: rgba(248, 81, 73, 0.1);
    border-left: 4px solid var(--negative);
}

.info-box {
    background: rgba(63, 185, 80, 0.1);
    border-left: 4px solid var(--positive);
}

.example-box h4, .warning-box h4, .info-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Profit Example */
.profit-example {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.profit-example h4 {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.profit-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.profit-row.total {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Step List */
.step-list {
    counter-reset: step;
    list-style: none;
    margin-left: 0;
}

.step-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Score Breakdown */
.score-breakdown {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.score-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.score-name {
    font-weight: 600;
    color: var(--text-primary);
}

.score-weight {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.score-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Signal Guide */
.signal-guide {
    margin-top: 1rem;
}

.signal-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.signal-row .signal {
    min-width: 100px;
    text-align: center;
}

.signal-details {
    flex: 1;
}

.signal-details strong {
    display: block;
    margin-bottom: 0.25rem;
}

.signal-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Indicator Cards */
.indicator-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.indicator-card h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.indicator-visual {
    margin: 1rem 0;
}

.rsi-scale {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

.rsi-zone {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.rsi-zone small {
    display: block;
    font-weight: normal;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.rsi-zone.oversold {
    background: rgba(63, 185, 80, 0.3);
    color: var(--positive);
}

.rsi-zone.neutral {
    background: rgba(139, 148, 158, 0.2);
    color: var(--text-secondary);
}

.rsi-zone.overbought {
    background: rgba(248, 81, 73, 0.3);
    color: var(--negative);
}

/* Risk Features */
.risk-feature {
    margin-bottom: 2rem;
}

.risk-feature h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.risk-visual {
    margin: 1rem 0;
}

.price-bar {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.price-point {
    font-weight: 600;
}

.price-point.entry {
    color: var(--text-primary);
}

.price-point.stop .loss {
    color: var(--negative);
}

/* Trailing Example Table */
.trailing-example {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.trailing-example h4 {
    margin-bottom: 1rem;
}

.trailing-table {
    font-size: 0.9rem;
}

.trailing-table th {
    background: var(--bg-card);
}

.trailing-table .highlight-row {
    background: rgba(63, 185, 80, 0.1);
}

.trailing-table .exit-row {
    background: rgba(88, 166, 255, 0.1);
}

.trailing-note {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* Regime Guide */
.regime-guide {
    margin-top: 1rem;
}

.regime-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.regime-row .regime-value {
    min-width: 120px;
    text-align: center;
}

.regime-details {
    flex: 1;
}

.regime-details strong {
    display: block;
    margin-bottom: 0.25rem;
}

.regime-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Dashboard Guide */
.dashboard-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dash-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.dash-item strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.dash-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Glossary */
.glossary {
    display: grid;
    gap: 1rem;
}

.glossary dt {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.glossary dd {
    margin: 0 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.glossary dd:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Disclaimer */
.disclaimer {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid var(--warning);
}

.disclaimer h2 {
    color: var(--warning);
}

.disclaimer p {
    color: var(--text-secondary);
}

/* Guide Footer */
.guide-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
}

.legal-container h1 {
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content {
    line-height: 1.8;
}

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

.legal-section h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

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

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

/* Disclaimer Banner */
.disclaimer-banner {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--negative);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.disclaimer-banner h2 {
    color: var(--negative);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.disclaimer-banner p {
    margin: 0;
    color: var(--text-primary);
}

.risk-warning {
    background: rgba(210, 153, 34, 0.1);
    border-left: 4px solid var(--warning);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.risk-warning h3 {
    color: var(--warning);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.risk-warning p {
    margin: 0;
}

.disclaimer-acceptance {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.disclaimer-acceptance p {
    margin: 0;
    color: var(--text-primary);
}

/* Site-wide Disclaimer Bar */
.site-disclaimer {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.site-disclaimer a {
    color: var(--accent);
    margin-left: 0.5rem;
}

/* Legal Footer */
.legal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.legal-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-email {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-form-section {
    margin-top: 2rem;
}

.contact-form {
    max-width: 600px;
}

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

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

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

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.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;
}

.form-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--positive);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.form-success h3 {
    color: var(--positive);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
}

/* About Page */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.method-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.method-item h3 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.method-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Nav brand link */
.nav-brand a {
    color: var(--accent);
    text-decoration: none;
}

/* Authentication Pages */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.auth-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--negative);
    color: var(--negative);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--positive);
    color: var(--positive);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-google:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.google-icon {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

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

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--accent);
}

.checkbox-label a {
    color: var(--accent);
}

.forgot-link {
    color: var(--accent);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-disclaimer {
    max-width: 420px;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.auth-disclaimer a {
    color: var(--accent);
}

/* User Menu in Navbar */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.user-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-logout:hover {
    color: var(--negative);
    border-color: var(--negative);
}

/* Legacy User Menu (for other uses) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Ad Sidebars */
.ad-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar-left {
    left: 10px;
}

.ad-sidebar-right {
    right: 10px;
}

.ad-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder.ad-vertical {
    width: 160px;
    height: 600px;
}

.ad-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Bottom banner ad */
.ad-banner-bottom {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.ad-banner-bottom .ad-placeholder {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
}

/* Site Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-content .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* =============================================================================
   LANDING PAGE STYLES
   ============================================================================= */

.landing-page {
    background: var(--bg-primary);
}

.landing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-cta .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.hero-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Signals Teaser */
.signals-teaser {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.live-badge {
    background: var(--negative);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.signals-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.teaser-cta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.teaser-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Score Bar */
.score-bar {
    width: 100px;
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--positive), var(--warning), var(--negative));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Signal Badges */
.signal-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-strong {
    background: rgba(246, 173, 85, 0.2);
    color: var(--warning);
}

.signal-extreme {
    background: rgba(248, 81, 73, 0.2);
    color: var(--negative);
}

/* Public Stats */
.public-stats {
    margin-bottom: 3rem;
}

.public-stats .stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.public-stats .stat-card {
    text-align: center;
}

.public-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

/* How It Works */
.how-it-works {
    margin-bottom: 3rem;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Features */
.features {
    margin-bottom: 3rem;
    text-align: center;
}

.features h2 {
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Ad Section */
.ad-section {
    margin: 3rem 0;
    text-align: center;
}

/* Risk Warning Section */
.risk-warning-section {
    margin-bottom: 3rem;
}

.risk-warning {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--negative);
    border-radius: 12px;
    padding: 1.5rem;
}

.risk-warning h3 {
    color: var(--negative);
    margin-bottom: 0.5rem;
}

.risk-warning p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.risk-warning a {
    color: var(--accent);
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.final-cta h2 {
    margin-bottom: 0.5rem;
}

.final-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Loading & No Data States */
.loading, .no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* Trading Parameters Section */
.trading-params {
    margin-bottom: 3rem;
    text-align: center;
}

.trading-params h2 {
    margin-bottom: 0.5rem;
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.param-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.param-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.param-value.positive {
    color: var(--positive);
}

.param-value.negative {
    color: var(--negative);
}

.param-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.param-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 900px) {
    .params-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .params-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Landing Page */
@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .landing-container {
        padding: 1rem;
    }
}

/* Responsive - Hide sidebars on screens narrower than 1200px */
@media (max-width: 1200px) {
    .ad-sidebar {
        display: none;
    }
}

/* Hamburger menu button - hidden by default */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.nav-toggle:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: currentColor;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .user-name {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .nav-brand {
        order: 1;
        flex: 1;
        font-size: 1.1rem;
    }

    .nav-user {
        order: 3;
        gap: 0.5rem;
    }

    .nav-links {
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 0;
        display: none;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .user-name {
        display: none;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .btn-logout {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .btn-icon {
        padding: 0.3rem;
    }

    .btn-icon svg {
        width: 16px;
        height: 16px;
    }

    .site-footer {
        padding: 1.5rem 1rem;
    }

    .footer-content .footer-links {
        gap: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.5rem;
    }

    /* Guide responsive */
    .toc-list {
        columns: 1;
    }

    .signal-row, .regime-row {
        flex-direction: column;
    }

    .signal-row .signal, .regime-row .regime-value {
        min-width: auto;
        align-self: flex-start;
    }

    .rsi-scale {
        flex-direction: column;
    }

    .price-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dashboard-guide {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.25rem;
}

.modal-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* Settings Modal */
.modal-settings {
    max-width: 600px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.settings-group h4 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: var(--accent);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.settings-row label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.settings-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Settings button icon */
.btn-icon {
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

.btn-icon svg {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.btn-icon:hover svg {
    color: var(--accent);
}

@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .modal-settings {
        max-width: 95%;
    }
}

/* =============================================================================
   BLOG STYLES
   ============================================================================= */

.blog-container {
    max-width: 1000px;
}

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

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.blog-category {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--accent);
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.blog-read-more:hover {
    color: #4393e6;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Blog Post Page */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-back {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.blog-back:hover {
    color: #4393e6;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    font-size: 2rem;
    margin: 0.75rem 0;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-reading-time::before {
    content: "•";
    margin-right: 1.5rem;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.blog-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.blog-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content strong {
    color: var(--text-primary);
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-share span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.blog-related h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-header h1 {
        font-size: 1.5rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-reading-time::before {
        display: none;
    }

    .blog-content {
        font-size: 1rem;
    }
}

/* Blog Content Boxes */
.example-box,
.info-box,
.warning-box {
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.example-box {
    background: rgba(88, 166, 255, 0.1);
    border-left: 4px solid var(--accent);
}

.example-box p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.example-box p:last-child {
    margin-bottom: 0;
}

.info-box {
    background: rgba(88, 166, 255, 0.1);
    border-left: 4px solid var(--accent);
}

.info-box h4 {
    color: var(--accent);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.info-box p {
    margin: 0;
    color: var(--text-secondary);
}

.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
}

.warning-box h4 {
    color: #ff9800;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.warning-box p {
    margin: 0;
    color: var(--text-secondary);
}
