/* Kajabi E-Book CSS Styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(31, 224, 199) 0%, rgb(45, 200, 220) 100%);
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(150, 20, 180));
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 5px solid rgb(31, 224, 199);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
}

/* Header Print Buttons */
.header-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.print-button-header {
    background: white;
    color: rgb(208, 31, 224);
    border: 3px solid white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.print-button-header:hover {
    background: rgb(31, 224, 199);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31, 224, 199, 0.4);
}

.print-button-header:active {
    transform: translateY(-1px);
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    padding: 30px;
    border-bottom: 3px solid rgb(208, 31, 224);
}

.toc h2 {
    color: rgb(208, 31, 224);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
}

.toc li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: rgb(31, 224, 199);
    font-size: 0.8em;
}

.toc a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.toc a:hover {
    color: rgb(208, 31, 224);
    transform: translateX(5px);
}

/* Content Sections */
.content-section {
    padding: 40px 30px;
    border-bottom: 2px solid #e0e0e0;
}

.content-section h2 {
    color: rgb(208, 31, 224);
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgb(31, 224, 199);
}

.content-section h3 {
    color: rgb(150, 20, 180);
    font-size: 1.4em;
    margin: 25px 0 15px 0;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.05em;
    text-align: justify;
}

.content-section ul, .content-section ol {
    margin: 15px 0 15px 30px;
}

.content-section li {
    margin: 8px 0;
    font-size: 1.05em;
}

/* Feature Cards */
.feature-card {
    background: #f8f9fa;
    border-left: 5px solid rgb(31, 224, 199);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(208, 31, 224, 0.3);
    border-left-color: rgb(208, 31, 224);
}

.feature-card h3 {
    color: rgb(208, 31, 224);
    margin-bottom: 15px;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgb(208, 31, 224);
}

.pricing-table thead {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(150, 20, 180));
    color: white;
}

.pricing-table th {
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pricing-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    font-size: 1em;
}

.pricing-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.pricing-table tbody tr:hover {
    background: rgba(31, 224, 199, 0.1);
}

.pricing-note {
    background: rgba(31, 224, 199, 0.2);
    border-left: 4px solid rgb(31, 224, 199);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Additional Costs Table */
.additional-costs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px solid rgb(31, 224, 199);
}

.additional-costs-table thead {
    background: rgb(31, 224, 199);
    color: #2c3e50;
}

.additional-costs-table th {
    padding: 12px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.additional-costs-table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
}

.additional-costs-table tbody tr:nth-child(even) {
    background: rgba(31, 224, 199, 0.05);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 2px solid rgb(208, 31, 224);
}

.comparison-table thead {
    background: rgb(31, 224, 199);
    color: #2c3e50;
}

.comparison-table th {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.comparison-table tbody tr:hover {
    background: rgba(208, 31, 224, 0.1);
}

/* Trial Info Box */
.trial-info {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.2), rgba(31, 224, 199, 0.1));
    border: 3px solid rgb(31, 224, 199);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.trial-info p {
    font-size: 1.2em;
    color: rgb(150, 20, 180);
    margin-bottom: 15px;
}

/* Flowchart Styles */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 3px solid rgb(31, 224, 199);
}

.flow-step {
    display: flex;
    align-items: center;
    background: white;
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(208, 31, 224, 0.3);
}

.step-number {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(150, 20, 180));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    color: rgb(208, 31, 224);
    margin-bottom: 5px;
    font-size: 1.2em;
}

.step-content p {
    color: #555;
    margin: 0;
    font-size: 0.95em;
}

.flow-arrow {
    font-size: 2em;
    color: rgb(31, 224, 199);
    margin: 5px 0;
    font-weight: bold;
}

/* Sub Workflow */
.sub-workflow {
    background: rgba(31, 224, 199, 0.1);
    border-left: 4px solid rgb(31, 224, 199);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.sub-workflow ol {
    margin: 15px 0 0 20px;
}

.sub-workflow li {
    margin: 8px 0;
    padding-left: 10px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.1), rgba(31, 224, 199, 0.05));
    border: 2px solid rgb(31, 224, 199);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(31, 224, 199, 0.4);
    border-color: rgb(208, 31, 224);
}

