﻿/* =====================================================
   OpeningGuide – Glossary Core Styles
   Scoped under .openingguide-glossary
   ===================================================== */

/* 1. GLOSSARY TERMS (High Contrast) */
.openingguide-glossary .glossary-content dt {
    font-weight: 700;
    color: #0f2a4a;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    border-bottom: 1px solid #cbd5e0;
    padding-bottom: 0.25rem;
    font-family: 'Roboto', sans-serif;
}

/* 2. GLOSSARY LINKS */
.openingguide-glossary .glossary-content dt a {
    color: #0056b3;
    text-decoration: none;
    border-bottom: 2px solid #0056b3;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.openingguide-glossary .glossary-content dt a::after {
    content: " \2192";
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 5px;
    transition: margin-left 0.2s;
}

.openingguide-glossary .glossary-content dt a:hover {
    color: #003d80;
    border-bottom-color: #003d80;
}

.openingguide-glossary .glossary-content dt a:hover::after {
    margin-left: 10px;
}

.openingguide-glossary .glossary-content dd {
    margin-left: 0;
    padding-left: 1rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

/* 3. SECTION HEADERS (A, B, C...) */
.openingguide-glossary .letter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #a0aec0;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.openingguide-glossary .letter-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #0f2a4a;
}

.openingguide-glossary .letter-header a {
    color: #0056b3;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: bold;
}

.openingguide-glossary .letter-header a:hover {
    text-decoration: underline;
    color: #003d80;
}

/* 4. A–Z NAV BUTTONS */
.openingguide-glossary .nav-btn,
.openingguide-glossary .alphabet-filter a,
.openingguide-glossary .glossary-filter a {
    display: inline-block;
    background-color: #0056b3 !important;
    color: #ffffff !important;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    margin: 0.25rem;
    border: 1px solid #003d80;
}

.openingguide-glossary .nav-btn:hover,
.openingguide-glossary .alphabet-filter a:hover,
.openingguide-glossary .glossary-filter a:hover {
    background-color: #003d80 !important;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 5. INTRO TEXT */
.openingguide-glossary .intro-text {
    margin-bottom: 2rem;
    color: #4a5568;
    font-size: 1.1rem;
}

/* 6. FILTER BUTTONS */
.openingguide-glossary .filter-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 16px;
    margin: 0 5px 5px 0;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: bold;
    color: #444;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
}

.openingguide-glossary .filter-btn:hover {
    background: #e2e6ea;
    color: #000;
}

.openingguide-glossary .filter-btn.active {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

/* 7. DISABLED LETTERS */
.openingguide-glossary .nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    background-color: #e2e8f0 !important;
    color: #a0aec0 !important;
    border-color: #cbd5e0;
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* Openings glossary: move-sequence styling inside term titles */
.openingguide-glossary .glossary-content dt span.moves {
    font-weight: 400;
    font-size: 0.95rem;
    color: #718096;
    margin-left: 0.5rem;
    font-style: italic;
}

/* Optional: explicit styling for back-to-top links */
.openingguide-glossary a.back-to-top {
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: bold;
}

.openingguide-glossary a.back-to-top:hover {
    text-decoration: underline;
}