/* YTface Shared Styles */
/* Base styles and utilities used across all pages */

:root {
    --primary-red: #ef4444;
    --primary-red-dark: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Force light mode */
html {
    color-scheme: light;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states */
*:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Remove focus outline when using mouse */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Button hover transitions */
button,
a {
    transition: all 0.15s ease;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for loading states */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Table row hover */
.table-row-hover:hover {
    background-color: #f9fafb;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection color */
::selection {
    background: #fecaca;
    color: #991b1b;
}

/* Print styles */
@media print {

    nav,
    footer,
    .no-print {
        display: none !important;
    }
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-red {
    background: #fef2f2;
    color: #991b1b;
}

.badge-green {
    background: #f0fdf4;
    color: #166534;
}

.badge-blue {
    background: #eff6ff;
    color: #1e40af;
}

.badge-yellow {
    background: #fefce8;
    color: #854d0e;
}

/* Input focus ring */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Accessibility: Links in content areas must be underlined (WCAG 1.4.1) */
p a,
li a,
td a,
.content a,
article a {
    text-decoration: underline;
    text-decoration-color: rgba(239, 68, 68, 0.4);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease;
}

p a:hover,
li a:hover,
td a:hover,
.content a:hover,
article a:hover {
    text-decoration-color: rgba(239, 68, 68, 1);
}

/* Footer links get hover underlines */
footer a:hover {
    text-decoration: underline;
}

/* Placeholder rule - keeping file valid */
.placeholder-fix {
    display: block;
}