/* ----------------------------- Base Colors ------------------------------- */
:root {
    --primary-color: #00ffff;
    --secondary-color: #00cccc;
    --background-color: rgba(15, 15, 15, 0.9);
    --text-color: #ccc;
    --code-bg: #000;
    --code-text: #cfe8ff;
}

/* ----------------------------- Hero Section ------------------------------- */
.hero-section {
    width: 100%;
    background: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    margin: 50px 0 2rem 0;
}

.hero-section h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ----------------------------- Learning Sections ------------------------------- */
.learning-section {
    width: 100%;
    background: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    padding: 2rem;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.learning-section h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.learning-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
}

.learning-section p,
.learning-section ul,
.learning-section li {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.learning-section ul {
    padding-left: 1.5rem;
    margin: 0.8rem 0 1.2rem 0;
    list-style-type: disc;
}

.learning-section li {
    margin: 0.4rem 0;
    position: relative;
}

.learning-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.learning-section a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ----------------------------- Step Warning ------------------------------- */
#step-warning {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: var(--primary-color);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

#step-warning.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ----------------------------- Terminal / Code Blocks ------------------------------- */
.terminal {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1rem;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.45;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 0.75rem;
}

.terminal code {
    white-space: pre;
    display: block;
}

/* ----------------------------- Crypto / Special Sections ------------------------------- */
.crypto-section {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto 3rem auto;
    padding: 2rem 1.5rem;
    background: transparent;
    position: relative;
    line-height: 1.95;
}

.crypto-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(0, 255, 255, 0),
        rgba(0, 255, 255, 0.35),
        rgba(0, 255, 255, 0)
    );
}

.crypto-section h2 {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.25);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.crypto-section p {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
}

.crypto-section strong {
    color: var(--primary-color);
}

.crypto-section ul {
    padding-left: 1.5rem;
    margin: 0.8rem 0 1.6rem 0;
}

.crypto-section li {
    color: var(--text-color);
    font-size: 0.99rem;
    margin: 0.5rem 0;
    line-height: 1.5;
    position: relative;
}

/* ----------------------------- Accordion Buttons ------------------------------- */
.accordion-btn {
    background: var(--background-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn:hover {
    background: rgba(0, 255, 255, 0.05);
}

.accordion-btn.active {
    background: rgba(0, 255, 255, 0.2);
}

.accordion-btn::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-btn.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    background: var(--background-color);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 0.8rem 1rem;
    display: none;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ----------------------------- CSS Grid ------------------------------- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.grid-item {
    background: var(--secondary-color);
    padding: 1rem;
    text-align: center;
    border-radius: 6px;
    color: #000;
}

/* ----------------------------- Flexbox Example ------------------------------- */
.flex-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 200px;
    background: var(--background-color);
    padding: 1rem;
    gap: 1rem;
}

.box {
    background: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    color: #000;
    flex: 1;
    margin: 0.5rem;
}

/* ----------------------------- Animations ------------------------------- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------- Responsive ------------------------------- */
@media(max-width: 768px) {
    .learning-section,
    .crypto-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .accordion-btn {
        font-size: 0.95rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .grid-item {
        padding: 1rem;
    }

    .flex-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        height: auto;
        gap: 1rem;
        padding: 1rem 0;
    }

    .box {
        width: 100%;
        padding: 1rem;
        margin: 0;
        text-align: center;
    }
}

@media(max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .learning-section h2,
    .crypto-section h2 {
        font-size: 1.3rem;
    }

    .learning-section p,
    .crypto-section p,
    .crypto-section li {
        font-size: 0.9rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .grid-item {
        padding: 0.8rem;
    }

    .flex-container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.5rem 0;
    }

    .box {
        width: 100%;
        padding: 0.8rem;
    }

    .learning-section,
    .crypto-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}
