/**
 * 複数履歴書ファイル表示用CSS
 * EM-2: 複数ファイルアップロード機能対応
 */

/* ==============================================
   1. 共通スタイル
   ============================================== */
.resume-files-empty {
    color: #6c757d;
    font-style: italic;
}

/* ==============================================
   2. リスト表示スタイル
   ============================================== */
.resume-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resume-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.resume-file-item:hover {
    background: #e9ecef;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.resume-file-item .file-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.resume-file-item .file-link {
    flex: 1;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    min-width: 0;
}

.resume-file-item .file-link:hover {
    text-decoration: underline;
    color: #005a87;
}

/* file-meta クラスは使用されなくなったため削除 */

/* ==============================================
   3. カード表示スタイル
   ============================================== */
.resume-files-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.resume-file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    text-align: center;
}

.resume-file-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
}

.resume-file-card .file-icon-large {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.resume-file-card .file-info {
    width: 100%;
}

.resume-file-card .file-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 16px;
}

/* file-details クラスは使用されなくなったため削除 */

.resume-file-card .file-download-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.resume-file-card .file-download-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* ==============================================
   4. レスポンシブデザイン
   ============================================== */
@media (max-width: 768px) {
    .resume-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    
    .resume-file-item .file-icon {
        align-self: flex-start;
    }
    
    /* file-meta スタイルは削除済み */
    
    .resume-files-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .resume-file-item {
        padding: 8px 10px;
    }
    
    .resume-file-card {
        padding: 16px;
    }
    
    .resume-file-card .file-icon-large {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .resume-file-card .file-name {
        font-size: 14px;
    }
}

/* ==============================================
   5. アクセシビリティ対応
   ============================================== */
.resume-file-item .file-link:focus,
.resume-file-card .file-download-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .resume-file-item {
        border-width: 2px;
        border-color: #000000;
    }
    
    .resume-file-card {
        border-width: 2px;
        border-color: #000000;
    }
    
    .resume-file-card .file-download-btn {
        border: 2px solid #000000;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .resume-file-item {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .resume-file-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    /* file-meta, file-details スタイルは削除済み */
}