/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff9d;
}

/* Custom Scrollbar for Sidebar/Terminal */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 157, 0.5);
}

/* Typing Cursor Animation */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: #00ff9d;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Smooth Scroll Offset for Sticky Header */
html {
    scroll-padding-top: 100px;
}

/* Project Card Glow */
.project-card {
    position: relative;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 157, 0.3);
    background: rgba(30, 30, 30, 0.8);
}

.project-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 255, 157, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover .project-card-glow {
    opacity: 1;
}

/* Badges */
.badge-latest {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.badge-archived {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Tech Tags */
.tech-tag {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
}

.skill-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    cursor: default;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    border-color: rgba(0, 255, 157, 0.4);
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.05);
}

/* Nav Link */
.nav-link {
    display: block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active-nav {
    background: rgba(255, 255, 255, 0.05);
    color: #00ff9d;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.icon-link {
    color: #64748b;
    transition: color 0.2s;
}

.icon-link:hover {
    color: #fff;
}

/* Social Buttons */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: #00ff9d;
    color: #00ff9d;
    transform: translateY(-2px);
}

/* Filter Buttons */
.filter-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: #00ff9d;
    color: #fff;
}

.filter-btn.active {
    background: rgba(0, 255, 157, 0.1);
    border-color: #00ff9d;
    color: #00ff9d;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .print\:hidden {
        display: none !important;
    }

    .print\:block {
        display: block !important;
    }

    .print\:text-black {
        color: black !important;
    }

    .print\:bg-white {
        background: white !important;
    }

    .print\:border-gray-300 {
        border-color: #d1d5db !important;
    }

    .project-card {
        break-inside: avoid;
        background: white !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }

    a {
        text-decoration: none;
        color: black !important;
    }
}

/* Sticky Footer Animation */
@keyframes slide-up {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up-animation {
    animation: slide-up 0.5s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-icon {
    font-size: 0.75rem;
    color: #64748b;
    margin-left: 0.5rem;
    cursor: help;
    transition: color 0.2s;
}

.tooltip-icon:hover {
    color: #00ff9d;
}

.tooltip-content {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 250px;
    padding: 0.5rem 0.75rem;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: #cbd5e1;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(5, 5, 5, 0.95) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    opacity: 1;
    bottom: 120%;
    visibility: visible;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: rgba(0, 255, 157, 0.3);
}

.toast-success i {
    color: #00ff9d;
}

.toast-error {
    border-color: rgba(248, 113, 113, 0.3);
}

.toast-error i {
    color: #f87171;
}

.toast-info {
    border-color: rgba(56, 189, 248, 0.3);
}

.toast-info i {
    color: #38bdf8;
}

/* Enhanced Syntax Highlighting for YAML */
.yaml-key {
    color: #f87171;
}

.yaml-string {
    color: #00ff9d;
}

.yaml-number {
    color: #fbbf24;
}

.yaml-comment {
    color: #64748b;
    font-style: italic;
}

.yaml-bullet {
    color: #38bdf8;
}

/* --- PREMIUM UI UPGRADES --- */

/* 1. Spotlight Effect for Free Games Tracker */
.spotlight-card {
    position: relative;
    /* We use ::before for the spotlight gradient content */
}

/* The gradient follows the mouse via CSS variables set in JS */
.spotlight-card::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.1),
            transparent 40%);
    opacity: 0;
    z-index: 3;
    transition: opacity 0.5s;
    pointer-events: none;
}

/* Show glow on hover */
.spotlight-card:hover::before {
    opacity: 1;
}

/* 2. Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #fff 30%, #00ff9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* 3. Aurora Background Animation */
@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.aurora-bg {
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 255, 157, 0.03), transparent 70%),
        radial-gradient(circle at 0% 20%, rgba(56, 189, 248, 0.03), transparent 50%),
        radial-gradient(circle at 100% 20%, rgba(236, 72, 153, 0.03), transparent 50%);
    background-size: 200% 200%;
    animation: aurora 15s ease infinite;
}

/* Archived Project Card custom styles */
.archived-card:hover {
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.archived-card .project-card-glow {
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(245, 158, 11, 0.06),
            transparent 40%) !important;
}

/* --- SOC OPERATIONS CONSOLE PREMIUM STYLES --- */
.soc-alert-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.soc-alert-row:hover, .soc-alert-row.active {
    background: rgba(0, 255, 157, 0.04);
    border-color: rgba(0, 255, 157, 0.2);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.03);
}

.soc-alert-row.active {
    background: rgba(0, 255, 157, 0.06);
    border-color: rgba(0, 255, 157, 0.3) !important;
}

.soc-alert-row.contained {
    border-color: rgba(248, 113, 113, 0.4) !important;
    background: rgba(248, 113, 113, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.soc-alert-row.contained::before {
    content: 'CONTAINED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    color: rgba(248, 113, 113, 0.7);
    border: 1.5px solid rgba(248, 113, 113, 0.7);
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.15em;
    pointer-events: none;
    background: rgba(10, 10, 10, 0.95);
    z-index: 10;
}

.soc-severity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.soc-severity-badge.critical {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.05);
}

.soc-severity-badge.high {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.soc-severity-badge.medium {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.soc-severity-badge.low {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.kql-code-panel {
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #e2e8f0;
    overflow-x: auto;
    max-height: 160px;
}

.kql-keyword { color: #f472b6; font-weight: 600; }
.kql-operator { color: #38bdf8; }
.kql-string { color: #00ff9d; }
.kql-comment { color: #64748b; font-style: italic; }

.edr-btn {
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Inter', sans-serif;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
}

.edr-btn-isolate {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.edr-btn-isolate:hover {
    background: #f87171;
    color: #000;
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.2);
}

.edr-btn-block {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.edr-btn-block:hover {
    background: #f59e0b;
    color: #000;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.edr-btn-fp {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.edr-btn-fp:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.soc-terminal-sequence {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #cbd5e1;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    max-height: 180px;
    overflow-y: auto;
    line-height: 1.5;
}
