@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    /* Define custom colors to match Tailwind Config if needed for raw CSS */
    --color-bg-dark: #0f172a;
    --color-primary: #2563eb;
    --color-secondary: #ef4444;
}

/* Custom Scrollbar for the 'Hacker' vibe */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b; 
}

::-webkit-scrollbar-thumb {
    background: #475569; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb; 
}

/* Ad Container Styling - Highlights ad spaces */
.ad-container {
    transition: all 0.3s ease;
}

.ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Animation for the alert badge */
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.pulse-alert {
    animation: pulse-red 2s infinite;
}

/* Typography tweaks */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

.font-mono {
    letter-spacing: -0.05em;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

/* Selection color */
::selection {
    background: #ef4444;
    color: white;
}

/* Utility for 'Tech' grid background */
.bg-grid-pattern {
    background-image: linear-gradient(to right, #1e293b 1px, transparent 1px),
                      linear-gradient(to bottom, #1e293b 1px, transparent 1px);
    background-size: 40px 40px;
}