/* Основные стили вкладки */
.wctp-tab-content {
    padding: 20px 0;
}

/* Сетка файлов */
.wctp-files-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Стили для файла */
.wctp-file-item {
    border: 0px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.wctp-file-item:hover {

}

.wctp-file-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
}

.wctp-file-preview img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.wctp-file-name {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    border-top: 1px solid #eee;
    background: #fff;
}

/* Контент редактора */
.wctp-editor-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.wctp-editor-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.wctp-editor-text {
    line-height: 1.6;
    font-size: 16px;
}

.wctp-editor-text p {
    margin-bottom: 15px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .wctp-files-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .wctp-files-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .wctp-file-preview {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .wctp-files-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .wctp-file-preview {
        height: 130px;
        padding: 15px;
    }
    
    .wctp-file-name {
        padding: 12px;
        font-size: 13px;
    }
    
    .wctp-file-preview img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .wctp-files-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .wctp-file-preview {
        height: 120px;
    }
    
    .wctp-file-preview img {
        width: 50px;
        height: 50px;
    }
}