/* ========================================
   BITCOIN OWNERSHIP SERIES - MASTER CSS
   Paste this ONCE into: Appearance → Customize → Additional CSS
   This will style ALL posts in the series (Part 1, 2, 3, etc.)
   ======================================== */

/* FIX: Prevent horizontal scrolling */
body {
    overflow-x: hidden;
}

/* FIX: Universal box-sizing */
.bitcoin-article-container,
.bitcoin-article-container * {
    box-sizing: border-box;
}

/* SHARED STYLES - Apply to all parts */
.bitcoin-article-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bitcoin-article-container h1 {
    font-size: 36px;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.2;
}

.bitcoin-subtitle {
    font-size: 20px;
    color: #718096;
    margin-bottom: 32px;
    font-style: italic;
}

.bitcoin-article-container h2 {
    font-size: 28px;
    color: #2d3748;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.bitcoin-article-container h3 {
    font-size: 22px;
    color: #2d3748;
    margin-top: 32px;
    margin-bottom: 12px;
}

.bitcoin-article-container h4 {
    font-size: 18px;
    color: #4a5568;
    margin-top: 24px;
    margin-bottom: 12px;
}

.bitcoin-article-container p {
    margin-bottom: 16px;
    color: #4a5568;
}

.bitcoin-article-container ul,
.bitcoin-article-container ol {
    color: #4a5568;
}

.bitcoin-article-container strong {
    color: #2d3748;
}

.bitcoin-intro {
    font-size: 18px;
    color: #2d3748;
    padding: 24px;
    margin: 32px 0;
    border-radius: 4px;
}

.bitcoin-recap-box {
    background: #f7fafc;
    padding: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    margin: 32px 0;
}

.bitcoin-recap-box h3 {
    margin-top: 0;
}

.bitcoin-decision-tree {
    background: #f7fafc;
    padding: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    margin: 32px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.bitcoin-article-container table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    table-layout: auto;
    overflow-x: auto;
    display: block;
}

.bitcoin-article-container table tbody,
.bitcoin-article-container table thead {
    display: table;
    width: 100%;
}

.bitcoin-article-container th {
    background: #2d3748;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    word-wrap: break-word;
}

.bitcoin-article-container td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bitcoin-article-container tr:nth-child(even) {
    background: #f7fafc;
}

.bitcoin-detail-table {
    background: white;
    margin: 24px 0;
    width: 100%;
    max-width: 100%;
}

.bitcoin-detail-table th {
    width: 35%;
    min-width: 180px;
    max-width: 35%;
}

.bitcoin-detail-table td {
    width: 65%;
}

.bitcoin-risk-low { 
    color: #38a169; 
    font-weight: bold; 
}

.bitcoin-risk-medium { 
    color: #d69e2e; 
    font-weight: bold; 
}

.bitcoin-risk-high { 
    color: #e53e3e; 
    font-weight: bold; 
}

.bitcoin-method-section {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.bitcoin-method-title {
    font-size: 24px;
    color: #1a202c;
    margin-bottom: 8px;
}

.bitcoin-method-pitch {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
}

.bitcoin-short-method {
    padding: 20px;
    margin: 24px 0;
    border-radius: 4px;
}

.bitcoin-warning-box {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    word-wrap: break-word;
}

.bitcoin-warning-box h4 {
    color: #c53030;
    margin-top: 0;
}

.bitcoin-decision-box {
    border: 2px solid;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
    word-wrap: break-word;
}

.bitcoin-decision-box h3 {
    margin-top: 0;
}

.bitcoin-decision-option {
    margin: 16px 0;
    padding-left: 20px;
}

.bitcoin-arrow {
    font-weight: bold;
}

.bitcoin-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
    color: #718096;
    font-size: 14px;
    text-align: center;
}

.bitcoin-footer p {
    margin: 8px 0;
    color: #718096;
}

.bitcoin-emoji {
    font-size: 20px;
}

.bitcoin-pro-con-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.bitcoin-pro-box {
    background: #f0fff4;
    border: 2px solid #9ae6b4;
    border-radius: 8px;
    padding: 16px;
}

.bitcoin-con-box {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 8px;
    padding: 16px;
}

.bitcoin-pro-box h4,
.bitcoin-con-box h4 {
    margin-top: 0;
}

.bitcoin-pro-box h4 { 
    color: #22543d; 
}

.bitcoin-con-box h4 { 
    color: #742a2a; 
}

.bitcoin-pro-box ul,
.bitcoin-con-box ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.bitcoin-pro-box li { 
    color: #276749; 
}

.bitcoin-con-box li { 
    color: #9b2c2c; 
}


/* ========================================
   PART 1 SPECIFIC STYLES (Blue theme)
   ======================================== */

.bitcoin-part1 h2 {
    border-bottom: 3px solid #3182ce;
}

.bitcoin-part1 .bitcoin-intro {
    background: #edf2f7;
    border-left: 4px solid #3182ce;
}

