/* Essential InfoSec - Styles */

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }

/* ─── Base ──────────────────────────────────────── */
table { border-collapse: separate; border-spacing: 0; }

/* ─── Story Cards ───────────────────────────────── */
.story-card {
    transition: background-color 0.15s ease;
}
.story-card:hover {
    background-color: #1a1a1a;
}

/* ─── Sponsored Card ────────────────────────────── */
.sponsored-card {
    position: relative;
}

/* ─── Category Tags ─────────────────────────────── */
.category-tag {
    font-size: 10px;
}
.category-general { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.category-threat-intel { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.category-vulnerability { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.category-breach { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.category-malware { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.category-policy { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.category-tools { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }

/* ─── Spinner ───────────────────────────────────── */
.spinner {
    border: 3px solid #2a2a2a;
    border-top: 3px solid #00ff41;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ─── Animations ────────────────────────────────── */
.fade-in { animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-in { animation: slideIn 0.3s ease-out; }
@keyframes slideIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ─── Buttons ───────────────────────────────────── */
.btn-primary {
    background-color: #00cc33;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-primary:hover { background-color: #00aa28; }

.btn-secondary {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #2a2a2a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-secondary:hover { background-color: #252525; }

/* ─── Form Inputs ───────────────────────────────── */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.15);
}
input[type="checkbox"] { accent-color: #00cc33; }

/* ─── Status Dots ───────────────────────────────── */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.running { background-color: #3b82f6; animation: pulse 1.5s infinite; }
.status-dot.completed { background-color: #22c55e; }
.status-dot.failed { background-color: #dc2626; }
.status-dot.pending { background-color: #eab308; }

/* ─── Card Hover ────────────────────────────────── */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ─── Vote Widget ──────────────────────────────── */
.vote-widget {
    min-width: 28px;
    flex-shrink: 0;
}
.vote-btn {
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: transform 0.1s ease;
}
.vote-btn:active {
    transform: scale(0.85);
}
.vote-widget-lg {
    min-width: 36px;
}

/* ─── Print ─────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }
    body { background: white; color: black; }
}
