/* ===== Color Variables ===== */
:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #0a0e27;
    --card-bg: #1a1f3a;
    --accent-green: #00ff88;
    --accent-cyan: #00d9ff;
    --accent-purple: #a855f7;
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --border-color: rgba(0, 255, 136, 0.2);
    --critical-color: #ef4444;
    --high-color: #f97316;
    --medium-color: #eab308;
}

html[data-theme="light"]{
    --secondary-bg: #2a2e47;
}

/* ===== Base Styles ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* background: var(--primary-bg); */
    /* color: var(--text-primary); */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===== Exploits Section ===== */
.exploits-section {
    padding: 100px 0;
    background: var(--secondary-bg);
    position: relative;
    min-height: 100vh;
}

.exploits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
}

/* ===== Section Header ===== */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    color: var(--accent-purple);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Exploit Cards ===== */
.exploit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.exploit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.exploit-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.exploit-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-green);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.exploit-card:hover::before {
    transform: scaleX(1);
}

.exploit-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ===== Card Header ===== */
.exploit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.severity-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--critical-color);
    border: 1px solid var(--critical-color);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.severity-badge.high {
    background: rgba(249, 115, 22, 0.2);
    color: var(--high-color);
    border: 1px solid var(--high-color);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.severity-badge.medium {
    background: rgba(234, 179, 8, 0.2);
    color: var(--medium-color);
    border: 1px solid var(--medium-color);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.cve-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--accent-cyan);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 4px;
}

/* ===== Card Content ===== */
.exploit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.exploit-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ===== Card Meta ===== */
.exploit-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.meta-item i {
    color: var(--accent-green);
    font-size: 1rem;
}

/* ===== Tags ===== */
.exploit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--accent-green);
}

/* ===== Exploit Button ===== */
.btn-exploit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-exploit:hover {
    gap: 1rem;
    color: var(--accent-cyan);
}

.btn-exploit i {
    transition: transform 0.3s ease;
}

.btn-exploit:hover i {
    transform: translateX(5px);
}

/* ===== View All Button ===== */
.btn-outline-primary {
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    background: transparent;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-primary:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .exploits-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .exploit-card {
        padding: 1.5rem;
    }
    
    .exploit-title {
        font-size: 1.125rem;
    }
    
    .exploit-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
