/*
 * card.css - Post, business, and review card styles
 */

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(26,115,232,0.07);
    padding: 28px 22px;
    margin-bottom: 32px;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.post-card:hover {
    box-shadow: 0 8px 24px rgba(26,115,232,0.13);
    border-color: #1a73e8;
    transform: translateY(-2px) scale(1.02);
}
.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 8px;
}
.post-title a {
    color: inherit;
    text-decoration: none;
}
.post-title a:hover {
    text-decoration: underline;
}
.post-meta {
    color: #888;
    font-size: 0.97rem;
    margin-bottom: 10px;
}
.post-excerpt {
    color: #444;
    font-size: 1.01rem;
    margin-bottom: 10px;
}
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}
.post-footer .cat-links {
    color: #1a73e8;
    font-size: 0.97rem;
}
.archive-title {
    font-size: 1.6rem;
    color: #1a73e8;
    font-weight: 700;
    margin-bottom: 18px;
}

/* Business Card */
.business-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(26,115,232,0.07);
    padding: 32px 20px;
    margin-bottom: 32px;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.business-card:hover {
    box-shadow: 0 8px 24px rgba(26,115,232,0.13);
    border-color: #1a73e8;
    transform: translateY(-2px) scale(1.02);
}
.business-card.sponsored {
    border: 2px solid #ffe082;
    box-shadow: 0 2px 12px rgba(255,224,130,0.13);
}
.business-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f7fb;
    margin-bottom: 12px;
}
.business-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.business-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1a73e8;
}
.business-score {
    color: #43a047;
    font-size: 1.01rem;
    font-weight: 600;
}
.score-badge {
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.97rem;
    font-weight: 600;
    margin-left: 8px;
}


/* Reviewed Product Card */
.reviewed-product-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(26,115,232,0.07);
    padding: 24px 18px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.reviewed-product-card:hover {
    box-shadow: 0 8px 24px rgba(26,115,232,0.13);
    border-color: #1a73e8;
    transform: translateY(-2px) scale(1.02);
}
.reviewed-product-img {
    width: 100%;
    max-width: 120px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.reviewed-product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 4px;
}
.reviewed-product-snippet {
    color: #444;
    font-size: 0.98rem;
    margin-bottom: 6px;
}
.read-review-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 8px;
    display: inline-block;
}
.read-review-btn:hover {
    background: #1558b0;
    color: #fff;
}

/* Card Grids and Responsive */
.posts-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
@media (min-width: 600px) {
    .posts-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}
@media (min-width: 900px) {
    .posts-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    }
}
@media (max-width: 600px) {
    .post-card-content {
        padding: 10px 0;
    }
    .read-more-btn {
        padding: 8px 12px;
        font-size: 0.97rem;
    }
    .post-card-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    .post-card-thumb {
        max-width: 100%;
        margin-bottom: 10px;
    }
} 