/* Modern Cyber Awareness Design System */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(18, 26, 44, 0.7);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --primary-amber: #f59e0b;
    --primary-orange: #f97316;
    --danger-red: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.25);
    --success-green: #10b981;
    --success-glow: rgba(16, 185, 129, 0.25);
    --accent-blue: #3b82f6;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-glow: 0 10px 30px -10px rgba(245, 158, 11, 0.3);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.08) 40%, rgba(11, 15, 25, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary-amber);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-green .dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.warning-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-amber);
    background: rgba(245, 158, 11, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-bottom: 40px;
}

/* URL Inspector Card */
.url-card {
    border-color: rgba(245, 158, 11, 0.2);
}

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.browser-bar {
    background: #060911;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.url-input-field {
    flex: 1;
    background: #0f172a;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.lock-icon {
    font-size: 0.9rem;
}

.protocol {
    color: #64748b;
}

.domain-breakdown {
    color: #f8fafc;
}

.highlight-trick {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(239, 68, 68, 0.5);
    animation: flash 1.5s infinite alternate;
}

@keyframes flash {
    0% { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); }
    100% { background: rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.8); }
}

.url-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.explanation-box {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    align-items: flex-start;
}

.explanation-box.danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.explanation-box.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.box-icon {
    font-size: 1.4rem;
}

.code-badge {
    font-family: var(--font-mono);
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #fde047;
}

.interactive-toggle-container {
    text-align: center;
}

.btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-amber), var(--primary-orange));
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -8px rgba(245, 158, 11, 0.5);
}

/* Comparison Display */
.comparison-display {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.comp-col {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.3);
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.danger-badge {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-red);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.success-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.big-domain {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 16px 0;
}

.spotlight-danger {
    color: #ef4444;
    text-decoration: underline;
    background: rgba(239, 68, 68, 0.2);
    padding: 0 4px;
}

.spotlight-success {
    color: #10b981;
    text-decoration: underline;
    background: rgba(16, 185, 129, 0.2);
    padding: 0 4px;
}

.vs-divider {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* Tips Grid */
.tips-section {
    margin: 60px 0;
}

.text-center {
    text-align: center;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.tip-card {
    position: relative;
    padding: 28px;
    margin-bottom: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.4);
}

.tip-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
}

.tip-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.tip-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.tip-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
}

/* Quiz Section */
.quiz-section {
    border-color: rgba(59, 130, 246, 0.2);
}

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.quiz-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.quiz-url {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: #e2e8f0;
}

.quiz-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quiz-btn:hover {
    background: rgba(255,255,255,0.2);
}

.quiz-result-box {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.quiz-result-box.fake {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger-red);
    color: #fca5a5;
}

.quiz-result-box.real {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success-green);
    color: #6ee7b7;
}

/* Disclaimer */
.disclaimer-section {
    margin: 60px 0 40px;
}

.disclaimer-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.disclaimer-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sub-footer {
    font-size: 0.8rem;
    color: #475569;
    margin-top: 4px;
}

.hidden {
    display: none !important;
}

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

@media (max-width: 600px) {
    .glass-panel { padding: 24px 18px; }
    .quiz-item { flex-direction: column; align-items: flex-start; }
    .quiz-btn { width: 100%; margin-top: 8px; }
}
