/* Far Reach Jobs - Custom Styles */
/* Using Tailwind CSS via CDN for utility classes */
/* This file contains custom overrides and component styles */

/* Base resets - Tailwind handles most of this but keeping for compatibility */
* {
    box-sizing: border-box;
}

/* Custom color scheme */
:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a5a;
    --success-50: #f0fdf4;
    --success-600: #16a34a;
    --success-700: #15803d;
    --error-50: #fef2f2;
    --error-600: #dc2626;
    --error-700: #b91c1c;
    --warning-50: #fffbeb;
    --warning-600: #d97706;
}

/* Flash messages */
.flash {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    z-index: 50;
    animation: slideDown 0.3s ease-out;
}

.flash-info {
    background-color: var(--primary-100);
    color: var(--primary-800);
}

.flash-success {
    background-color: var(--success-50);
    color: var(--success-700);
}

.flash-error {
    background-color: var(--error-50);
    color: var(--error-700);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* HTMX loading states */
.htmx-request .htmx-indicator {
    display: block !important;
}

.htmx-indicator {
    display: none;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

.job-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}

/* Stale job styling */
.job-card.stale {
    border-left: 4px solid #f59e0b;
}

/* Button transitions */
.btn {
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary-500);
    border-color: var(--primary-500);
}

/* Link styles */
a {
    transition: color 0.15s ease;
}

/* Mobile-first responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Stack job card buttons vertically on mobile */
    .job-card .flex-shrink-0 {
        flex-direction: column;
        width: 100%;
    }

    .job-card .flex-shrink-0 .btn {
        width: 100%;
    }

    /* Full-width filter inputs on mobile */
    .filter-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .btn,
    form {
        display: none !important;
    }

    .job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
