/* Instagram Business Marketing & Monetization E-Book Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(144, 238, 144) 0%, rgb(120, 220, 120) 100%);
    color: #000000;
    line-height: 1.7;
    font-weight: bold;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(180, 20, 200));
    color: white;
    text-align: center;
    padding: 50px 30px;
    border-radius: 20px;
    border: 6px solid rgb(208, 31, 224);
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.header h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 25px;
    opacity: 0.95;
}

.print-btn {
    background: white;
    color: rgb(208, 31, 224);
    border: 4px solid rgb(208, 31, 224);
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.print-btn:hover {
    background: rgb(208, 31, 224);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Navigation Menu */
.nav-menu {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 6px solid rgb(208, 31, 224);
    margin-bottom: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.nav-menu h2 {
    color: rgb(208, 31, 224);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(144, 238, 144), rgb(120, 220, 120));
    color: #000000;
    border: 4px solid rgb(208, 31, 224);
    padding: 16px 22px;
    font-size: 1.08em;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: rgb(208, 31, 224);
    color: white;
    transform: translateX(12px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn:active {
    transform: translateX(12px) scale(0.98);
}

/* Content Sections */
.content-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 6px solid rgb(208, 31, 224);
    margin-bottom: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h2 {
    color: rgb(208, 31, 224);
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 5px solid rgb(208, 31, 224);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-section h3 {
    color: rgb(34, 139, 34);
    font-size: 1.9em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 18px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 6px solid rgb(208, 31, 224);
    padding-left: 15px;
}

.content-section h4 {
    color: rgb(208, 31, 224);
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 22px;
    margin-bottom: 14px;
    padding-left: 10px;
}

.content-section p {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 18px;
    line-height: 1.9;
}

/* Bullet Lists */
.bullet-list {
    list-style: none;
    margin-left: 25px;
    margin-bottom: 25px;
}

.bullet-list li {
    font-size: 1.12em;
    font-weight: bold;
    margin-bottom: 14px;
    padding-left: 35px;
    position: relative;
    line-height: 1.8;
}

.bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(208, 31, 224);
    font-size: 1.5em;
    font-weight: bold;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border: 5px solid rgb(208, 31, 224);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.data-table thead {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(180, 20, 200));
    color: white;
}

.data-table th {
    padding: 18px 15px;
    text-align: left;
    font-size: 1.15em;
    font-weight: bold;
    border: 3px solid rgb(208, 31, 224);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 15px;
    border: 3px solid rgb(208, 31, 224);
    font-size: 1.08em;
    font-weight: bold;
    background: rgb(200, 255, 200);
    color: #000000;
}

.data-table tbody tr:nth-child(even) td {
    background: rgb(180, 245, 180);
}

.data-table tbody tr:hover td {
    background: rgb(208, 31, 224);
    color: white;
    transition: all 0.3s ease;
    transform: scale(1.01);
}

/* Flowchart */
.flowchart-container {
    margin: 35px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgb(144, 238, 144) 0%, rgb(120, 220, 120) 100%);
    border: 5px solid rgb(208, 31, 224);
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.flowchart-container h3 {
    color: rgb(208, 31, 224);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.flow-box {
    background: white;
    color: rgb(208, 31, 224);
    padding: 20px 40px;
    border: 5px solid rgb(208, 31, 224);
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    min-width: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: scale(1.06);
    background: rgb(208, 31, 224);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.flow-arrow {
    color: rgb(208, 31, 224);
    font-size: 2.8em;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Q&A Section */
.qa-container {
    margin-top: 30px;
}

.qa-item {
    margin-bottom: 22px;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, rgb(144, 238, 144), rgb(120, 220, 120));
    color: #000000;
    padding: 20px 28px;
    font-size: 1.18em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background: rgb(208, 31, 224);
    color: white;
}

.toggle-icon {
    font-size: 1.4em;
    font-weight: bold;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.qa-question.active .toggle-icon {
    transform: rotate(180deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: white;
}

.qa-answer.show {
    max-height: 800px;
    padding: 22px 28px;
    border-top: 4px solid rgb(208, 31, 224);
}

.qa-answer p {
    font-size: 1.12em;
    font-weight: bold;
    line-height: 1.9;
    color: #000000;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgb(208, 31, 224), rgb(180, 20, 200));
    color: white;
    padding: 45px 35px;
    border-radius: 20px;
    border: 6px solid rgb(208, 31, 224);
    text-align: center;
    margin-top: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.footer h2 {
    font-size: 2.3em;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer p {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 18px;
    line-height: 1.9;
}

.footer .bullet-list li::before {
    color: white;
}

.copyright {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 4px solid white;
}

.copyright p {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .print-btn {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 3px solid #000;
        margin-bottom: 25px;
    }
    
    .qa-answer {
        max-height: none !important;
        display: block !important;
        padding: 20px 25px;
    }
    
    .flow-box:hover {
        transform: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2em;
    }
    
    .header h2 {
        font-size: 1.5em;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .nav-list {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 25px;
    }
    
    .content-section h2 {
        font-size: 2em;
    }
    
    .content-section h3 {
        font-size: 1.5em;
    }
    
    .flow-box {
        min-width: 260px;
        font-size: 1.05em;
        padding: 16px 30px;
    }
    
    .data-table {
        font-size: 0.95em;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.7em;
    }
    
    .header h2 {
        font-size: 1.2em;
    }
    
    .content-section {
        padding: 18px;
    }
    
    .flow-box {
        min-width: 220px;
        padding: 14px 25px;
        font-size: 1em;
    }
    
    .data-table {
        font-size: 0.85em;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgb(208, 31, 224);
    color: white;
}

::-moz-selection {
    background: rgb(208, 31, 224);
    color: white;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background: rgb(208, 31, 224);
    color: white;
    border: 4px solid white;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    transform: scale(1.15);
    background: rgb(144, 238, 144);
    color: #000;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 6px;
    background: linear-gradient(90deg, rgb(208, 31, 224), rgb(144, 238, 144));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.content-section:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Enhanced Table Hover Effects */
.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Focus Styles for Accessibility */
button:focus,
.nav-btn:focus,
.qa-question:focus {
    outline: 4px solid rgb(208, 31, 224);
    outline-offset: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgb(144, 238, 144);
}

::-webkit-scrollbar-thumb {
    background: rgb(208, 31, 224);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(180, 20, 200);
}