/* ==========================================
   QR CODE AWARENESS CEP - STYLESHEET
   Mobile-First & Modern Android App UI Theme
   ========================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0ea5e9;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --warning-bg: #fffbeb;
    --warning-text: #b45309;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius: 16px;
    --transition: all 0.25s ease;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --danger-bg: #450a0a;
    --success-bg: #052e16;
    --warning-bg: #451a03;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px; /* Space for bottom nav */
    transition: var(--transition);
}

/* Android App Top Bar */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    box-shadow: var(--shadow);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.topbar-brand h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.topbar-brand p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.topbar-actions button {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.topbar-actions button:hover {
    background-color: var(--border-color);
}

/* Main Container */
.app-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    flex: 1;
}

/* Content Sections Display Toggle */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards & UI Elements */
.card, .hero-card, .scam-card, .scenario-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-card {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    text-align: center;
    border: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.safety-banner {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.hero-quick-tips {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tip-pill {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Section Headings */
.section-title, .section-heading {
    margin-bottom: 16px;
    margin-top: 8px;
}

.section-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

.section-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.section-heading h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.section-heading p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Quick Navigation Grid */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.nav-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    box-shadow: var(--shadow);
}

.nav-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.nav-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-card span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Card Elements & Lists */
.card h3, .scam-card h3, .scenario-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card p, .scam-card p, .scenario-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.bullet-list, .numbered-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bullet-list li, .numbered-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bullet-list i {
    color: var(--primary);
    margin-top: 3px;
}

/* Alert & Highlight Boxes */
.alert-card {
    background-color: var(--danger-bg);
    border-color: rgba(220, 38, 38, 0.3);
}

.alert-card h3 {
    color: var(--danger);
}

.highlight-box {
    background-color: var(--warning-bg);
    border-color: rgba(180, 83, 9, 0.3);
}

.highlight-box h3 {
    color: var(--warning-text);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chip-list span {
    background: var(--border-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-num {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    margin-right: 6px;
}

.action-box {
    background: rgba(37, 99, 235, 0.08);
    border-left: 3px solid var(--primary);
    padding: 10px;
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    margin-top: 12px;
    color: var(--text-main);
}

/* Timeline for Verification */
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    position: relative;
}

.step-num {
    position: absolute;
    left: -31px;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Warning Grid */
.warning-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.warning-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.warning-card i {
    color: var(--danger);
    font-size: 1.1rem;
}

/* Dos and Don'ts */
.dos-donts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.do-box h3 {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 12px;
}

.dont-box h3 {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 12px;
}

.box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.box ul li::before {
    content: "• ";
    font-weight: bold;
}

.do-box ul li::before { color: var(--success); }
.dont-box ul li::before { color: var(--danger); }

/* Quiz Styling */
.quiz-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.quiz-progress {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

#quiz-question-screen h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.option-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.option-btn:hover {
    border-color: var(--primary);
}

.option-btn.correct {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
    font-weight: 600;
}

.option-btn.incorrect {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
    font-weight: 600;
}

#quiz-feedback {
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.hidden {
    display: none !important;
}

/* Gallery Placeholder */
.gallery-placeholder {
    background: var(--bg-color);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px 16px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 10px;
}

.gallery-placeholder i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.gallery-placeholder p {
    font-size: 0.75rem;
}

.project-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}

/* Android Bottom Navigation Bar */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.nav-item i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
}

/* Footer */
.app-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

.disclaimer {
    margin-top: 6px;
    font-size: 0.7rem;
    opacity: 0.8;
}
