/* ============================================================
 * template-help-center.php — page-specific CSS
 * Φορτώνεται ΜΕΤΑ το golab-design-system.css (βλ. functions.php)
 * ============================================================ */

/* ------------------------------------------------------------
 * Γρήγορη πλοήγηση — badges που λειτουργούν σαν anchor links
 * ---------------------------------------------------------- */
.golab-badges--nav {
    justify-content: center;
    margin-bottom: 10px;
}

.golab-badges--nav .golab-badge {
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.golab-badges--nav .golab-badge:hover {
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
 * Λίστα FAQ — στοίχιση αριστερά, ένα κάτω από το άλλο
 * ---------------------------------------------------------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 16px;
    padding: 18px 22px;
}

/* ------------------------------------------------------------
 * <summary> — κρύβουμε το native βελάκι, βάζουμε δικό μας +/×
 * ---------------------------------------------------------- */
.faq-question {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }

.faq-question::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.6em;
    line-height: 1;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-item[open] .faq-question {
    margin-bottom: 4px;
}

/* ------------------------------------------------------------
 * Απάντηση
 * ---------------------------------------------------------- */
.faq-answer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed var(--border-color);
    line-height: 1.65;
    color: var(--text-muted);
}

.faq-answer a { color: var(--primary); text-decoration: underline; }

/* Μικρό fade-in στο άνοιγμα, χωρίς JS */
@media (prefers-reduced-motion: no-preference) {
    .faq-item[open] .faq-answer {
        animation: golab-faq-fade 0.25s ease;
    }
}
@keyframes golab-faq-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------- */
@media (max-width: 640px) {
    .faq-item { padding: 14px 16px; }
    .faq-question { font-size: 1em; gap: 10px; }
}
