
/* Financial Literacy Curriculum - Matching React Preview Exactly */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-foreground: #ffffff;
    --muted-foreground: #64748b;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --emerald: #10b981;
    --amber: #f59e0b;
}

#flc-app-root {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 896px;
    margin: 0 auto;
    color: #0f172a;
    line-height: 1.5;
}

/* Module Grid - 2 columns on desktop */
.flc-module-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .flc-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Header Section */
.flc-header {
    text-align: center;
    margin-bottom: 32px;
}

.flc-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    color: var(--primary);
    margin: 0 0 8px 0;
}

.flc-header p {
    color: var(--muted-foreground);
    margin: 0;
}

/* Module Cards */
.flc-module-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flc-module-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.flc-module-card:hover .flc-module-title {
    color: var(--primary);
}

.flc-module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.flc-module-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    transition: color 0.2s ease;
}

.flc-module-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flc-module-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: auto;
    padding-top: 16px;
}

.flc-module-meta svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Status Icons */
.flc-status-icon {
    flex-shrink: 0;
}

.flc-status-icon.completed {
    color: #16a34a;
}

.flc-status-icon.pending {
    color: var(--muted-foreground);
    opacity: 0.3;
}

/* Modal/Player */
#flc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.flc-player {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    max-width: 896px;
    margin: 0 auto;
    overflow: hidden;
}

.flc-player-header {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flc-player-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flc-player-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.flc-player-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.flc-player-close:hover {
    background: rgba(255,255,255,0.2);
}

.flc-player-body {
    padding: 32px;
    max-height: 600px;
    overflow-y: auto;
}

/* Tabs */
.flc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.flc-tab {
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.flc-tab.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.flc-tab svg {
    width: 16px;
    height: 16px;
}

/* Objectives Box */
.flc-objectives {
    background: linear-gradient(to right, #eff6ff, #ecfdf5);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 32px;
}

.flc-objectives-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e40af;
    margin: 0 0 8px 0;
}

.flc-objectives ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.flc-objectives li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: #1d4ed8;
    margin-bottom: 4px;
}

.flc-objectives li::before {
    content: "✓";
    color: var(--emerald);
    margin-top: 2px;
}

/* Lesson Content */
.flc-lesson {
    margin-bottom: 32px;
}

.flc-lesson h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin: 0 0 16px 0;
}

.flc-lesson-content {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Activity Box - Matching React exactly */
.flc-activity {
    background: linear-gradient(to bottom right, #eff6ff, white, #eff6ff);
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.flc-activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.flc-activity-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.flc-activity-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.flc-activity-content {
    color: #1e40af;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 0.875rem;
}

.flc-activity-content strong,
.flc-strong {
    color: #1e3a8a;
    font-weight: 700;
}

.flc-activity-content em,
.flc-em {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

/* Activity text formatting classes */
.flc-activity-content hr,
.flc-hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #bfdbfe;
}

.flc-mono {
    font-family: monospace;
    font-size: 0.75rem;
}

.flc-pipe {
    font-family: monospace;
    color: #93c5fd;
}

/* Deliverable */
.flc-deliverable {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #bfdbfe;
}

.flc-deliverable-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #047857;
    margin: 0 0 4px 0;
}

.flc-deliverable p {
    color: #374151;
    margin: 0;
}

/* Quiz Section */
.flc-quiz-intro {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.flc-quiz-intro p {
    color: #92400e;
    font-weight: 500;
    margin: 0;
}

.flc-quiz-question {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.flc-quiz-question:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.flc-quiz-question-text {
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.flc-question-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.flc-quiz-options {
    margin-left: 40px;
}

.flc-quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 8px;
}

.flc-quiz-option:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.flc-quiz-option input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.flc-quiz-option span {
    color: #374151;
}

/* Buttons */
.flc-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flc-btn:hover {
    background: #1d4ed8;
}

.flc-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.flc-btn-success {
    background: var(--emerald);
}

.flc-btn-success:hover {
    background: #059669;
}

.flc-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 32px;
}

/* Tab Content */
.flc-tab-content {
    display: none;
}

.flc-tab-content.active {
    display: block;
}
