/* ===== WORK FOLDER MODAL BASE ===== */
.work-folder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-folder-modal.show {
    opacity: 1;
}

.work-folder-modal.hide {
    opacity: 0;
}

/* ===== FOLDER CONTAINER ===== */
.folder-container {
    width: 90%;
    max-width: 1200px;
    height: 80%;
    background: #1a1a1a;
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

/* ===== FOLDER SIDEBAR ===== */
.folder-sidebar {
    width: 250px;
    background: #0f0f0f;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.folder-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-title {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-folder {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-folder:hover {
    color: #fff;
    background: #333;
}

/* ===== CATEGORY SECTIONS ===== */
.language-header {
    padding: 15px 20px;
    color: #888;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #222;
}

.misc-header {
    padding: 15px 20px;
    color: #888;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #222;
    margin-top: 10px;
}

/* ===== CATEGORY LIST & BUTTONS ===== */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.category-item {
    margin-bottom: 2px;
}

.category-btn {
    width: 100%;
    background: none;
    border: none;
    color: #888;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95em;
}

.category-btn.active {
    background: #647b8a;
    color: #fff;
}

.category-btn i {
    width: 20px;
    text-align: center;
}

/* ===== FOLDER CONTENT AREA ===== */
.folder-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}

.content-header {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.content-title {
    color: #fff;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== WORKS GRID ===== */
.works-grid {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow-y: auto;
}

.work-item {
    background: #222;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid #333;
    cursor: pointer;
    height: 280px;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 123, 138, 0.3);
    border-color: #647b8a;
}

.work-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #647b8a, #4a5a66);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.work-icon i {
    font-size: 1.5em;
    color: #fff;
}

.work-title {
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-desc {
    color: #aaa;
    font-size: 0.8em;
    line-height: 1.3;
}

/* ===== WORK ITEM IMAGES ===== */
.work-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

/* ===== IMAGE EXPAND MODAL ===== */
.image-expand-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.image-expand-modal.show {
    opacity: 1;
}

.image-expand-modal.hide {
    opacity: 0;
}

.image-expand-overlay {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-expand-close {
    display: none;
}

.image-expand-container {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 20px;
    padding: 20px;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: default;
}

.image-expand-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-expand-info {
    text-align: center;
    margin-top: 20px;
    color: #fff;
}

.image-expand-info h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.image-expand-info p {
    color: #aaa;
    font-size: 1em;
    line-height: 1.4;
}

/* ===== IMAGE OVERLAY FOR HOVER EFFECT ===== */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.work-item:hover .image-overlay {
    opacity: 1;
}

.expand-icon {
    background: rgba(100, 123, 138, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.work-item:hover .expand-icon {
    transform: scale(1);
}

.expand-icon i {
    color: #fff;
    font-size: 1.2em;
}

/* ===== VIDEO WORK ITEMS ===== */
.work-video {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    background: #000;
}

.work-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-video video {
    transform: scale(1.05);
}

/* ===== VIDEO OVERLAY FOR HOVER EFFECT ===== */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.work-item:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    background: rgba(100, 123, 138, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.work-item:hover .play-icon {
    transform: scale(1);
}

.play-icon i {
    color: #fff;
    font-size: 1.5em;
    margin-left: 3px;
}

/* ===== VIDEO EXPAND MODAL ===== */
.video-expand-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-expand-modal.show {
    opacity: 1;
}

.video-expand-modal.hide {
    opacity: 0;
}

.video-expand-overlay {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-expand-container {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 20px;
    padding: 20px;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: default;
}

.video-expand-container video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-expand-info {
    text-align: center;
    margin-top: 20px;
    color: #fff;
}

.video-expand-info h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.video-expand-info p {
    color: #aaa;
    font-size: 1em;
    line-height: 1.4;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #888;
}

.empty-subtext {
    font-size: 0.9em;
    color: #666;
}

/* ===== SCROLLBAR STYLES ===== */
.works-grid::-webkit-scrollbar {
    width: 8px;
}

.works-grid::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-radius: 10px;
}

.works-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #647b8a, #4a5a66);
    border-radius: 10px;
    border: 2px solid #0f0f0f;
}

.works-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4a5a66, #3a4a56);
}

.category-list::-webkit-scrollbar {
    height: 6px;
}

.category-list::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #647b8a, #4a5a66);
    border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4a5a66, #3a4a56);
}

.works-grid {
    scrollbar-width: thin;
    scrollbar-color: #647b8a #0f0f0f;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .folder-container {
        width: 95%;
        height: 90%;
        flex-direction: column;
    }

    .folder-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .category-list {
        display: flex;
        overflow-x: auto;
        padding: 10px 20px;
    }

    .category-item {
        margin-right: 10px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .category-btn {
        white-space: nowrap;
        padding: 10px 15px;
        border-radius: 20px;
        border: 1px solid #333;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image-expand-overlay {
        width: 95%;
        height: 95%;
    }

    .image-expand-container {
        padding: 15px;
    }

    .image-expand-container img {
        max-height: 60vh;
    }

    .image-expand-info h3 {
        font-size: 1.2em;
    }

    .image-expand-info p {
        font-size: 0.9em;
    }
}

.folder-card {
    width: 120px;
    height: 120px;
    background: #23272f;
    border-radius: 12px;
    border: 1.5px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px 8px 8px;
    margin: 0;
    box-shadow: 0 4px 16px rgba(100,123,138,0.10);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    cursor: pointer;
    position: relative;
    gap: 0;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.folder-card:hover {
    transform: translateY(-4px) scale(1.06);
    border-color: #647b8a;
    box-shadow: 0 8px 24px rgba(100,123,138,0.18);
}

.folder-card .folder-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #647b8a 80%, #4a5a66 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(100,123,138,0.10);
}

.folder-card .folder-icon i {
    font-size: 2em;
    color: #fff;
}

.folder-card .folder-title {
    color: #fff;
    font-size: 0.98em;
    font-weight: 700;
    margin-bottom: 2px;
    text-align: center;
    margin-top: 0;
    line-height: 1.1;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.folder-card .folder-desc {
    color: #b0b8c1;
    font-size: 0.82em;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.folder-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    background: transparent;
    box-sizing: border-box;
}

.folder-card {
    flex: 0 0 130px;
    margin: 0 18px 28px 0;
    box-sizing: border-box;
}

.folder-card:nth-child(6n) {
    margin-right: 0;
}

@media (max-width: 768px) {
    .video-expand-overlay {
        width: 95%;
        height: 95%;
    }

    .video-expand-container {
        padding: 15px;
    }

    .video-expand-container video {
        max-height: 60vh;
    }

    .video-expand-info h3 {
        font-size: 1.2em;
    }

    .video-expand-info p {
        font-size: 0.9em;
    }
}