/* 
 * Sistema de Downloads de PDFs - Estilos Frontend
 */
/* Header */
/* Login Required */
.pdf-downloads-login-required {
    max-width: 500px;
    margin: 50px auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lock-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.login-message h3 {
    color: #dc3545;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.login-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* No PDFs Message */
.no-pdfs-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-pdfs-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.no-pdfs-message h3 {
    color: #495057;
    margin-bottom: 15px;
}

.no-pdfs-message p {
    color: #6c757d;
}

/* Grid de PDFs */
.pdfs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.pdf-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.pdf-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.pdf-icon {
    text-align: center;
    margin-bottom: 10px;
}

.pdf-icon svg {
    transition: transform 0.3s ease;
}

.pdf-item:hover .pdf-icon svg {
    transform: scale(1.1);
}

.pdf-info {
    flex: 1;
}

.pdf-title {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

.pdf-description {
    color: #6c757d;
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.pdf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.pdf-meta span {
    font-size: 0.85em;
    color: #6c757d;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.downloaded-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    margin-top: 5px;
}

.pdf-actions {
    margin-top: auto;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #798C69;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.downloads-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.downloads-footer p {
    margin: 0;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .pdfs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .downloads-header {
        padding: 30px 20px;
    }
    
    .downloads-header h2 {
        font-size: 2em;
    }
    
    .downloads-header .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .downloads-header .d-flex > div:first-child {
        display: none;
    }
    
    .downloads-header .btn_1 {
        align-self: center;
    }
    
    .login-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pdf-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}
