/**
 * TRCodex PDF List Widget Styles
 * Modern, premium list display inspired by user reference
 */

.trcodex-pdf-list-widget {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    max-width: 900px;
    margin: 0 auto;
}

.pdf-list-heading {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.pdf-list-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color, #E31E24);
    border-radius: 2px;
}

.pdf-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdf-list-item {
    background: #ffffff;
    border: 2px solid var(--primary-color, #E31E24);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pdf-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color, #E31E24);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.15);
}

.pdf-list-item:hover::before {
    opacity: 1;
}

.pdf-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color, #E31E24) 0%, #ff4d4d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-icon svg {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.pdf-info {
    flex: 1;
    min-width: 0;
}

.pdf-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    line-height: 1.3;
}

.pdf-meta {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.pdf-download-btn {
    background: var(--primary-color, #E31E24);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pdf-download-btn:hover {
    background: #bd1117;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.pdf-download-btn svg {
    transition: transform 0.3s ease;
}

.pdf-download-btn:hover svg {
    transform: translateY(2px);
}

/* Responsive */
@media (max-width: 640px) {
    .pdf-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }

    .pdf-download-btn {
        width: 100%;
        justify-content: center;
    }

    .pdf-title {
        font-size: 16px;
    }

    .pdf-list-heading {
        font-size: 24px;
    }
}

/* Scroll Animation */
.pdf-list-item {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.pdf-list-item:nth-child(1) { animation-delay: 0.1s; }
.pdf-list-item:nth-child(2) { animation-delay: 0.15s; }
.pdf-list-item:nth-child(3) { animation-delay: 0.2s; }
.pdf-list-item:nth-child(4) { animation-delay: 0.25s; }
.pdf-list-item:nth-child(5) { animation-delay: 0.3s; }
.pdf-list-item:nth-child(n+6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
