/* ============================================
   GAMMA AI E-BOOK - STYLES.CSS
   Background: RGB(31, 224, 199) - Cyan
   Border: RGB(208, 31, 224) - Magenta
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgb(31, 224, 199);
    background: linear-gradient(135deg, rgb(31, 224, 199) 0%, rgb(20, 180, 160) 100%);
    color: #000000;
    line-height: 1.8;
    padding: 20px;
    min-height: 100vh;
}

/* Print Button */
.print-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.print-btn {
    background: rgb(208, 31, 224);
    color: white;
    border: 4px solid #000000;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: rgb(180, 20, 200);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Header */
header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    margin-bottom: 40px;
    border: 6px solid rgb(208, 31, 224);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 48px;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 24px;
    font-weight: bold;
    color: rgb(31, 224, 199);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    margin-bottom: 40px;
    border: 6px solid rgb(208, 31, 224);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section h2 {
    font-size: 36px;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-bottom: 30px;
    border-bottom: 4px solid rgb(31, 224, 199);
    padding-bottom: 15px;
}

.section h3 {
    font-size: 24px;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-top: 25px;
    margin-bottom: 15px;
}

.section h4 {
    font-size: 20px;
    font-weight: bold;
    color: rgb(31, 224, 199);
    margin-top: 15px;
    margin-bottom: 10px;
}

.section p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000000;
}

.section ul,
.section ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.section li {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

/* Table of Contents */
.toc-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(20, 180, 160));
    color: #000000;
    border: 4px solid rgb(208, 31, 224);
    padding: 18px 25px;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: rgb(208, 31, 224);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Boxes */
.content-box {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.2), rgba(208, 31, 224, 0.2));
    padding: 25px;
    margin: 20px 0;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.3), rgba(208, 31, 224, 0.3));
    padding: 25px;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 17px;
    font-weight: bold;
    color: #000000;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.pricing-table thead {
    background: rgb(208, 31, 224);
}

.pricing-table th {
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-align: left;
    border-bottom: 4px solid rgb(31, 224, 199);
}

.pricing-table td {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 3px solid rgb(208, 31, 224);
    background: rgba(31, 224, 199, 0.1);
}

.pricing-table tbody tr:hover {
    background: rgba(208, 31, 224, 0.2);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.comparison-table thead {
    background: rgb(208, 31, 224);
}

.comparison-table th {
    padding: 18px;
    font-size: 19px;
    font-weight: bold;
    color: white;
    text-align: center;
    border-bottom: 4px solid rgb(31, 224, 199);
}

.comparison-table td {
    padding: 18px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid rgb(208, 31, 224);
    border-right: 2px solid rgb(208, 31, 224);
    background: rgba(31, 224, 199, 0.1);
}

.comparison-table td:first-child {
    text-align: left;
    background: rgba(208, 31, 224, 0.15);
    font-weight: bold;
}

.comparison-table td:last-child {
    border-right: none;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .yes {
    color: green;
    font-weight: bold;
}

.comparison-table .no {
    color: red;
    font-weight: bold;
}

.comparison-table .partial {
    color: orange;
    font-weight: bold;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.column h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
}

.column h3:first-child {
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(20, 180, 160));
    color: #000000;
}

/* Use Cases Grid */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.use-case-card {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.3), rgba(208, 31, 224, 0.3));
    padding: 25px;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.use-case-card h3 {
    font-size: 22px;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-bottom: 15px;
}

.use-case-card p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

/* Flowchart Styles */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
}

.flow-step {
    margin: 10px 0;
}

.flow-box {
    background: white;
    border: 4px solid rgb(208, 31, 224);
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flow-box.start {
    background: linear-gradient(135deg, rgb(31, 224, 199), rgb(20, 180, 160));
    color: #000000;
}

.flow-box.end {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(180, 20, 200));
    color: white;
}

.flow-box.decision {
    background: linear-gradient(135deg, rgb(255, 200, 50), rgb(255, 180, 30));
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-box.process {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.5), rgba(208, 31, 224, 0.5));
}

.flow-arrow {
    font-size: 40px;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin: 10px 0;
}

.flow-branches {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-branches-2 {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 20px 0;
    width: 100%;
}

.flow-branch-left,
.flow-branch-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Q&A Section */
.qa-container {
    margin-top: 30px;
}

.qa-item {
    margin-bottom: 20px;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, rgb(50, 31, 224), rgb(50, 20, 200));
    color: white;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-question:hover {
    background: linear-gradient(135deg, rgb(0, 20, 200), rgb(0, 10, 170));
}

.toggle-icon {
    font-size: 28px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.qa-question.active .toggle-icon {
    transform: rotate(45deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(31, 224, 199, 0.2);
    transition: max-height 0.3s ease;
}

.qa-answer.show {
    max-height: 1000px;
    padding: 25px;
    border-top: 3px solid rgb(208, 31, 224);
}

.qa-answer p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000000;
}

.qa-answer ul {
    margin-left: 25px;
    margin-top: 15px;
}

.qa-answer li {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

/* Conclusion Box */
.conclusion-box {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.4), rgba(208, 31, 224, 0.4));
    border: 6px solid rgb(208, 31, 224);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.final-message {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: rgb(208, 31, 224);
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 4px solid rgb(31, 224, 199);
}

/* Footer */
footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin-top: 40px;
    border: 6px solid rgb(208, 31, 224);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

footer p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

footer a {
    color: rgb(208, 31, 224);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: rgb(31, 224, 199);
    text-decoration: underline;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .print-button-container {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        border: 2px solid black;
        margin: 20px 0;
    }

    .nav-btn {
        display: none;
    }

    .qa-answer {
        max-height: none !important;
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }

    .section {
        padding: 20px;
    }

    .section h2 {
        font-size: 28px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .flow-branches,
    .flow-branches-2 {
        flex-direction: column;
    }

    .features-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table,
    .pricing-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td,
    .pricing-table th,
    .pricing-table td {
        padding: 10px;
    }

    .print-button-container {
        position: static;
        margin-bottom: 20px;
        text-align: center;
    }
}

/* Strong and Bold Emphasis */
strong {
    font-weight: 900;
    color: rgb(208, 31, 224);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}