/* Sleek Minimalist CV Modal Styles Override */

/* Glass-morphism modal content */
.cv-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    max-height: 1000px;
    background: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.cv-modal.active .cv-modal-content {
    transform: scale(1);
}

/* Sleek header */
.cv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.cv-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.cv-modal-title {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.cv-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Minimalist close button */
.cv-modal-close {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.2rem !important;
    cursor: pointer;
    padding: 0 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    width: 36px !important;
    height: 36px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-modal-close:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    transform: scale(1.05) !important;
}

/* Sleek zoom controls */
.cv-zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 11;
}

.cv-zoom-btn,
.cv-download-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-size: 0.95rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
}

.cv-zoom-btn:hover,
.cv-download-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.cv-zoom-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.cv-download-btn {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

.cv-download-btn:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #93c5fd !important;
}

/* Sleek zoom info */
.cv-zoom-info {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    pointer-events: none;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-width: 200px;
    z-index: 12;
}

.cv-zoom-info:not(.hidden) {
    opacity: 1 !important;
}

.zoom-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.8);
}

.zoom-hint i {
    width: 16px;
    opacity: 0.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cv-modal-content {
        width: 95%;
        height: 95vh;
        border-radius: 20px !important;
    }
    
    .cv-modal-header {
        padding: 16px 20px !important;
    }
    
    .cv-modal-title {
        font-size: 1rem !important;
    }
    
    .cv-subtitle {
        font-size: 0.75rem;
    }
    
    .cv-modal-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .cv-zoom-controls {
        top: 15px;
        right: 15px;
        gap: 6px;
    }
    
    .cv-zoom-btn,
    .cv-download-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 640px) {
    .cv-header-left {
        gap: 8px;
    }
    
    .cv-status-dot {
        width: 6px;
        height: 6px;
    }
    
    .cv-subtitle {
        display: none;
    }
}

/* PIN Modal Styles - Dark Theme */
.pin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pin-modal-content {
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    padding: 28px;
    width: 90%;
    max-width: 380px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.pin-modal-title {
    color: #f9fafb;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.5px;
}

.pin-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-family: 'Fira Code', monospace;
    text-align: center;
    letter-spacing: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pin-input:focus {
    outline: none;
    border-color: rgba(220, 38, 38, 0.6);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(220, 38, 38, 0.15);
}

.pin-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.pin-error {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    font-family: 'Fira Code', monospace;
    background: rgba(239, 68, 68, 0.1);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pin-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.pin-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pin-cancel {
    background: rgba(0, 0, 0, 0.6);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pin-cancel:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.pin-submit {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.pin-submit:hover {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

.pin-submit:active {
    transform: translateY(0);
}
