/**
 * Recruiting Pipeline - Premium Modern Design
 * Clean, professional kanban board interface
 */

/* Container */
.pipeline-container {
    padding: 0;
    max-width: 100%;
    background: #f8fafc;
    min-height: 100vh;
}

/* Header */
.pipeline-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3rem 2rem 2rem 2rem;
    color: white;
    margin-bottom: 0;
}

.pipeline-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2rem 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Metrics */
.pipeline-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.metric-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3b82f6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.metric-card.primary-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.metric-card.primary-card::before {
    display: none;
}

.metric-card.primary-card .metric-label,
.metric-card.primary-card .metric-trend {
    color: rgba(255, 255, 255, 0.95);
}

.metric-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.metric-trend {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Filters Panel */
.filters-panel {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filters-content h3 {
    margin: 0 0 1.25rem 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 2rem;
    overflow-x: auto;
}

@media (max-width: 1600px) {
    .kanban-board {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kanban-column.drag-over {
    background: #eff6ff;
    border-color: #3b82f6;
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.kanban-column.success-column {
    border-color: #10b981;
}

.kanban-column.success-column .column-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.kanban-column.success-column .column-count {
    background: #10b981;
}

.kanban-column.inactive-column {
    border-color: #94a3b8;
    opacity: 0.8;
}

.kanban-column.inactive-column .column-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.kanban-column.inactive-column .column-count {
    background: #64748b;
}

.column-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 11px 11px 0 0;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stage-icon {
    font-size: 22px;
}

.column-count {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    min-width: 36px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.column-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.empty-column {
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* Player Cards */
.player-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.125rem;
    cursor: move;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.player-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.player-card.dragging {
    opacity: 0.6;
    cursor: grabbing;
    transform: rotate(3deg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.player-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.player-position {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 0.35rem 0.625rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.card-body {
    margin-bottom: 0.875rem;
}

.player-fit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
}

.player-fit.fit-excellent {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.player-fit.fit-excellent .fit-label,
.player-fit.fit-excellent .fit-value {
    color: #059669;
}

.player-fit.fit-good {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
}

.player-fit.fit-good .fit-label,
.player-fit.fit-good .fit-value {
    color: #2563eb;
}

.player-fit.fit-average {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
}

.player-fit.fit-average .fit-label,
.player-fit.fit-average .fit-value {
    color: #ea580c;
}

.fit-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fit-value {
    font-size: 20px;
    font-weight: 800;
}

.player-archetype,
.player-class,
.player-location {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-card-action {
    padding: 0.625rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-card-action:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    margin: 0 0 1.5rem 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-footer .btn-secondary {
    background: white;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}

.modal-footer .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Empty State */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: white;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    margin: 2rem;
}

.empty-state-content {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.empty-state-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.empty-state-content p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}
