﻿/* =============================================================
   Escon Drive - Documentos (escon-documents.css)
   ============================================================= */

/* Lista */
.escon-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Item */
.escon-doc-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.escon-doc-item:hover {
    background: #fff;
    border-color: #c8d0da;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Icone */
.escon-doc-icon {
    flex-shrink: 0;
    width: 34px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    position: relative;
}

.escon-doc-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-color: #868e96;
    clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}

.escon-doc-icon::after {
    content: attr(data-ext);
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Cores por tipo */
.escon-doc-icon--pdf::before    { background-color: #e74c3c; }
.escon-doc-icon--word::before   { background-color: #2980b9; }
.escon-doc-icon--excel::before  { background-color: #27ae60; }
.escon-doc-icon--ppt::before    { background-color: #e67e22; }
.escon-doc-icon--generic::before { background-color: #868e96; }

/* Nome */
.escon-doc-name {
    flex: 1 1 auto;
    font-size: 0.9rem;
    font-weight: 500;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tamanho */
.escon-doc-size {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #adb5bd;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Botao download */
.escon-doc-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: #3d8bcd;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.escon-doc-download:hover {
    background: #2971b0;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.escon-doc-download:active {
    transform: translateY(0);
}

/* Conteudo misto */
.escon-mixed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.escon-mixed-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.escon-mixed-item:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.escon-mixed-item--image .escon-mixed-thumb {
    flex-shrink: 0;
    display: block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}

.escon-mixed-item--image .escon-mixed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.escon-mixed-item--video {
    flex-direction: column;
    align-items: stretch;
}

.escon-mixed-item__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    overflow: hidden;
}

.escon-mixed-item__name {
    flex: 1 1 auto;
    font-size: 0.9rem;
    font-weight: 500;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .escon-doc-item { flex-wrap: wrap; }
    .escon-doc-download { width: 100%; justify-content: center; margin-top: 4px; }
    .escon-doc-size { font-size: 0.7rem; }
}