/* ========================================
   SECURITY TEST WEBSITE - STYLING
   From friendly to creepy progression
   ======================================== */

:root {
    --friendly-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --neutral-bg: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --warning-bg: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --danger-bg: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --reveal-bg: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    
    --text-light: #ffffff;
    --text-dark: #333333;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 0.5s ease;
}

/* Page-specific backgrounds */
body.page-welcome {
    background: var(--friendly-bg);
}

body.page-1 {
    background: var(--neutral-bg);
}

body.page-2 {
    background: var(--warning-bg);
}

body.page-3 {
    background: linear-gradient(135deg, #ff6b6b 0%, #c44569 100%);
}

body.page-4 {
    background: var(--danger-bg);
}

body.page-reveal {
    background: var(--reveal-bg);
    animation: pulse-bg 3s infinite alternate;
}

body.page-noscript {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

@keyframes pulse-bg {
    0% { filter: brightness(1); }
    100% { filter: brightness(0.8); }
}

/* Container */
.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease;
}

.container.large {
    max-width: 1200px;
}

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

/* Icons */
.icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

.icon.big {
    font-size: 6rem;
    animation: shake 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Typography */
h1 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

h2 {
    color: var(--text-dark);
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
}

h3 {
    color: var(--text-dark);
    margin: 15px 0 10px 0;
    font-size: 1.2rem;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-style: italic;
}

p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.small-text {
    font-size: 0.9rem;
    color: #666;
}

/* Content sections */
.content {
    margin: 30px 0;
}

.revelation ul {
    margin: 20px 0;
    padding-left: 30px;
}

.revelation li {
    margin: 10px 0;
    line-height: 1.6;
}

.revelation li strong {
    color: #d32f2f;
}

/* Info boxes */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.info-box.warning {
    background: #fff3e0;
    border-left-color: var(--warning);
}

.info-box.danger {
    background: #ffebee;
    border-left-color: var(--danger);
}

.info-box.success {
    background: #e8f5e9;
    border-left-color: var(--success);
}

.info-box h2 {
    margin-top: 0;
}

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.badge {
    background: #4caf50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: block;
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Form elements */
.text-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.link-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.link-box p {
    margin: 15px 0;
}

.link-box a {
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    padding: 5px 0;
}

.link-url {
    font-size: 0.9rem;
    color: #666;
    font-family: 'Courier New', monospace;
    margin-top: 5px !important;
}

.hint {
    font-style: italic;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
}

/* Scan box */
.scan-box {
    background: linear-gradient(135deg, #373b44 0%, #4286f4 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 25px 0;
}

.scan-box p {
    color: white;
    margin: 10px 0;
}

.scan-box em {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    color: var(--danger);
    margin-top: 0;
}

.modal-content ul {
    text-align: left;
    margin: 20px 0;
}

/* Progress bar */
.progress {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    color: #666;
    font-weight: bold;
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

/* Data display on reveal page */
.data-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.data-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.data-section.danger {
    border-color: var(--danger);
    background: #ffebee;
}

.data-section h3 {
    margin-top: 0;
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.data-section ul {
    list-style: none;
    padding: 0;
}

.data-section li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    word-break: break-word;
}

.data-section li:last-child {
    border-bottom: none;
}

.data-section strong {
    color: #333;
    font-weight: 600;
}

/* Lesson boxes */
.lesson-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.lesson-box h3 {
    color: #667eea;
    margin-top: 0;
}

/* Protection list */
.protection-list {
    background: #e8f5e9;
    padding: 25px 25px 25px 50px;
    border-radius: 10px;
    margin: 20px 0;
}

.protection-list li {
    margin: 10px 0;
    color: var(--text-dark);
}

/* No-script specific */
.congrats {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
    animation: bounce 1s infinite;
}

.code-box {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .icon {
        font-size: 3rem;
    }
    
    .data-sections {
        grid-template-columns: 1fr;
    }
}
