/* assets/css/digest_list.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

.digest-list-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
    font-family: 'Outfit', sans-serif;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    background: linear-gradient(90deg, #1e293b, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted, #64748b);
    max-width: 600px;
    margin: 0 auto;
}

.digests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.digest-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.5));
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.digest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.digest-cover-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 27;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digest-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.digest-card:hover .digest-cover {
    transform: scale(1.05);
}

.digest-cover.placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.digest-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 15px;
}

.digest-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    line-height: 1.3;
}

.digest-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.digest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.digest-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.btn-primary {
    background: #6366f1;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}

.empty-state p {
    font-size: 1.2rem;
    color: #64748b;
}
