/* Custom CSS for 新手賭場入門指南 */
/* Warm Orange + Cream White + Dark Brown theme */

:root {
    --bg: #FFF8F0;
    --primary: #FF6B35;
    --text-color: #2C1A0E;
    --card-bg: #FFFFFF;
    --border-light: rgba(44, 26, 14, 0.1);
    --shadow-soft: 0 2px 12px rgba(255, 107, 53, 0.08);
    --shadow-hover: 0 8px 24px rgba(255, 107, 53, 0.15);
    --radius: 20px;
}

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

body {
    background-color: var(--bg);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

a { text-decoration: none; }

/* Header */
.site-header {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 1px 8px rgba(44, 26, 14, 0.05);
}

.brand-link { text-decoration: none; }

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    text-decoration: none;
}

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

/* CTA Button */
.btn-cta {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-cta-outline {
    color: var(--primary);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-cta-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #FFF0E0 0%, var(--bg) 100%);
    padding: 60px 0 40px;
}

/* Step Progress Bar */
.step-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.step-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.step-arrow {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 20px;
}

/* Beginner Badge */
.beginner-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

/* Article Cards */
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.25s;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

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

.article-card-mini {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.25s;
    text-decoration: none;
}

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

/* Risk Notice */
.risk-notice {
    background: #FFF3E0;
    border: 1px solid #FFB74D;
    border-radius: var(--radius);
    padding: 14px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #e55a28 100%);
    border-radius: 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #e55a28 100%);
    border-radius: var(--radius);
    padding: 32px;
}

/* Excerpt Box */
.excerpt-box {
    background: #FFF3E0;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    color: var(--text-color);
    font-size: 15px;
}

/* TOC Box */
.toc-box {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
}

/* Author Box */
.author-box {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

/* Risk Box */
.risk-box {
    background: #FFF3E0;
    border: 1px solid #FFB74D;
    border-radius: var(--radius);
    padding: 24px;
}

/* FAQ Section */
.faq-section .faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

/* Footer */
.site-footer {
    background: #2C1A0E;
    color: #FFF8F0;
}

.footer-link {
    color: rgba(255, 248, 240, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--primary); }

/* Prose Content */
.prose-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.prose-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text-color);
}

.prose-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--primary);
}

.prose-content p {
    margin-bottom: 16px;
}

.prose-content ul, .prose-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.prose-content li {
    margin-bottom: 8px;
}

.prose-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.prose-content a:hover { opacity: 0.7; }

.prose-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin-bottom: 16px;
    background: #FFF3E0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.prose-content code {
    background: #FFF3E0;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 14px;
}

.prose-content pre {
    background: #2C1A0E;
    color: #FFF8F0;
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 16px;
}

.prose-content pre code {
    background: transparent;
    color: #FFF8F0;
    padding: 0;
}

.prose-content table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.prose-content th {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 12px;
    text-align: left;
}

.prose-content td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
}

.prose-content tr:nth-child(even) {
    background: rgba(255, 107, 53, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 40px 0 24px; }
    .hero-section h1 { font-size: 28px; }
    .step-arrow { font-size: 18px; }
    .step-number { width: 40px; height: 40px; font-size: 16px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Print */
@media print {
    .site-header, .site-footer, .btn-cta, .cta-box, .cta-section { display: none; }
    body { background: white; color: black; }
}
