/* css/clearance.css - THE SECURITY CHECK */

.clearance-section {
    position: relative;
    padding: 6rem 0;
    background-color: #08080a; /* Slightly lighter than void for contrast */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Background Grid Texture */
.clearance-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.clearance-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* --- HEADER --- */
/* --- HEADER (Fully aligned with Mission Partners) --- */
.clearance-header {
    text-align: center;
    margin-bottom: 4rem;
}

.protocol-label {
    /* MATCHING THE "BRANDS" TAGLINE STYLE */
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5); /* Dim White instead of Yellow */
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    display: block; 
    margin-bottom: 1rem;
    text-transform: uppercase;
    
    /* Ensure horizontal orientation */
    writing-mode: horizontal-tb; 
    transform: none;
    opacity: 1;
}

.clearance-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    
    /* THE GHOST STROKE EFFECT */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.clearance-header h2 span {
    /* THE SOLID NEON EFFECT */
    color: var(--primary) !important; 
    -webkit-text-stroke: 0;
    text-shadow: 0 0 30px rgba(236, 246, 116, 0.4);
}

.clearance-header p {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5); 
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- THE GRID --- */
.clearance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* --- ACCESS CARDS --- */
.access-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* AUTHORIZED STYLE (Green/Yellow) */
.access-card.authorized {
    border-color: rgba(236, 246, 116, 0.3);
    background: linear-gradient(180deg, rgba(236, 246, 116, 0.05) 0%, transparent 100%);
}

.access-card.authorized:hover {
    box-shadow: 0 0 30px rgba(236, 246, 116, 0.1);
}

/* RESTRICTED STYLE (Red/Dim) */
.access-card.restricted {
    border-color: rgba(255, 50, 50, 0.15);
    opacity: 0.7; /* Visually pushed back */
}

/* --- CARD CONTENT --- */
.card-status {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-light {
    width: 6px; height: 6px; border-radius: 50%;
}
.status-light.green { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.status-light.red { background: #ff3333; box-shadow: 0 0 10px #ff3333; }

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.criteria-list {
    list-style: none;
    padding: 0;
}

.criteria-list li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tick { color: var(--primary); font-weight: bold; }
.cross { color: #ff3333; font-weight: bold; opacity: 0.7; }

/* SCAN LINE ANIMATION (Only for Authorized) */
.scan-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(236, 246, 116, 0.3);
    box-shadow: 0 0 10px var(--primary);
    animation: scanCard 4s ease-in-out infinite;
    opacity: 0;
}

.access-card.authorized:hover .scan-line {
    opacity: 1;
}

@keyframes scanCard {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* MOBILE */
@media (max-width: 768px) {
    .clearance-grid { grid-template-columns: 1fr; }
    .access-card { padding: 1.5rem; }
    .clearance-header h2 { font-size: 1.8rem; }
}