/* ====================================
   ADVERBS EDUCATIONAL GUIDE - CSS
   Professional, Clean, and Modern Design
   ==================================== */

/* ===== GLOBAL 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, 150, 199) 0%, rgb(20, 100, 150) 100%);
    color: #1a1a1a;
    line-height: 1.8;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== HEADER STYLES ===== */
.header {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    border: 5px solid rgb(150, 31, 224);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 48px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 24px;
    font-weight: bold;
    color: rgb(31, 150, 199);
    margin-bottom: 25px;
}

.print-btn {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(20, 100, 150));
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 15px 40px;
    border: 3px solid rgb(150, 31, 224);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 20, 180));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION STYLES ===== */
.navigation {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 5px solid rgb(150, 31, 224);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.navigation h3 {
    font-size: 28px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(20, 100, 150));
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 15px 25px;
    border: 3px solid rgb(150, 31, 224);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-buttons button:hover {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 20, 180));
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ===== CONTENT SECTION STYLES ===== */
.content-section {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 5px solid rgb(150, 31, 224);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(31, 150, 199);
}

/* ===== DEFINITION BOX ===== */
.definition-box {
    background: linear-gradient(135deg, rgba(61, 242, 236, 0.3), rgba(31, 150, 199, 0.2));
    padding: 30px;
    border-radius: 15px;
    border: 4px solid rgb(150, 31, 224);
    margin-bottom: 20px;
}

.definition-box h3 {
    font-size: 28px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin-bottom: 15px;
}

.definition-box p {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.8;
}

.example-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border: 3px solid rgb(31, 150, 199);
}

.example-box h4 {
    font-size: 24px;
    font-weight: bold;
    color: rgb(31, 150, 199);
    margin-bottom: 15px;
}

.example-box ul {
    list-style: none;
    padding-left: 0;
}

.example-box li {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.example-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(31, 150, 199);
    font-weight: bold;
    font-size: 20px;
}

.example-box em {
    color: rgb(150, 31, 224);
    font-style: normal;
    font-weight: bold;
}

/* ===== TABLE STYLES ===== */
.table-container {
    margin: 30px 0;
    overflow-x: auto;
}

.table-container h3 {
    font-size: 28px;
    font-weight: bold;
    color: rgb(31, 150, 199);
    margin-bottom: 20px;
    text-align: center;
}

.adverb-table {
    width: 100%;
    border-collapse: collapse;
    background: rgb(61, 242, 236);
    border: 5px solid rgb(150, 31, 224);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.adverb-table thead {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 20, 180));
}

.adverb-table th {
    padding: 20px;
    text-align: left;
    font-weight: bold;
    font-size: 20px;
    color: white;
    border-bottom: 4px solid rgb(31, 150, 199);
}

.adverb-table td {
    padding: 18px;
    font-weight: bold;
    font-size: 18px;
    color: #1a1a1a;
    border-bottom: 2px solid rgba(150, 31, 224, 0.3);
}

.adverb-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.5);
}

.adverb-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.8);
}

.adverb-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(31, 150, 199, 0.2), rgba(61, 242, 236, 0.4));
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* ===== TYPE CARDS ===== */
.type-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.type-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(61, 242, 236, 0.2));
    padding: 25px;
    border-radius: 15px;
    border: 4px solid rgb(150, 31, 224);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: rgb(31, 150, 199);
}

.type-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin-bottom: 15px;
}

.type-card p {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.type-card ul {
    list-style: none;
    padding-left: 0;
}

.type-card li {
    font-size: 17px;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.type-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgb(31, 150, 199);
    font-weight: bold;
    font-size: 24px;
}

.type-card strong {
    color: rgb(150, 31, 224);
}

/* ===== SENTENCES CONTAINER ===== */
.sentences-container {
    margin-top: 30px;
}

.sentence-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(61, 242, 236, 0.15));
    padding: 30px;
    border-radius: 15px;
    border: 4px solid rgb(150, 31, 224);
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sentence-category h3 {
    font-size: 26px;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgb(31, 150, 199);
}

.sentence-category ol {
    padding-left: 30px;
}

.sentence-category li {
    font-size: 19px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.8;
}

.highlight {
    background: linear-gradient(135deg, rgba(150, 31, 224, 0.3), rgba(31, 150, 199, 0.3));
    padding: 3px 8px;
    border-radius: 5px;
    color: rgb(150, 31, 224);
    font-weight: bold;
    font-size: 20px;
}

/* ===== FLOWCHART STYLES ===== */
.flowchart-container {
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    border: 4px solid rgb(150, 31, 224);
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.flow-box {
    padding: 20px 30px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    border: 4px solid rgb(150, 31, 224);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.flow-start {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 20, 180));
    color: white;
}

.flow-question {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(20, 100, 150));
    color: white;
}

.flow-manner {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    color: white;
}

