/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --bg-light: #f9fafb;
    --text-dark: #1e293b;
    --text-medium: #4b5563;
    --text-light: #64748b;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'Liberation Mono', Menlo, Courier, monospace;
}

/* Prevent zooming */
html {
    touch-action: manipulation;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #4f46e5);
    border-radius: 3px;
}

/* Stats Cards */
.stat-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.75rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-description {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Knowledge Cards */
.knowledge-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.knowledge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.knowledge-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
}

/* Danger Cards */
.danger-card {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.danger-card:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
}

.danger-card svg {
    margin-right: 0.75rem;
}

.danger-card span {
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Tips Cards */
.tip-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tip-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.tip-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tip-description {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Survey Styles */
.survey-step {
    display: none;
}

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

.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #4f46e5);
    border-radius: 3px;
    transition: width 0.3s ease-in-out;
}

.option-container {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.option-container:hover {
    background-color: var(--bg-light);
    border-color: #d1d5db;
}

.option-container input[type="radio"] {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    position: relative;
    cursor: pointer;
}

.option-container input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.option-container input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.625rem;
    height: 0.625rem;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.option-text {
    font-size: 0.9375rem;
    color: var(--text-medium);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .tip-card {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tip-number {
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
