/* ============================================
   RESUME VIEWER MODAL - MAC WINDOW STYLE
   ============================================ */
.resume-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.resume-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mac Window Container */
.resume-mac-window {
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: macWindowAppear 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

@keyframes macWindowAppear {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mac Window Header */
.mac-window-header {
    background: linear-gradient(to bottom, #3c3c3c, #323232);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.window-dots {
    display: flex;
    gap: 8px;
    z-index: 2;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.dot-red {
    background: linear-gradient(135deg, #ff5f56 0%, #ff4136 100%);
    box-shadow: 0 1px 3px rgba(255, 95, 86, 0.3);
}

.dot-red:hover {
    background: linear-gradient(135deg, #ff6b62 0%, #ff5348 100%);
    transform: scale(1.1);
}

.dot-red::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-55%, -55%);
    font-size: 11px;
    font-weight: bold;
    color: rgba(90, 20, 15, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dot-red:hover::after {
    opacity: 1;
}

.dot-yellow {
    background: linear-gradient(135deg, #ffbd2e 0%, #ffaa00 100%);
    box-shadow: 0 1px 3px rgba(255, 189, 46, 0.3);
}

.dot-yellow:hover {
    background: linear-gradient(135deg, #ffc740 0%, #ffb800 100%);
    transform: scale(1.1);
}

.dot-green {
    background: linear-gradient(135deg, #27c93f 0%, #1fb132 100%);
    box-shadow: 0 1px 3px rgba(39, 201, 63, 0.3);
}

.dot-green:hover {
    background: linear-gradient(135deg, #30d449 0%, #23bd39 100%);
    transform: scale(1.1);
}

.window-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: -0.2px;
}

/* Mac Window Content */
.mac-window-content {
    flex: 1;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.mac-window-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Floating Download Button */
.floating-download-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #d45540 0%, #f84d3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    box-shadow:
        0 8px 24px #c044314a,
        0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
}

.floating-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #c04431 0%, #f84d3a 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-download-btn:hover::before {
    opacity: 1;
}

.floating-download-btn i {
    position: relative;
    z-index: 1;
}

.floating-download-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 32px #c044314a,
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-download-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
    .resume-mac-window {
        width: 95%;
        height: 90vh;
    }

    .floating-download-btn {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .resume-mac-window {
        width: 85%;
        height: 70vh;
    }

    .mac-window-header {
        padding: 10px 14px;
    }

    .window-dots span {
        width: 11px;
        height: 11px;
    }

    .window-title {
        font-size: 12px;
    }

    .floating-download-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}