/* helpstyles.css - EDX Security Hub Theme
   Unified styling for all cybersecurity educational guides
   Matches the Dashboard reference page theme */

:root {
    --primary: #ff2a2a;
    --primary-dark: #cc0000;
    --primary-light: #ff5555;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #6b7280;
    --border-glow: rgba(255, 42, 42, 0.3);
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    --warning: #ffaa44;
    --danger: #ff4444;
    --success: #44ff44;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 50%, #050505 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Poppins', 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(204, 0, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 42, 42, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Protection Message - matches dashboard exactly */
.protection-message {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #ff8888;
    background: linear-gradient(90deg, #1a0101, #2a0101, #1a0101);
    border-bottom: 1px solid var(--primary);
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.protection-message i {
    margin-right: 8px;
}

/* Premium Navbar - matches dashboard exactly */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 42, 42, 0.3);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.nav-brand .logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #cc0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-brand .sub {
    font-size: 10px;
    color: #666;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #ff6666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    border-radius: 0;
    background: transparent;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: white;
    background: transparent;
    transform: none;
}

.nav-links a.active {
    color: white;
}

/* Quick Navigation - improved from original */
.quick-nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    text-align: center;
    position: sticky;
    top: 70px;
    z-index: 99;
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 20px;
}

.quick-nav a:hover {
    color: var(--primary);
    background: rgba(255, 68, 68, 0.1);
}

/* Headers - matching dashboard aesthetic */
h1 {
    text-align: center;
    padding: 40px 20px 20px;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    animation: fadeInDown 0.6s ease-out;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin: 30px 0 20px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
    margin: 15px 0 10px;
    color: var(--primary-light);
}

/* Sections - matches dashboard card styling */
.section {
    margin: 30px auto;
    max-width: 1200px;
    padding: 28px 32px;
    background: linear-gradient(145deg, var(--bg-card), #0c0c0c);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 24px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff2a2a, #ff6666, #ff2a2a);
    opacity: 0.5;
}

.section:hover {
    border-color: rgba(255, 68, 68, 0.4);
    box-shadow: 0 12px 30px rgba(255, 68, 68, 0.1);
}

.section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.section ul, .section ol {
    padding-left: 25px;
    margin: 15px 0;
}

.section ul li, .section ol li {
    margin: 12px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section ul li strong, .section ol li strong {
    color: var(--text-primary);
}

/* Tool Lists - grid layout from original but enhanced */
.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 68, 68, 0.5);
    background: rgba(255, 68, 68, 0.03);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.15);
}

.tool-card h4 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Warning Box - matches dashboard warning style */
.warning {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    padding: 20px 25px;
    border-radius: 16px;
    margin: 30px auto;
    max-width: 1200px;
    backdrop-filter: blur(4px);
}

.warning h2, .warning h3 {
    color: var(--danger);
    margin-top: 0;
}

.warning p {
    color: var(--text-secondary);
}

/* Info Box */
.info-box {
    background: rgba(255, 170, 68, 0.1);
    border-left: 4px solid var(--warning);
    padding: 20px 25px;
    border-radius: 16px;
    margin: 20px 0;
}

.info-box p {
    margin: 0;
    color: var(--text-secondary);
}

.info-box i {
    color: var(--warning);
    margin-right: 10px;
}

/* Success Box */
.success-box {
    background: rgba(68, 255, 68, 0.1);
    border-left: 4px solid var(--success);
    padding: 20px 25px;
    border-radius: 16px;
    margin: 20px 0;
}

.success-box p {
    margin: 0;
    color: var(--text-secondary);
}

/* Code Block */
.code-example {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
    margin: 15px 0;
}

.code-example code {
    color: var(--primary-light);
}

/* Demo Button - matches dashboard button style */
.demo-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Category Title */
.category-title {
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin: 30px 0 20px;
    font-size: 1.3rem;
}

/* Badges */
.badge-legit {
    display: inline-block;
    background: rgba(68, 255, 68, 0.2);
    color: #88ff88;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 8px;
}

.badge-malicious {
    display: inline-block;
    background: rgba(255, 68, 68, 0.2);
    color: #ff8888;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 8px;
}

/* Footer - matches dashboard */
.footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid rgba(255, 68, 68, 0.1);
    margin-top: 30px;
}

.footer p {
    font-size: 11px;
    color: #444;
}

/* Animations - from dashboard */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar - matches dashboard */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Responsive Design - matches dashboard breakpoints */
@media (max-width: 968px) {
    .navbar {
        flex-direction: column;
        padding: 16px 20px;
    }
    
    .nav-brand {
        margin-right: 0;
    }
    
    .nav-links {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 5px 0;
    }
    
    .quick-nav {
        top: 60px;
        padding: 10px 15px;
    }
    
    .quick-nav a {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    h1 {
        font-size: 2rem;
        padding: 30px 15px 15px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .section {
        margin: 20px;
        padding: 20px 24px;
    }
    
    .tool-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .warning, .info-box, .success-box {
        margin: 20px;
        padding: 16px 20px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .section {
        margin: 15px;
        padding: 16px 20px;
    }
    
    .tool-card {
        padding: 15px;
    }
    
    .quick-nav {
        display: none; /* Hide quick-nav on mobile for cleaner layout */
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}