.benefit-card h3 {
    color: rgb(208, 31, 224);
    margin-bottom: 10px;
}

.benefit-card p {
    color: #555;
    font-size: 1em;
}

/* Limitations Grid */
.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.limitation-card {
    background: rgba(255, 200, 200, 0.1);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.limitation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.limitation-card h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.limitation-card p {
    color: #555;
    font-size: 1em;
}

/* Quiz Section */
.quiz-container {
    margin: 30px 0;
}

.question-card {
    background: white;
    border: 3px solid rgb(31, 224, 199);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 5px 20px rgba(31, 224, 199, 0.3);
}

.question {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.2), rgba(31, 224, 199, 0.1));
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.question:hover {
    background: linear-gradient(135deg, rgba(208, 31, 224, 0.2), rgba(208, 31, 224, 0.1));
}

.q-number {
    color: rgb(208, 31, 224);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.toggle-icon {
    background: rgb(208, 31, 224);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.question-card.active .toggle-icon {
    transform: rotate(45deg);
    background: rgb(31, 224, 199);
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f9fa;
    padding: 0 20px;
}

.answer.show {
    max-height: 500px;
    padding: 20px;
    border-top: 2px solid rgb(31, 224, 199);
}

.answer strong {
    color: rgb(208, 31, 224);
    font-size: 1.1em;
}

/* Conclusion Section */
.conclusion {
    background: linear-gradient(135deg, rgba(208, 31, 224, 0.05), rgba(31, 224, 199, 0.05));
}

.key-takeaway {
    background: white;
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.key-takeaway h3 {
    color: rgb(208, 31, 224);
    margin-bottom: 15px;
}

.key-takeaway ul {
    list-style: none;
    margin-left: 0;
}

.key-takeaway li {
    padding: 8px 0;
    font-size: 1.1em;
}

.final-note {
    font-size: 1.15em;
    color: rgb(150, 20, 180);
    font-weight: 500;
    padding: 20px;
    background: rgba(31, 224, 199, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(150, 20, 180));
    color: white;
    text-align: center;
    padding: 30px;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: rgb(31, 224, 199);
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .content-section {
        padding: 25px 15px;
    }

    .content-section h2 {
        font-size: 1.5em;
    }

    .flow-step {
        width: 95%;
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 0 15px 0;
    }

    .benefits-grid,
    .limitations-grid {
        grid-template-columns: 1fr;
    }

    .pricing-table,
    .comparison-table,
    .additional-costs-table {
        font-size: 0.85em;
    }

    .pricing-table th,
    .pricing-table td,
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Menu Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.print-menu {
    animation: slideUp 0.3s ease;
}

/* Hide print buttons when printing */
@media print {
    .print-btn-floating,
    .scroll-to-top,
    .print-menu {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        border: none;
        box-shadow: none;
    }

    .answer {
        max-height: none !important;
        padding: 20px !important;
        display: block !important;
    }

    /* Hide interactive elements when printing */
    .scroll-to-top,
    .print-button-header,
    .header-buttons,
    button {
        display: none !important;
    }

    /* Show all answers in print */
    .answer {
        border-top: 2px solid #ddd !important;
        page-break-inside: avoid;
    }

    .question-card {
        page-break-inside: avoid;
        margin: 15px 0;
    }

    /* Optimize tables for printing */
    table {
        page-break-inside: avoid;
        font-size: 10pt;
    }

    /* Adjust colors for print */
    .header {
        background: #333 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .flow-step,
    .feature-card,
    .benefit-card {
        page-break-inside: avoid;
        border: 2px solid #333 !important;
    }

    /* Remove gradients for print */
    * {
        background-image: none !important;
    }

    /* Ensure content is visible */
    .content-section {
        padding: 20px 10px;
    }

    /* Add page numbers */
    @page {
        margin: 2cm;
        @bottom-right {
            content: "Page " counter(page) " of " counter(pages);
        }
    }

    /* Headers on each page */
    h2 {
        page-break-after: avoid;
        color: #333 !important;
    }

    /* Keep related content together */
    .feature-card,
    .benefit-card,
    .limitation-card,
    .flow-step {
        page-break-inside: avoid;
    }
}