@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary: #007AFF;
    --text: #1d1d1f;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --muted: #86868b;
    --border: #e5e5ea;
    --secondary: #00C7FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Roboto", sans-serif;
    background: #f5f5f7;
    color: var(--text);
    line-height: 1.5;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* HEADER */
.local-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.back-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.back-link:hover {
    text-decoration: underline;
}

.header-brand {
    font-family: "Arial", sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(90deg, #1d1d1f, var(--primary), var(--secondary), #1d1d1f);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
}

.search-container {
    display: flex;
    gap: 10px;
    max-width: 100%;
}

.search-container input {
    padding: 10px 10px;
    border-radius: 20px;
    border: 1px solid #d2d2d7;
    background: #f5f5f7;
    width: 250px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
    max-width: 100%;
}
.search-container input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,122,255,0.1);
}

.search-container select {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #d2d2d7;
    background: #f5f5f7;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
}

/* MAIN */
.qa-wrapper {
    padding: 10px 20px 40px;
    min-height: 80vh;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
}

.page-title {
    font-family: "Arial", sans-serif;
    font-size: 1.0rem;
    margin-bottom: 40px;
    text-align: center;
}

.qa-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARD */
.qa-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,122,255,0.1);
    border-color: rgba(0,122,255,0.2);
}

.qa-question {
    font-family: "Arial", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    position: relative;
    padding-right: 25px;
    line-height: 1.2;
}
.qa-question::after {
    content: '+'; position: absolute; right: 0; top: 0;
    color: var(--primary); transition: transform 0.3s;
}
.qa-question.large { font-size: 2rem; margin-bottom: 15px; }

.qa-answer {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}
.qa-answer.preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
    transition: all 0.3s;
}
.qa-card.active .qa-answer.preview {
    -webkit-line-clamp: unset;
    opacity: 1;
}
.qa-card.active .qa-question::after {
    transform: rotate(45deg);
}
.qa-answer.full {
    font-size: 1.1rem;
}

.qa-meta {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mb-4 { margin-bottom: 20px; margin-top: 0; }

/* SINGLE PAGE */
.single-qa-container { max-width: 800px; }
.qa-card.full-view { cursor: default; transform: none; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.qa-card.full-view:hover { transform: none; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.03); }

.related-section { margin-top: 60px; border-top: 1px solid #eee; padding-top: 40px; }
.related-title { font-family: "Arial", sans-serif; font-size: 1.5rem; margin-bottom: 25px; }

/* FOOTER */
.local-footer {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    .local-header { flex-direction: column; gap: 15px; }
    .search-container { flex-direction: column; width: 100%; }
    .search-container input, .search-container select { width: 100%; }
}

@keyframes shine {
    to { background-position: 300%; }
}