.bitcoin-part1 .bitcoin-detail-table th {
    background: #3182ce;
}

.bitcoin-part1 .bitcoin-method-pitch {
    color: #3182ce;
}

.bitcoin-part1 .bitcoin-short-method {
    background: #f7fafc;
    border-left: 4px solid #718096;
}

.bitcoin-part1 .bitcoin-decision-box {
    background: #ebf8ff;
    border-color: #3182ce;
}

.bitcoin-part1 .bitcoin-arrow {
    color: #3182ce;
}


/* ========================================
   PART 2 SPECIFIC STYLES (Orange/Yellow theme)
   ======================================== */

.bitcoin-part2 h2 {
    border-bottom: 3px solid #d69e2e;
}

.bitcoin-part2 .bitcoin-intro {
    background: #fef5e7;
    border-left: 4px solid #d69e2e;
}

.bitcoin-part2 .bitcoin-detail-table th {
    background: #d69e2e;
}

.bitcoin-part2 .bitcoin-method-pitch {
    color: #d69e2e;
}

.bitcoin-part2 .bitcoin-short-method {
    background: #fef5e7;
    border-left: 4px solid #d69e2e;
}

.bitcoin-part2 .bitcoin-decision-box {
    background: #fef5e7;
    border-color: #d69e2e;
}

.bitcoin-part2 .bitcoin-arrow {
    color: #d69e2e;
}


/* ========================================
   PART 3 SPECIFIC STYLES (Red theme - for future use)
   ======================================== */

.bitcoin-part3 h2 {
    border-bottom: 3px solid #e53e3e;
}

.bitcoin-part3 .bitcoin-intro {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
}

.bitcoin-part3 .bitcoin-detail-table th {
    background: #e53e3e;
}

.bitcoin-part3 .bitcoin-method-pitch {
    color: #e53e3e;
}

.bitcoin-part3 .bitcoin-short-method {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
}

.bitcoin-part3 .bitcoin-decision-box {
    background: #fff5f5;
    border-color: #e53e3e;
}

.bitcoin-part3 .bitcoin-arrow {
    color: #e53e3e;
}


/* ========================================
   PART 4 SPECIFIC STYLES (Purple/Gray theme - Wrap-up)
   ======================================== */

.bitcoin-part4 h2 {
    border-bottom: 3px solid #7c3aed;
}

.bitcoin-part4 .bitcoin-intro {
    background: #faf5ff;
    border-left: 4px solid #7c3aed;
}

.bitcoin-part4 .bitcoin-detail-table th {
    background: #7c3aed;
}

.bitcoin-part4 .bitcoin-method-pitch {
    color: #7c3aed;
}

.bitcoin-part4 .bitcoin-short-method {
    background: #faf5ff;
    border-left: 4px solid #7c3aed;
}

.bitcoin-part4 .bitcoin-decision-box {
    background: #faf5ff;
    border-color: #7c3aed;
}

.bitcoin-part4 .bitcoin-arrow {
    color: #7c3aed;
}

.bitcoin-part4 .bitcoin-master-table {
    background: white;
    margin: 32px 0;
    font-size: 14px;
}

.bitcoin-part4 .bitcoin-master-table th {
    background: #7c3aed;
    color: white;
    font-size: 13px;
    padding: 10px 8px;
}

.bitcoin-part4 .bitcoin-master-table td {
    padding: 10px 8px;
    font-size: 13px;
}

.bitcoin-part4 .bitcoin-comparison-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid #7c3aed;
}

.bitcoin-part4 .bitcoin-key-takeaway {
    background: #faf5ff;
    border: 2px solid #c4b5fd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.bitcoin-part4 .bitcoin-key-takeaway h4 {
    color: #6b21a8;
    margin-top: 0;
}


/* ========================================
   RESPONSIVE DESIGN - Mobile/Tablet
   ======================================== */

@media (max-width: 768px) {
    .bitcoin-article-container {
        padding: 30px 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .bitcoin-article-container h1 {
        font-size: 28px;
    }
    
    .bitcoin-article-container h2 {
        font-size: 24px;
    }
    
    .bitcoin-article-container table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bitcoin-article-container th,
    .bitcoin-article-container td {
        padding: 8px;
        min-width: 80px;
    }
    
    .bitcoin-pro-con-table {
        grid-template-columns: 1fr;
    }
    
    .bitcoin-detail-table th {
        min-width: auto;
        width: 35%;
    }
    
    .bitcoin-detail-table td {
        width: 65%;
    }
    
    /* Prevent any element from being wider than viewport */
    .bitcoin-article-container img,
    .bitcoin-article-container pre,
    .bitcoin-article-container code,
    .bitcoin-decision-tree,
    .bitcoin-warning-box,
    .bitcoin-decision-box {
        max-width: 100%;
        overflow-x: auto;
    }
}

@media print {
    .bitcoin-article-container {
        box-shadow: none;
    }
}
