/* Google Drive Files Clean - Diseño minimalista v3.0 */

.gdfd-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    color: #1a1a1a;
}

.gdfd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.gdfd-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.gdfd-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.gdfd-container {
    display: grid;
    gap: 16px;
    margin: 0;
}

.gdfd-view-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.gdfd-view-list {
    grid-template-columns: 1fr;
}

.gdfd-file-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.gdfd-file-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gdfd-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.gdfd-file-type {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gdfd-file-number {
    background: #1a1a1a;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.gdfd-file-content {
    flex: 1;
}

.gdfd-file-name {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gdfd-file-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
}

.gdfd-file-date {
    font-weight: 500;
}

.gdfd-file-size {
    font-weight: 400;
}

.gdfd-file-actions {
    display: flex;
    gap: 8px;
}

.gdfd-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.gdfd-btn-primary {
    background: #1a1a1a;
    color: white;
}

.gdfd-btn-primary:hover {
    background: #374151;
    color: white;
}

.gdfd-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.gdfd-btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

.gdfd-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    margin: 20px 0;
}

.gdfd-error-text {
    font-size: 14px;
    font-weight: 500;
}

.gdfd-no-files {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.gdfd-no-files-text {
    font-size: 16px;
    font-weight: 500;
}

/* Vista lista */
.gdfd-view-list .gdfd-file-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
}

.gdfd-view-list .gdfd-file-header {
    margin-right: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.gdfd-view-list .gdfd-file-content {
    flex-grow: 1;
}

.gdfd-view-list .gdfd-file-meta {
    margin-bottom: 12px;
}

.gdfd-view-list .gdfd-file-actions {
    margin-left: 20px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .gdfd-wrapper {
        padding: 0 16px;
    }

    .gdfd-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gdfd-view-grid {
        grid-template-columns: 1fr;
    }

    .gdfd-view-list .gdfd-file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .gdfd-view-list .gdfd-file-header {
        margin-right: 0;
        margin-bottom: 16px;
        width: 100%;
    }

    .gdfd-view-list .gdfd-file-actions {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .gdfd-file-actions {
        flex-direction: column;
    }

    .gdfd-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gdfd-file-item {
        padding: 16px;
    }

    .gdfd-container {
        gap: 12px;
    }

    .gdfd-file-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Animaciones sutiles */
.gdfd-file-item {
    animation: gdfd-fadeIn 0.3s ease-out;
}

@keyframes gdfd-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de focus para accesibilidad */
.gdfd-btn:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.gdfd-btn-secondary:focus {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}