/**
 * Team Portal - Client Fullscreen Actions Styles
 * 
 * Beautiful fullscreen overlay with animated action cards
 * and immersive user experience
 * 
 * @package TeamPortal
 * @version 1.0.0
 */

/* ===== Fullscreen Overlay ===== */
.client-fs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.client-fs-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Backdrop with blur */
.client-fs-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Main Container */
.client-fs-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow-y: auto;
}

/* ===== Header Section ===== */
.client-fs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.client-fs-overlay.animated .client-fs-header {
    opacity: 1;
    transform: translateY(0);
}

.client-fs-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.client-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.client-status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid #1e293b;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.client-info {
    color: white;
}

.client-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.client-file-number {
    font-weight: 600;
}

.client-completion {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
}

.client-completion i {
    font-size: 16px;
}

/* Close Button */
.client-fs-close {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-fs-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: #ef4444;
    transform: rotate(90deg);
}

/* ===== Actions Grid ===== */
.client-fs-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.client-action-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: cardEntrance 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.client-action-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.client-action-card.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-color: transparent;
}

.client-action-card.primary:hover {
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.5);
}

/* Action Icon */
.action-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.action-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.client-action-card:hover .action-icon-bg {
    transform: scale(1.2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
}

.action-icon {
    position: relative;
    z-index: 2;
    font-size: 36px;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.client-action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
    color: #60a5fa;
}

.client-action-card.primary .action-icon {
    color: white;
}

/* Action Content */
.action-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    transition: all 0.3s ease;
}

.client-action-card:hover .action-title {
    color: #60a5fa;
}

.client-action-card.primary .action-title {
    color: white;
}

.action-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

.client-action-card.primary .action-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Action Badge */
.action-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.action-badge.active {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* ===== Quick Stats Section ===== */
.client-fs-quick-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quick-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    opacity: 0;
    transform: translateY(20px);
    animation: statEntrance 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
    transition: all 0.3s ease;
}

@keyframes statEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.quick-stat i {
    font-size: 24px;
    color: #3b82f6;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* ===== Footer Section ===== */
.client-fs-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s;
}

.client-fs-overlay.animated .client-fs-footer {
    opacity: 1;
    transform: translateY(0);
}

.footer-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .client-fs-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .client-action-card {
        padding: 20px;
    }

    .action-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .action-icon {
        font-size: 28px;
    }

    .action-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .client-fs-container {
        padding: 20px;
    }

    .client-name {
        font-size: 24px;
    }

    .client-fs-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .client-action-card {
        padding: 16px;
    }

    .action-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .action-icon {
        font-size: 24px;
    }

    .action-title {
        font-size: 16px;
    }

    .action-description {
        font-size: 12px;
    }

    .client-fs-quick-stats {
        gap: 12px;
    }

    .quick-stat {
        padding: 15px 20px;
        min-width: 120px;
    }

    .stat-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .client-fs-actions-grid {
        grid-template-columns: 1fr;
    }

    .client-fs-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-avatar-wrapper {
        width: 60px;
        height: 60px;
    }

    .client-name {
        font-size: 20px;
    }

    .client-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== Exit Animation ===== */
.client-fs-overlay:not(.visible) .client-fs-header,
.client-fs-overlay:not(.visible) .client-action-card,
.client-fs-overlay:not(.visible) .quick-stat,
.client-fs-overlay:not(.visible) .client-fs-footer {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}

/* ===== Accessibility ===== */
.client-action-card:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 4px;
}

/* ===== Dark Theme Support ===== */
@media (prefers-color-scheme: dark) {
    .client-fs-backdrop {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
    }
}

/* ===== Print Styles ===== */
@media print {
    .client-fs-overlay {
        display: none;
    }
}
