﻿/* ----------------------------
       Base Light & Dark Theme
    ----------------------------- */
body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

body.dark-mode {
    background-color: #1e1e2f;
    color: #f0f0f0;
}

/* ----------------------------
       Welcome Section Styling
    ----------------------------- */
.welcome-section {
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

body.light-mode .welcome-section {
    background-color: #f5f9ff;
    color: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .welcome-section {
    background-color: #2c2c3c; /* Dark but readable */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Headline Fix */
.welcome-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

body.dark-mode .welcome-section h1 {
    color: #ffffff;
    text-shadow: none; /* 🔥 fix fuzzy look */
}

/* Paragraph Fix */
.welcome-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

body.dark-mode .welcome-section p {
    color: #dddddd; /* brighter than #ccc */
    text-shadow: none;
}

/* Fix for dark mode answers visibility */
body.dark-mode .answer {
    background-color: #2a2a40; /* dark background for answer box */
    color: #f5f5f5; /* bright white text */
    padding: 10px 14px;
    margin: 8px 0 14px 0;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}



    /* ----------------------------
       Tabs / Buttons / Q&A Sections
    ----------------------------- */
    body.dark-mode .tab-contents,
    body.dark-mode .question,
    body.dark-mode .sub-tab-content,
    body.dark-mode .answer button {
        color: #f0f0f0 !important;
        background-color: #2a2a40;
        border-color: #444;
    }

.question {
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.answer {
    margin-left: 15px;
    margin-bottom: 10px;
}

.welcome-text {
    color: inherit;
}

.tab-button {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
}

    .tab-button:hover {
        background: linear-gradient(to right, #d4fc79, #96e6a1);
        transform: translateY(-1px);
    }

    .tab-button.active {
        background: linear-gradient(to right, #667eea, #764ba2);
        color: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }

.welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--welcome-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 20px;
    text-align: center;
}

body.light-mode {
    --welcome-bg: #f5f9ff;
}

body.dark-mode {
    --welcome-bg: #2a2a40;
}

.welcome-banner-image img {
    width: 120px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.welcome-banner-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: inherit;
}

.welcome-banner-text .welcome-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: inherit;
    margin: 0.3rem 0;
}

.keywords {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

    .keywords span {
        font-size: 0.9rem;
        font-weight: bold;
        background-color: #007bff;
        color: white;
        padding: 6px 12px;
        border-radius: 16px;
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
        transition: background-color 0.3s;
    }

body.dark-mode .keywords span {
    background-color: #ff6f61;
    box-shadow: 0 2px 6px rgba(255, 111, 97, 0.4);
}
