.blog-attachments-section {
    margin: 48px 0 32px;
    padding: 0;
    position: relative;
}

.blog-attachments-section::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #d1dce6 20%, #d1dce6 80%, transparent 100%);
    margin-bottom: 36px;
}

.blog-attachments-title {
    font-family: 'Saira', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0e2a47;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.01em;
}

.blog-attachments-title .attachments-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0e6199 0%, #0a4d7a 100%);
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(14, 97, 153, 0.25);
}

.blog-attachments-title .attachments-count {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b7684;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: auto;
    letter-spacing: 0;
}

/* LISTA - puna sirina, vertikalni stack za citko iskustvo */
.blog-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* KARTICA */
.blog-attachment-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #e5ebf1;
    border-left: 4px solid transparent;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-attachment-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(14, 97, 153, 0.03) 100%);
    transition: width 0.3s ease;
    pointer-events: none;
}

.blog-attachment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 97, 153, 0.12), 0 2px 6px rgba(14, 42, 71, 0.05);
    border-color: #cfd9e3;
    border-left-color: #0e6199;
}

.blog-attachment-card:hover::after {
    width: 100%;
}

/* IKONA FAJLA - veca, dominantnija */
.attachment-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    background: #7f8c8d;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.attachment-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Boje po tipu fajla - sve kroz gradient za dubinu */
.attachment-icon-pdf {
    background: linear-gradient(135deg, #dc3545 0%, #a02530 100%);
}
.attachment-icon-doc,
.attachment-icon-docx,
.attachment-icon-odt {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}
.attachment-icon-xls,
.attachment-icon-xlsx,
.attachment-icon-ods {
    background: linear-gradient(135deg, #16a34a 0%, #14532d 100%);
}
.attachment-icon-ppt,
.attachment-icon-pptx,
.attachment-icon-odp {
    background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
}
.attachment-icon-txt {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
}
.attachment-icon-zip {
    background: linear-gradient(135deg, #9333ea 0%, #581c87 100%);
}

/* INFO BLOK */
.attachment-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.attachment-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0e2a47;
    margin: 0 0 6px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-attachment-card:hover .attachment-name {
    color: #0e6199;
}

.attachment-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6b7684;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.attachment-meta-divider {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5dc;
}

.attachment-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    background: #eef2f6;
    color: #0e2a47;
}

/* DOWNLOAD DUGME */
.attachment-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #0e6199;
    color: #ffffff !important;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(14, 97, 153, 0.2);
}

.blog-attachment-card:hover .attachment-download {
    background: #0a4d7a;
    box-shadow: 0 4px 12px rgba(14, 97, 153, 0.3);
}

.attachment-download i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.blog-attachment-card:hover .attachment-download i {
    transform: translateY(2px);
}

/* RESPONSIVE - mobilni */
@media (max-width: 768px) {
    .blog-attachments-section {
        margin: 36px 0 24px;
    }
    .blog-attachments-section::before {
        margin-bottom: 24px;
    }
    .blog-attachments-title {
        font-size: 19px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .blog-attachments-title .attachments-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .blog-attachment-card {
        padding: 14px;
        gap: 14px;
    }
    .attachment-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .attachment-name {
        font-size: 14px;
    }
    .attachment-meta {
        font-size: 12px;
    }
    .attachment-download {
        padding: 9px 12px;
    }
    .attachment-download span {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-attachment-card {
        flex-wrap: wrap;
    }
    .attachment-download {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .attachment-download span {
        display: inline;
    }
}

/* PRINT - logicno ne treba karticaste akcije u printu */
@media print {
    .blog-attachments-section {
        break-inside: avoid;
    }
    .blog-attachment-card {
        border: 1px solid #999;
        box-shadow: none;
        break-inside: avoid;
    }
    .attachment-download {
        display: none;
    }
}
