/**
 * Scholarship Features Styles
 * Styles for Save/Track, Match Score, and Notifications
 */

/* ==================== Match Score Widget ==================== */
.match-score-widget {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.match-score-widget.high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.match-score-widget.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.match-score-widget.low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.match-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.match-score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.match-score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.match-score-ring-fill {
    fill: none;
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.match-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-score-details {
    flex: 1;
}

.match-confidence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.95;
}

.match-recommendation {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.match-strengths {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.match-strengths ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.match-strengths li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Compact match score badge */
.match-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.match-score-badge.high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.match-score-badge.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.match-score-badge.low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.match-score-badge .score {
    font-size: 1.25rem;
    font-weight: bold;
}

/* ==================== Save Button ==================== */
.scholarship-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scholarship-save-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.scholarship-save-btn.saved {
    background: #667eea;
    color: white;
}

.scholarship-save-btn.saved i {
    animation: bookmarkPop 0.3s ease;
}

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

/* ==================== Notification Styles ==================== */
.scholarship-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    transform: translateX(450px);
    transition: transform 0.3s ease;
}

.scholarship-notification.show {
    transform: translateX(0);
}

.scholarship-notification.success {
    border-left: 4px solid #10b981;
}

.scholarship-notification.error {
    border-left: 4px solid #ef4444;
}

.scholarship-notification i {
    font-size: 1.5rem;
}

.scholarship-notification.success i {
    color: #10b981;
}

.scholarship-notification.error i {
    color: #ef4444;
}

/* Smart Notifications */
.smart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10000;
    transform: translateY(500px);
    transition: transform 0.3s ease;
}

.smart-notification.show {
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-header i {
    font-size: 1.25rem;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

.notification-body {
    padding: 1.5rem;
}

.notification-body p {
    margin: 0 0 1rem 0;
    color: #374151;
}

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

.notification-actions button,
.notification-actions a {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

/* ==================== Deadlines Dashboard ==================== */
.deadlines-dashboard {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.deadlines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.deadlines-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.deadlines-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deadline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #d1d5db;
    transition: all 0.2s;
}

.deadline-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.deadline-item.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.deadline-item.urgent {
    border-left-color: #ef4444;
    background: #fef2f2;
    animation: pulseDeadline 2s ease-in-out infinite;
}

@keyframes pulseDeadline {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.deadline-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.deadline-icon {
    font-size: 1.5rem;
}

.deadline-info strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.deadline-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.deadline-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-deadlines {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.empty-deadlines i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==================== Tracker Dashboard ==================== */
.tracker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tracker-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tracker-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin: 0.5rem 0;
}

.tracker-stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tracker-stat-card.earnings .tracker-stat-value {
    color: #10b981;
}

.tracker-stat-card.awarded .tracker-stat-value {
    color: #f59e0b;
}

/* ==================== Saved Scholarships List ==================== */
.saved-scholarship-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d1d5db;
}

.saved-scholarship-item.in_progress {
    border-left-color: #3b82f6;
}

.saved-scholarship-item.submitted {
    border-left-color: #10b981;
}

.saved-scholarship-item.awarded {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.saved {
    background: #e5e7eb;
    color: #374151;
}

.status-badge.in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.submitted {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.awarded {
    background: #fef3c7;
    color: #92400e;
}

/* Checklist */
.scholarship-checklist {
    margin: 1rem 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

/* ==================== Button Utilities ==================== */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outline:hover {
    background: currentColor;
    color: white;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .match-score-widget {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .smart-notification {
        width: calc(100vw - 40px);
        bottom: 10px;
        right: 10px;
    }

    .deadline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .deadline-actions {
        width: 100%;
    }

    .deadline-actions button {
        flex: 1;
    }

    .tracker-stats {
        grid-template-columns: 1fr;
    }
}

/* ==================== Animations ==================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
