/**
 * DSA Recruitment System - User Specific CSS
 * 사용자 페이지에서만 사용하는 스타일 정의
 */

/* ====== User Specific Components ====== */

/* User Cards */
.user-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition-slow);
    overflow: hidden;
}

.user-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--user-primary);
}

.user-card.selected {
    border-color: var(--user-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, white 0%, #fafbff 100%);
}

/* Event Cards */
.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: white;
    border: 2px solid transparent;
    transition: var(--transition-slow);
}

.event-card:hover {
    border-color: var(--user-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.event-card.featured {
    background: linear-gradient(135deg, #fafbff 0%, #f0f9ff 100%);
    border-color: var(--user-primary-light);
}

.event-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--user-primary) 0%, var(--user-primary-light) 100%);
}

/* Job Posting Cards */
.job-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    border-color: var(--user-primary);
    box-shadow: var(--shadow-md);
}

.job-card-favorite {
    border-color: #fbbf24;
    background: linear-gradient(135deg, white 0%, #fffbeb 100%);
}

.job-card-applied {
    border-color: var(--user-primary);
    background: linear-gradient(135deg, white 0%, #f0f9ff 100%);
}

/* User Profile */
.profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--user-primary) 0%, var(--user-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.profile-card {
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* Resume Components */
.resume-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.resume-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--user-primary);
}

.resume-section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.resume-section-header i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    color: var(--user-primary);
}

.resume-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.resume-item:last-child {
    border-bottom: none;
}

.resume-progress {
    background-color: var(--gray-200);
    border-radius: 0.5rem;
    height: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.resume-progress-bar {
    background: linear-gradient(90deg, var(--user-primary) 0%, var(--user-primary-light) 100%);
    height: 100%;
    transition: width 0.5s ease;
}

/* Application Status */
.application-timeline {
    position: relative;
    padding-left: 2rem;
}

.application-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--user-primary) 0%, var(--gray-300) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--user-primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--user-primary);
}

.timeline-item.completed::before {
    background: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}

.timeline-item.current::before {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #f59e0b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Schedule Components */
.schedule-day {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
    min-height: 8rem;
}

.schedule-day.today {
    border-color: var(--user-primary);
    background: linear-gradient(135deg, white 0%, #fafbff 100%);
}

.schedule-event {
    background: var(--user-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.schedule-event:hover {
    background: var(--user-primary-dark);
    transform: scale(1.02);
}

.schedule-event.interview {
    background: #dc2626;
}

.schedule-event.meeting {
    background: #7c3aed;
}

.schedule-event.deadline {
    background: #ea580c;
}

/* Notification Components */
.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-base);
    position: relative;
}

.notification-item:hover {
    background-color: var(--gray-50);
}

.notification-item.unread {
    background: linear-gradient(90deg, #fafbff 0%, white 100%);
    border-left: 3px solid var(--user-primary);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: -0.25rem;
    top: 1rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--user-primary);
}

/* Search and Filter */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-container input {
    padding-left: 3rem;
}

.filter-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* User Navigation */
.user-nav {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.user-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition-base);
    border-bottom: 1px solid var(--gray-100);
}

.user-nav-item:last-child {
    border-bottom: none;
}

.user-nav-item:hover {
    background-color: var(--gray-50);
    color: var(--user-primary);
}

.user-nav-item.active {
    background: linear-gradient(90deg, var(--user-primary) 0%, var(--user-primary-light) 100%);
    color: white;
}

.user-nav-item i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

/* Responsive User Styles */
@media (max-width: 768px) {
    .job-card {
        padding: 1rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .resume-section {
        padding: 1rem;
    }
    
    .schedule-day {
        min-height: 6rem;
    }
    
    .application-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
    }
    
    .filter-container {
        justify-content: center;
    }
    
    .user-nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .event-card {
        margin-bottom: 1rem;
    }
    
    .profile-avatar {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .notification-item {
        padding: 0.75rem;
    }
}