/* SDA PDF Security - Meus Ebooks */

/* Header melhorado */
.spr-my-ebooks-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.spr-my-ebooks-header h2 {
    margin: 0 0 10px 0 !important;
    font-size: 28px !important;
    color: #333 !important;
}

.spr-subtitle {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* Empty state melhorado */
.spr-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.spr-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.spr-empty-state h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 15px 0;
}

.spr-empty-state p {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
}

/* Grid responsivo */
.spr-ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Cards melhorados */
.spr-ebook-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.spr-ebook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #1976D2;
}

.spr-ebook-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.spr-ebook-info {
    padding: 15px;
}

.spr-ebook-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.spr-ebook-progress {
    margin: 15px 0;
}

.spr-ebook-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.spr-ebook-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.3s;
}

.spr-ebook-progress-text {
    font-size: 12px;
    color: #666;
}

.spr-ebook-pages {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.spr-ebook-last-read {
    margin: 5px 0;
}

.spr-ebook-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0;
}

.spr-badge-active {
    background: #E3F2FD;
    color: #1976D2;
}

.spr-badge-completed {
    background: #E8F5E9;
    color: #388E3C;
}

.spr-badge-expired,
.spr-badge-revoked {
    background: #FFEBEE;
    color: #C62828;
}

.spr-ebook-expiring {
    color: #F57C00;
    margin: 5px 0;
}

.spr-ebook-actions {
    margin-top: 15px;
}

.spr-ebook-actions .button {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
}

.spr-ebook-actions .button-primary {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%) !important;
    border: none !important;
}

.spr-ebook-actions .button-primary:hover {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%) !important;
    transform: scale(1.02);
}

/* Mobile responsivo */
@media (max-width: 768px) {
    .spr-my-ebooks-header h2 {
        font-size: 24px !important;
    }

    .spr-ebooks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .spr-empty-state {
        padding: 40px 15px;
    }

    .spr-empty-icon {
        font-size: 60px;
    }

    .spr-empty-state h3 {
        font-size: 20px;
    }
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spr-ebook-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.spr-ebook-card:nth-child(1) { animation-delay: 0.1s; }
.spr-ebook-card:nth-child(2) { animation-delay: 0.2s; }
.spr-ebook-card:nth-child(3) { animation-delay: 0.3s; }
.spr-ebook-card:nth-child(4) { animation-delay: 0.4s; }
.spr-ebook-card:nth-child(5) { animation-delay: 0.5s; }
.spr-ebook-card:nth-child(6) { animation-delay: 0.6s; }
