/* ===================================
   THREAT VECTORS SECTION STYLES
   =================================== */

/* Main Threat Vectors Section */
.threat-vectors-section {
    padding: 6rem 0;
    position: relative;
}

/* Threat Grid Layout */
.threat-vectors-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.threat-vectors-section .grid-cols-1 {
    grid-template-columns: 1fr;
}

.threat-vectors-section .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.threat-vectors-section .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Console Section */
#console-section {
    width: 100%;
    background: rgba(0, 10, 26, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Console Header */
#console-section .p-3 {
    padding: 0.75rem;
}

#console-section .border-b {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

#console-section .bg-slate-900\/50 {
    background: rgba(15, 23, 42, 0.5);
}

#console-section .flex {
    display: flex;
}

#console-section .justify-between {
    justify-content: space-between;
}

#console-section .items-center {
    align-items: center;
}

#console-section .shrink-0 {
    flex-shrink: 0;
}

/* Console Content */
#console-content {
    flex: 1;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    position: relative;
}

/* Console Empty State */
#console-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(148, 163, 184, 0.6);
    gap: 1rem;
    opacity: 0.5;
    padding: 5rem 0;
}

#console-empty.hidden {
    display: none !important;
}

#console-empty .w-12 {
    width: 3rem;
}

#console-empty .h-12 {
    height: 3rem;
}

#console-empty .text-slate-700 {
    color: rgba(51, 65, 85, 0.8);
}

#console-empty .space-y-4 > * + * {
    margin-top: 1rem;
}

/* Console Data Grid */
#console-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

#console-data.hidden {
    display: none;
}

#console-data .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

#console-data .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Console Section Headers */
#console-data h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

#console-data .text-\[\#04D9FF\] {
    color: #04D9FF;
}

#console-data .text-slate-500 {
    color: rgba(100, 116, 139, 0.8);
}

#console-data .text-emerald-500 {
    color: #10b981;
}

#console-data .border-b {
    border-bottom: 1px solid;
}

#console-data .border-slate-800 {
    border-color: rgba(30, 41, 59, 0.8);
}

#console-data .border-emerald-500\/20 {
    border-color: rgba(16, 185, 129, 0.2);
}

#console-data .pb-1 {
    padding-bottom: 0.25rem;
}

/* Console Content Text */
#console-data p {
    line-height: 1.6;
}

#console-data .text-\[\#04D9FF\] {
    color: #04D9FF;
}

#console-data .font-bold {
    font-weight: 700;
}

#console-data .italic {
    font-style: italic;
}

#console-data .text-sm {
    font-size: 0.875rem;
}

#console-data .text-slate-300 {
    color: rgba(203, 213, 225, 0.8);
}

#console-data .leading-relaxed {
    line-height: 1.6;
}

#console-data .text-xs {
    font-size: 0.75rem;
}

/* Console Lists */
#console-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#console-data .space-y-2 > * + * {
    margin-top: 0.5rem;
}

#console-data .text-\[\#04D9FF\] {
    color: #04D9FF;
}

#console-data .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Console Animation */
.console-entry {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Risk Card Styles */
.risk-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.risk-card:hover {
    transform: translateY(-2px);
    border-color: #04D9FF;
    box-shadow: 0 0 15px rgba(4, 217, 255, 0.15);
}

.risk-card.active {
    border-color: #04D9FF;
    background-color: rgba(4, 217, 255, 0.05);
    box-shadow: 0 0 20px rgba(4, 217, 255, 0.25);
}

/* Zoom Effect Styles */
#card-grid {
    position: relative;
    min-height: 400px;
}

/* Zoomed Card State */
.risk-card.zoomed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.4);
    width: 300px;
    height: 200px;
    z-index: 100;
    border-color: #04D9FF;
    background-color: rgba(4, 217, 255, 0.08);
    box-shadow: 0 25px 50px rgba(4, 217, 255, 0.3), 0 0 0 1px rgba(4, 217, 255, 0.2);
    cursor: zoom-out;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.risk-card.zoomed .h-32,
.risk-card.zoomed .h-40 {
    height: 180px;
}

.risk-card.zoomed svg {
    width: 100% !important;
    height: 100% !important;
    transform: scale(1.2);
    transform-origin: center;
}

.risk-card.zoomed .p-4 {
    padding: 0.75rem;
}

/* Fix text size in zoomed card footer */
.risk-card.zoomed .p-4 h3 {
    font-size: 0.7rem !important;
}

.risk-card.zoomed .p-4 p {
    font-size: 6px !important;
}

/* Make zoomed card footer less transparent */
.risk-card.zoomed .p-4 {
    background: rgba(15, 23, 42, 0.95); /* Much more opaque dark background */
    border-top: 1px solid rgba(4, 217, 255, 0.2); /* Subtle border for definition */
}

/* Grid container adjustments for zoom */
#card-grid.zoom-active {
    min-height: 450px;
    position: relative;
}

/* Dim other cards when one is zoomed */
#card-grid.zoom-active .risk-card:not(.zoomed) {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
}

/* Feature Panel for Firm Assessment */
.feature-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.firm-assessment-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 900px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Loading Placeholder */
.loading-placeholder {
    text-align: center;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    padding: 2rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet Styles */
@media (max-width: 768px) {
    .threat-vectors-section .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #console-section {
        margin-top: 0.75rem;
    }
    
    #console-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    #console-data {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .risk-card {
        padding: 1.5rem;
    }
    
    .firm-assessment-card {
        padding: 2rem;
    }
}

/* Mobile zoom adjustments */
@media (max-width: 768px) {
    .risk-card.zoomed {
        width: 95vw;
        transform: translate(-50%, -50%);
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .risk-card.zoomed svg {
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .threat-vectors-section {
        padding: 4rem 0;
    }
    
    #console-section {
        border-radius: 6px;
        margin-top: 0.5rem;
    }
    
    #console-content {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    #console-empty {
        padding: 3rem 0;
        gap: 0.75rem;
    }
    
    #console-data {
        gap: 1rem;
    }
    
    #console-data h3 {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    #console-data p,
    #console-data ul {
        font-size: 0.7rem;
    }
    
    .risk-card {
        padding: 1rem;
    }
    
    .risk-card.zoomed {
        width: 98vw;
        padding: 1.5rem;
    }
    
    .firm-assessment-card {
        padding: 1.5rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.w-full {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.flex-col {
    flex-direction: column;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ===================================
   COLOR VARIABLES
   =================================== */

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --emerald-500: #10b981;
}

/* CRT Scanline */
.scanline {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 50;
}

/* Card Hover Effects */
.risk-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.risk-card:hover:not(.zoomed) {
    transform: translateY(-2px);
    border-color: #04D9FF;
    box-shadow: 0 0 15px rgba(4, 217, 255, 0.15);
}
.risk-card.active {
    border-color: #04D9FF;
    background-color: rgba(4, 217, 255, 0.05);
    box-shadow: 0 0 20px rgba(4, 217, 255, 0.25);
}

/* Disable hover effects on zoomed card */
.risk-card.zoomed:hover {
    transform: translate(-50%, -50%) scale(2.4) !important;
    border-color: #04D9FF;
    box-shadow: 0 25px 50px rgba(4, 217, 255, 0.3), 0 0 0 1px rgba(4, 217, 255, 0.2);
}

/* Console Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.console-entry {
    animation: fadeIn 0.3s ease-out forwards;
}