.flow-time {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.flow-place {
    background: linear-gradient(135deg, #F7B731, #F79F1F);
    color: white;
}

.flow-frequency {
    background: linear-gradient(135deg, #5F27CD, #341F97);
    color: white;
}

.flow-degree {
    background: linear-gradient(135deg, #00D2FF, #3A7BD5);
    color: white;
}

.flow-certainty {
    background: linear-gradient(135deg, #FA8BFF, #2BD2FF);
    color: white;
}

.flow-interrogative {
    background: linear-gradient(135deg, #FD746C, #FF9068);
    color: white;
}

.flow-relative {
    background: linear-gradient(135deg, #6DD5FA, #2980B9);
    color: white;
}

.flow-arrow {
    font-size: 36px;
    font-weight: bold;
    color: rgb(150, 31, 224);
}

.flow-branches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-arrow-branch {
    font-size: 28px;
    font-weight: bold;
    color: rgb(31, 150, 199);
    margin: 10px 0;
}

/* ===== MIND MAP STYLES ===== */
.mindmap-container {
    margin: 30px 0;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    border: 4px solid rgb(150, 31, 224);
    min-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mindmap {
    position: relative;
    width: 100%;
    height: 750px;
}

.mindmap-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 20, 180));
    color: white;
    padding: 30px 40px;
    border-radius: 50%;
    border: 5px solid rgb(31, 150, 199);
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.mindmap-branch {
    position: absolute;
}

.branch-line {
    position: absolute;
    background: rgb(150, 31, 224);
    height: 4px;
}

.mindmap-node {
    background: linear-gradient(135deg, rgba(61, 242, 236, 0.9), rgba(31, 150, 199, 0.8));
    padding: 20px;
    border-radius: 12px;
    border: 4px solid rgb(150, 31, 224);
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.mindmap-node:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mindmap-node strong {
    color: rgb(150, 31, 224);
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.mindmap-node small {
    color: rgb(31, 150, 199);
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

/* Branch 1 - Top */
.branch-1 {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.line-1 {
    width: 4px;
    height: 120px;
    left: 50%;
    top: 120px;
}

/* Branch 2 - Top Right */
.branch-2 {
    top: 120px;
    right: 100px;
}

.line-2 {
    width: 150px;
    transform: rotate(-35deg);
    left: -80px;
    top: 80px;
}

/* Branch 3 - Right */
.branch-3 {
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
}

.line-3 {
    width: 180px;
    left: -180px;
    top: 50%;
}

/* Branch 4 - Bottom Right */
.branch-4 {
    bottom: 120px;
    right: 100px;
}

.line-4 {
    width: 150px;
    transform: rotate(35deg);
    left: -80px;
    bottom: 80px;
}

/* Branch 5 - Bottom */
.branch-5 {
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.line-5 {
    width: 4px;
    height: 120px;
    left: 50%;
    bottom: 120px;
}

/* Branch 6 - Bottom Left */
.branch-6 {
    bottom: 120px;
    left: 100px;
}

.line-6 {
    width: 150px;
    transform: rotate(-35deg);
    right: -80px;
    bottom: 80px;
}

/* Branch 7 - Left */
.branch-7 {
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
}

.line-7 {
    width: 180px;
    right: -180px;
    top: 50%;
}

/* Branch 8 - Top Left */
.branch-8 {
    top: 120px;
    left: 100px;
}

.line-8 {
    width: 150px;
    transform: rotate(35deg);
    right: -80px;
    top: 80px;
}

/* ===== Q&A SECTION STYLES ===== */
.qa-container {
    margin-top: 30px;
}

.qa-item {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    border-radius: 12px;
    border: 4px solid rgb(150, 31, 224);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.qa-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, rgb(61, 242, 236), rgb(31, 150, 199));
    color: #1a1a1a;
    padding: 20px 25px;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 20, 180));
    color: white;
}

.qa-icon {
    font-size: 28px;
}

.toggle-icon {
    margin-left: auto;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.qa-question.active .toggle-icon {
    transform: rotate(180deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(255, 255, 255, 0.98);
}

.qa-answer.show {
    max-height: 1000px;
    padding: 25px;
    border-top: 3px solid rgb(31, 150, 199);
}

.qa-answer p {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 15px;
}

.qa-answer ul {
    padding-left: 25px;
}

.qa-answer li {
    font-size: 18px;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 10px;
    line-height: 1.7;
}

.qa-answer strong {
    color: rgb(150, 31, 224);
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 5px solid rgb(150, 31, 224);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.footer p {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.back-to-top {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 20, 180));
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 15px 40px;
    border: 3px solid rgb(31, 150, 199);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

.back-to-top:hover {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(20, 100, 150));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .navigation,
    .print-btn,
    .back-to-top {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid #333;
        margin-bottom: 20px;
    }
    
    .qa-answer {
        max-height: none !important;
        padding: 15px !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .type-details {
        grid-template-columns: 1fr;
    }
    
    .flow-branches {
        flex-direction: column;
    }
    
    .mindmap-container {
        padding: 20px;
        min-height: 600px;
    }
    
    .mindmap {
        height: 550px;
    }
    
    .mindmap-node {
        min-width: 140px;
        font-size: 14px;
        padding: 15px;
    }
}