/* app.css -- Custom styles for Transfer of Power Engine */
/* Dark/navy theme with security-blue accents */
/* Tailwind CSS handles most styling via CDN; these are custom additions */

:root {
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    --security-blue: #3b82f6;
    --security-blue-light: #60a5fa;
    --security-blue-dark: #2563eb;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

/* Toast notifications */
.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    animation: toast-in 0.3s ease-out, toast-out 0.3s ease-in 3.7s forwards;
    max-width: 24rem;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--security-blue); }
.toast-warning { background: var(--warning); color: #1e293b; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-1rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--security-blue-light), var(--security-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect for buttons */
.btn-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transition: box-shadow 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Countdown timer pulse */
.pulse-ring {
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Loading spinner */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sidebar navigation */
.nav-item {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--security-blue-light);
    border-right: 3px solid var(--security-blue);
}

/* Form inputs */
.input-dark {
    background-color: var(--navy-800);
    border: 1px solid var(--navy-600);
    color: #e2e8f0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-dark:focus {
    border-color: var(--security-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Pricing card highlight */
.pricing-popular {
    border: 2px solid var(--security-blue);
    position: relative;
}

.pricing-popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--security-blue);
    color: #fff;
    padding: 0.125rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Markdown content styling */
.markdown-content h1 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.markdown-content h2 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.625rem; }
.markdown-content h3 { font-size: 1.125rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.markdown-content p { margin: 0.5rem 0; line-height: 1.7; }
.markdown-content ul { list-style: disc; padding-left: 1.5rem; margin: 0.5rem 0; }
.markdown-content ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5rem 0; }
.markdown-content code { background: var(--navy-700); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
.markdown-content pre { background: var(--navy-800); padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin: 0.75rem 0; }
.markdown-content pre code { background: none; padding: 0; }
.markdown-content a { color: var(--security-blue-light); text-decoration: underline; }
.markdown-content blockquote { border-left: 3px solid var(--navy-600); padding-left: 1rem; color: #94a3b8; margin: 0.75rem 0; }
