/* ============================================================
   EDUMATCH NG — Standalone Stylesheet
   Purple/Blue theme distinct from EduVerify
   ============================================================ */

:root {
    --edumatch-primary: #7c3aed;
    --edumatch-primary-dark: #6d28d9;
    --edumatch-secondary: #1a56db;
    --edumatch-accent: #f59e0b;
    --edumatch-success: #059669;
    --edumatch-danger: #dc2626;
    --edumatch-warning: #d97706;
    --edumatch-info: #0ea5e9;
    --edumatch-dark: #0f172a;
    --edumatch-gray: #64748b;
    --edumatch-light: #f8fafc;
    --edumatch-border: #e2e8f0;
}

/* Base */
body.edumatch-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0f172a;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}

/* Buttons */
.btn-edumatch {
    background: linear-gradient(135deg, var(--edumatch-primary), var(--edumatch-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-edumatch:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
    color: white;
}

.btn-outline-edumatch {
    border: 2px solid var(--edumatch-primary);
    color: var(--edumatch-primary);
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-edumatch:hover {
    background: var(--edumatch-primary);
    color: white;
}

/* Badges */
.badge-tier-free { background: #e2e8f0; color: #475569; }
.badge-tier-basic { background: #dbeafe; color: #1e40af; }
.badge-tier-premium { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }

/* Job Cards */
.job-card {
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    overflow: hidden;
}

.job-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 30px rgba(124,58,237,0.1);
}

.job-card .job-header {
    padding: 20px 20px 12px;
}

.job-card .job-body {
    padding: 0 20px 16px;
}

.job-card .job-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-viewed { background: #dbeafe; color: #1e40af; }
.status-shortlisted { background: #dcfce7; color: #166534; }
.status-interview { background: #ede9fe; color: #5b21b6; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-hired { background: #d1fae5; color: #065f46; }

/* Salary Display */
.salary-display {
    font-weight: 700;
    color: var(--edumatch-success);
    font-size: 1.1rem;
}

/* Progress Bars */
.profile-completion-bar {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.profile-completion-bar .progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--edumatch-primary), var(--edumatch-secondary));
    transition: width 0.5s ease;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--edumatch-primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

/* Navigation Active State */
.navbar .nav-link.active {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}

/* Hero Section */
.edumatch-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #1a56db 50%, #0ea5e9 100%);
    position: relative;
    overflow: hidden;
}

.edumatch-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 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='%23ffffff' fill-opacity='0.05'%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");
    opacity: 0.3;
}

/* Search Bar */
.search-bar {
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-bar .form-control {
    border: none;
    padding: 12px 16px;
}

.search-bar .form-control:focus {
    box-shadow: none;
}

.search-bar .btn-search {
    background: linear-gradient(135deg, var(--edumatch-primary), var(--edumatch-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
}

/* Filters */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover, .filter-chip.active {
    background: var(--edumatch-primary);
    color: white;
    border-color: var(--edumatch-primary);
}

/* Application Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--edumatch-primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--edumatch-primary);
}

.timeline-item.completed::before {
    background: var(--edumatch-success);
    box-shadow: 0 0 0 2px var(--edumatch-success);
}

/* Message Chat */
.chat-message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.sent {
    background: linear-gradient(135deg, var(--edumatch-primary), var(--edumatch-secondary));
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-message.received {
    background: white;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

/* Subscription Cards */
.pricing-card {
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--edumatch-primary);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 991.98px) {
    .edumatch-hero h1 {
        font-size: 2rem;
    }
    .search-bar {
        flex-direction: column;
    }
    .search-bar .btn-search {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 575.98px) {
    .job-card .job-footer {
        flex-direction: column;
        gap: 8px;
    }
    .job-card .job-footer .btn {
        width: 100%;
    }
}
