:root {
    --primary-color: #0693e3;
    --secondary-color: #9b51e0;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --border-radius: 12px;
}

body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__logo { height: 40px; }

.site-header__title { font-size: 1.25rem; font-weight: 800; color: #fff; }
.site-header__subtitle { font-size: 0.85rem; color: var(--text-secondary); }

.site-header__actions { display: flex; gap: 0.75rem; align-items: center; }

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary-color); color: #fff; }
.btn--secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn--small { font-size: 0.85rem; }
.btn--icon { width: 40px; height: 40px; justify-content: center; border-radius: 50%; }

/* App Components */
.score-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.score-card {
    text-align: center;
    min-width: 150px;
}

.score-value {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.score-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.score-visual { flex: 1; }

.score-bar-bg {
    height: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.compliance-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.section-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-icon { font-size: 1.5rem; }

.item-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checklist-item input { display: none; }

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.checklist-item input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checklist-item input:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
}

.actions-area {
    text-align: center;
    margin-top: 4rem;
}

/* Report Modal */
.report-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.report-modal {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.report-summary {
    padding: 2rem;
    margin: 2rem 0;
    background: var(--bg-dark);
    border-left: 5px solid;
}

.final-score { font-size: 3rem; font-weight: 800; }
.final-status { font-weight: 700; font-size: 1.25rem; margin-top: 0.5rem; }

.report-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

@media (max-width: 640px) {
    .score-header { flex-direction: column; gap: 2rem; }
}

@media print {
    header, footer, .actions-area, #dark-toggle { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .report-overlay { position: static; background: none; }
    .report-modal { box-shadow: none; border: none; width: 100%; max-width: none; }
}

/* Footer */
.site-footer {
    background: #000;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.site-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.site-footer__logo { height: 60px; margin-bottom: 1rem; }
.site-footer__tagline { color: var(--text-secondary); max-width: 300px; }

.site-footer__bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.disclaimer { margin-top: 1rem; font-style: italic; font-size: 0.8rem; }

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    border: 1px solid var(--primary-color);
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { font-size: 2rem; cursor: pointer; color: var(--text-secondary); }

.code-container {
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.embed-code-textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #4ade80;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    resize: none;
    height: 80px;
}

.email-input-group { display: flex; gap: 0.5rem; }
.email-input { flex: 1; padding: 0.75rem; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-dark); color: #fff; }

@media (max-width: 768px) {
    .site-header__container { flex-direction: column; gap: 1rem; text-align: center; }
    .site-footer__content { flex-direction: column; text-align: center; }
}
