/* CareerComputer Custom Styles */
/* Note: Using plain CSS since Tailwind CDN doesn't support @apply */

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Job card base styles */
.job-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
}

/* Prevent job card content from overflowing */
.job-card * {
    min-width: 0;
}

.job-card:hover {
    border-color: #bae6fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(14, 165, 233, 0.15);
}

/* Featured job card */
.job-card-featured {
    border: 2px solid #38bdf8;
    background: linear-gradient(180deg, #f0f9ff 0%, white 100%);
    position: relative;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
}

.job-card-featured::before {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: 12px;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.3));
}

.job-card-featured:hover {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
}

/* Tag styles */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-primary {
    background-color: #e0f2fe;
    color: #075985;
}

.tag-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.tag-success {
    background-color: #d1fae5;
    color: #065f46;
}

.tag-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.tag-remote {
    background-color: #ede9fe;
    color: #5b21b6;
}

.tag-sky {
    background-color: #e0f2fe;
    color: #0369a1;
}

.tag-teal {
    background-color: #ccfbf1;
    color: #0f766e;
}

/* Generic input styling */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #111827;
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
    color: #9ca3af;
}

.input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Form input focus states (fallback) */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0ea5e9;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: #0284c7;
    color: white;
}

.btn-primary:hover {
    background-color: #0369a1;
}

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-outline {
    background-color: transparent;
    color: #0284c7;
    border: 2px solid #0284c7;
}

.btn-outline:hover {
    background-color: #0284c7;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Category card styles */
.category-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    border-color: #bae6fd;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-card .icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

.category-card:hover .icon-wrapper {
    background-color: #0284c7;
}

.category-card:hover .icon-wrapper svg {
    color: white;
}

/* Search bar styles */
.search-wrapper {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.search-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #111827;
    background: white;
    font-size: 1rem;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Search wrapper focus-within styling */
.search-wrapper:focus-within {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(14, 165, 233, 0.15);
    border-color: #0ea5e9;
}

/* Company logo placeholder */
.company-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Stats card */
.stat-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Featured job badge */
.featured-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Skeleton loading */
.skeleton {
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

/* Tech pattern overlay */
.tech-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ea5e9' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Pricing card */
.pricing-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.pricing-card.popular {
    border-color: #0ea5e9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Testimonial card */
.testimonial-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

/* Job type badges */
.job-type-full-time {
    background-color: #d1fae5;
    color: #065f46;
}

.job-type-part-time {
    background-color: #dbeafe;
    color: #1e40af;
}

.job-type-contract {
    background-color: #ffedd5;
    color: #9a3412;
}

.job-type-remote {
    background-color: #ede9fe;
    color: #5b21b6;
}

/* Filter section */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.filter-checkbox input[type="checkbox"] {
    border-radius: 0.25rem;
    border-color: #d1d5db;
    color: #0ea5e9;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.pagination-btn:not(.active):not(:disabled) {
    color: #4b5563;
}

.pagination-btn:not(.active):not(:disabled):hover {
    background-color: #f3f4f6;
}

.pagination-btn.active {
    background-color: #0284c7;
    color: white;
}

.pagination-btn:disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 0.25rem 0;
    z-index: 50;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f9ff;
    color: #0284c7;
}

/* Alert/notification styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

.alert-success {
    background-color: #f0fdf4;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 32rem;
    width: 100%;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f3f4f6;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0ea5e9, 0 0 0 4px white;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Responsive utilities */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}
