﻿.dosya-grid {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
}

    /* Grid behavior based on item count */
    /*.dosya-grid[data-count="1"] {
        grid-template-columns: 1fr;
    }

    .dosya-grid[data-count="2"] {
        grid-template-columns: 1fr 1fr;
        height: 120px;
    }

    .dosya-grid[data-count="3"] {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: 120px;
    }

        .dosya-grid[data-count="3"] .file-card:first-child {
            grid-row: span 2;
        }

    .dosya-grid[data-count="4"] {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: 120px;
    }*/

/* Base File Card */
.file-card {
    position: relative;
    background-color: rgb(247, 249, 249);
    border: 1px solid rgb(239, 243, 244);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

    /* Image Preview */
    .file-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Document / Non-Image File Style */
.doc-fallback {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    gap: 12px;
}

.doc-icon {
    font-size: 24px;
    background: rgb(230, 236, 240);
    padding: 8px;
    border-radius: 12px;
}

.doc-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.doc-name {
    font-size: 15px;
    font-weight: 700;
    color: rgb(15, 20, 25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-size {
    font-size: 13px;
    color: rgb(83, 100, 113);
}
