/* Democracy Defense Toolkit - Custom Styles */
/* Activist/Urgent color palette supplement to Tailwind */

:root {
    --dd-navy: #1e3a5f;
    --dd-dark: #0f172a;
    --dd-red: #dc2626;
    --dd-amber: #f59e0b;
    --dd-slate: #1e293b;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background-color: var(--dd-red);
    color: white;
}

/* Hero text gradient effect */
.hero-gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulsing urgency effect */
@keyframes pulse-urgent {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-urgent {
    animation: pulse-urgent 2s ease-in-out infinite;
}

/* Constraint card hover effect */
.constraint-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.2);
}

/* Feature card hover effect */
.feature-card:hover {
    border-color: var(--dd-amber);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.1);
}

/* Code block styling */
pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

pre code {
    line-height: 1.6;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* Link underline animation */
a.animated-underline {
    position: relative;
}

a.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dd-amber);
    transition: width 0.3s ease;
}

a.animated-underline:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--dd-amber);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
