/* FileHub File Specs Block - Frontend Styles */

.wp-block-filehub-file-specs {
    margin: 20px 0;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.file-specs-container {
    width: 100%;
}

.file-specs-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

.wp-block-filehub-file-specs.layout-list .file-specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.spec-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.wp-block-filehub-file-specs.layout-grid .spec-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    align-items: center;
}

.wp-block-filehub-file-specs.layout-list .spec-item {
    flex-direction: row;
    align-items: center;
}

.spec-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.wp-block-filehub-file-specs.layout-grid .spec-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.spec-content {
    flex: 1;
    min-width: 0;
}

.wp-block-filehub-file-specs.layout-grid .spec-content {
    width: 100%;
}

.spec-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1;
}

.wp-block-filehub-file-specs.layout-list .spec-label {
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 0;
    min-width: 100px;
    text-transform: none;
    font-weight: 500;
}

.spec-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.spec-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.spec-description {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    line-height: 1.2;
    font-style: italic;
}

.wp-block-filehub-file-specs.layout-list .spec-value {
    flex: 1;
}

/* Specific spec styling */
.spec-license .spec-badge,
.spec-difficulty .spec-badge {
    font-weight: 700;
}

.spec-materials,
.spec-tools {
    word-break: break-word;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .file-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-block-filehub-file-specs.layout-list .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        text-align: left;
    }
    
    .wp-block-filehub-file-specs.layout-list .spec-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 4px;
    }
    
    .wp-block-filehub-file-specs {
        padding: 15px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .wp-block-filehub-file-specs {
        padding: 12px;
    }
    
    .spec-item {
        padding: 8px;
    }
    
    .wp-block-filehub-file-specs.layout-grid .spec-item {
        padding: 12px;
    }
}

.filehub-file-specs-notice {
    color: #666;
    font-style: italic;
    padding: 15px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
}