/* Newsletter Grid Layout */
.newsletter-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Newsletter Card */
.newsletter-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.newsletter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #6366f1;
}

/* Card Image */
.card-link {
    text-decoration: none;
    color: inherit;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1333 / 2000;
    overflow: hidden;
    background: #f3f4f6;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-card:hover .card-overlay {
    opacity: 1;
}

.newsletter-card:hover .card-image {
    transform: scale(1.05);
}

.view-button {
    background: #ffffff;
    color: #111827;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    min-height: 2.8rem;
}

/* Card Meta */
.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.meta-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.meta-text {
    line-height: 1.4;
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #6366f1;
    color: #ffffff;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.btn-like {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-like:hover {
    border-color: #ef4444;
    background: #fef2f2;
    color: #dc2626;
    transform: translateY(-1px);
}

.btn-like.liked {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.btn-like.liked:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.like-icon {
    font-size: 1rem;
}

.btn-icon {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .newsletter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .newsletter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
