/* Work Modal - Explore Style Redesign */
/* Matches project.php aesthetics */

/* Overlay */
.work-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.work-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Container */
.work-modal-container.explore-style {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Close Button (Fixed) */
.modal-close-btn-fixed {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close-btn-fixed:hover {
    background: rgba(255, 0, 85, 0.2);
    border-color: #ff0055;
    transform: rotate(90deg);
}

/* Scroll Content */
.modal-scroll-content {
    overflow-y: auto;
    height: 100%;
    padding-right: 5px;
    /* content padding */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-scroll-content::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Glass Card Override (Ensure it works in modal) */
.glass-card {
    background: rgba(20, 20, 35, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery / Content Wrapper */
.content-card-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    /* Ensure stacking context */
}

.work-gallery-explore img,
.work-gallery-explore video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.work-gallery-explore img.active,
.work-gallery-explore video.active {
    display: block;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gallery Navigation */
.gallery-nav {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.gallery-nav:hover {
    background: var(--turquoise);
    border-color: var(--turquoise);
    transform: scale(1.1);
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: var(--turquoise);
    width: 25px;
    border-radius: 4px;
}

/* Typography & Details */
.project-header h1 {
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.software-meta {
    animation: fadeIn 0.5s ease;
}

.work-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Action Buttons */
.action-btn-ios {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn-ios:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.action-btn-ios.like.liked {
    background: #ff0055;
    border-color: #ff0055;
}

.action-btn-ios.edit {
    color: var(--turquoise);
    border-color: rgba(0, 217, 255, 0.3);
}

.action-btn-ios.delete {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.3);
}

/* Comments List */
.comments-list-simple {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-header img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.comment-author h5 {
    margin: 0;
    font-size: 0.9rem;
    color: white;
}

.comment-author span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.comment-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .explore-details-row {
        flex-direction: column;
    }

    .detail-col-right {
        order: 2;
    }

    .detail-col-left {
        order: 1;
    }

    .modal-close-btn-fixed {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
    }

    .work-modal-container.explore-style {
        width: 100%;
        height: 100%;
        max-width: none;
    }

    .modal-scroll-content {
        padding: 50px 15px 20px;
        /* Top padding for close button */
    }

    .content-card-wrapper {
        min-height: 250px;
    }
}