/* 
 * guide.css 
 * Styles for the Picklepath Guide Engine (Academy / Feature Dictionary)
 */

/* ── MAIN OVERLAY ── */
.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    color: white;
    font-family: 'Manrope', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.guide-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── HEADER & SEARCH ── */
.guide-header {
    flex-shrink: 0;
    padding: 20px 20px 10px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.guide-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.guide-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.guide-close-btn {
    background: rgba(255, 255, 255, 0.35);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.guide-search-wrapper {
    position: relative;
    width: 100%;
}

.guide-search-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, background 0.2s;
}

.guide-search-input:focus {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.35);
}

.guide-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
}

/* ── CARDS SCROLL LIST ── */
.guide-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-list::-webkit-scrollbar {
    width: 0;
}

.guide-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.guide-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

.guide-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 255, 127, 0.1);
    color: #00ff7f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 127, 0.2);
    pointer-events: none;
    /* Prevent icon from eating the click */
}

.guide-card-info {
    flex: 1;
    min-width: 0;
}

.guide-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    /* Prevent text from eating the click */
}

.guide-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    /* Prevent text from eating the click */
}

.guide-card-arrow {
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
}

/* ── TUNNEL VIEW (3-Step Pages) ── */
.guide-tunnel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f172a;
    /* Slate 900 */
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.guide-tunnel.active {
    transform: translateX(0);
}

.tunnel-header {
    flex-shrink: 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tunnel-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 8px 0;
    cursor: pointer;
}

.tunnel-topic-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #00ff7f;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    text-align: center;
    padding-right: 28px;
    /* balance the back button */
}

/* Page Track */
.tunnel-track {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tunnel-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow-y: auto;
}

.tunnel-page.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* Page Content Formatting */
.page-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    line-height: 1.2;
}

.page-body {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-bullets li {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 3px solid #00ff7f;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Pagination Footer */
.tunnel-footer {
    flex-shrink: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 1) 50%, transparent 100%);
}

.tunnel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.t-dot {
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 2px;
    transition: background 0.3s;
}

.t-dot.active {
    background: #00ff7f;
}

.tunnel-next-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    /* Dark Glass */
    color: white;
    /* White text instead of black */
    border: 1px solid rgba(255, 255, 255, 0.35);
    /* Subtle border */
    padding: 16px;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* Dark shadow instead of white light */
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tunnel-next-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(0, 255, 127, 0.4);
    /* Slight neon green hint on hover */
}

.tunnel-next-btn:active {
    transform: scale(0.98);
}

/* ── COMPREHENSION CHECK ── */
.comp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.comp-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.comp-q {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    text-transform: uppercase;
    line-height: 1.2;
}

.comp-btn-row {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

.comp-btn {
    flex: 1;
    padding: 18px 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.comp-btn:active {
    transform: scale(0.95);
}

.comp-btn-yes {
    background: #00ff7f;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.4);
}

.comp-btn-no {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

/* ── SUCCESS SCREEN ── */
.success-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.success-screen.active {
    opacity: 1;
    pointer-events: auto;
}

.ss-icon {
    font-size: 72px;
    margin-bottom: 24px;
    animation: s-pulse 2s infinite;
}

@keyframes s-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 255, 127, 0));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(0, 255, 127, 0.6));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 255, 127, 0));
    }
}

.ss-title {
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #00ff7f;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.ss-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.5;
}

.ss-close-btn {
    background: white;
    color: black;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.55);
}

/* ── MANUAL NAVIGATION (NO) SCREEN ── */
.manual-nav-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1e293b;
    /* Slate 800 */
    z-index: 10003;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.manual-nav-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mn-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 24px;
}

.mn-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    /* Removed fca5a5 red */
    margin-bottom: 16px;
    text-transform: uppercase;
}

.mn-body {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

.mn-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mn-bullets li {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    border-left: 3px solid var(--turf, rgba(0, 255, 127, 0.4));
    /* Match tunnel accent instead of red */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.mn-footer {
    padding: 20px;
    background: #0f172a;
    display: flex;
    gap: 12px;
}

.mn-btn {
    flex: 1;
    padding: 16px 0;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mn-btn:active {
    transform: scale(0.98);
}

.mn-btn-retry {
    background: rgba(255, 255, 255, 0.05);
    /* very subtle */
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.mn-btn-retry:hover {
    background: rgba(255, 255, 255, 0.35);
}

.mn-btn-exit {
    background: rgba(255, 255, 255, 0.35);
    /* Dark glass */
    color: white;
    /* No longer eye-attacking black on white */
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mn-btn-exit:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(0, 255, 127, 0.4);
}