/* ========================================
   CARD STYLES - CONSOLIDATED
   ======================================== */

/* CSS Variables */
:root {
    --primary: #c90272;
    --primary-dark: #9c0038;
    --text-dark: #212121;
    --text-light: #666666;
    --bg-white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

/* Card Base Styles */
.card-base {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card-base:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Featured Post */
.featured-post {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.featured-post .post-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .post-image img {
    transform: scale(1.05);
}

.featured-post-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.featured-post-link:hover {
    text-decoration: none;
    color: inherit;
}

.featured-post .post-content {
    padding: 1.2rem;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-post h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.featured-post .post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.featured-post .post-meta .date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.featured-post .post-meta .author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.featured-post .post-meta i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.featured-post .post-excerpt {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
    min-height: 0;
}

.featured-post .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    align-self: flex-start;
    pointer-events: none;
}

.featured-post-link:hover .read-more {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: white;
}

.featured-post .read-more i {
    transition: transform 0.3s ease;
}

.featured-post .read-more:hover i {
    transform: translateX(4px);
}

/* Trending Cards */
.trending-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: flex;
    align-items: stretch;
    min-height: 80px;
}

.trending-card:last-child {
    margin-bottom: 0;
}

.trending-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: stretch;
}

.trending-card-image {
    width: 80px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.trending-card-image img,
.trending-card-image img.loaded {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    flex: 1;
    min-height: 100%;
    display: block;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.trending-card:hover .trending-card-image img {
    transform: scale(1.05);
}

.trending-card-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.trending-card-tag-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.trending-card-tag-link:hover {
    text-decoration: none;
    color: inherit;
}

.trending-card-tag {
    background-color: #c90272;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.trending-card-tag-link:hover .trending-card-tag {
    background-color: #a0015a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(201, 2, 114, 0.3);
}

.trending-card-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.trending-card-meta .date {
    color: var(--text-light);
    font-size: 0.75rem;
}

.trending-card-meta .comments {
    color: var(--primary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.trending-card-meta .comments i {
    font-size: 0.7rem;
}

/* News Cards */
.news-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-card .card-image {
    height: 200px;
    background: linear-gradient(45deg, #ff4081, var(--primary));
    position: relative;
    overflow: hidden;
}

.news-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.news-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card .card-content > div {
    flex-grow: 1;
}

.news-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.news-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-card .card-meta .date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card .card-meta .date i {
    color: var(--primary);
}

.news-card .card-meta i {
    margin-right: 0.25rem;
    color: var(--primary);
}

.news-card .read-more {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.news-card .read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .read-more i {
    transform: translateX(4px);
}

/* Review Cards */
.review-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.review-card .card-image {
    height: 200px;
    background: linear-gradient(45deg, #ff4081, var(--primary));
    position: relative;
    overflow: hidden;
}

.review-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.review-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card:hover .card-image img {
    transform: scale(1.05);
}

.review-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-card .card-content > div {
    flex-grow: 1;
}

.review-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.review-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-card .card-meta .date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-card .card-meta .date i {
    color: var(--primary);
}

.review-card .card-meta i {
    margin-right: 0.25rem;
    color: var(--primary);
}

.review-card .read-more {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.review-card .read-more i {
    transition: transform 0.3s ease;
}

.review-card:hover .read-more i {
    transform: translateX(4px);
}

/* Tag System */
.tag-container {
    position: relative;
}

/* Hide pseudo-element tags on all cards since we use overlays or explicit tags */
.news-card .card-image.tag-container::before,
.review-card .card-image.tag-container::before,
.featured-post .post-image.tag-container::before,
.trending-card .trending-card-image.tag-container::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Tag Overlay System - Clickable tags that overlay on cards */
.tag-overlay-container {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
    pointer-events: none;
}

.tag-overlay-link {
    display: block;
    width: 60px;
    height: 24px;
    background: rgba(201, 2, 114, 0.8);
    border-radius: 4px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tag-overlay-link:hover {
    background: rgba(201, 2, 114, 1);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(201, 2, 114, 0.4);
}

.tag-overlay-text {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    line-height: 1;
}

/* Ensure cards have relative positioning for overlay */
.news-card,
.review-card,
.featured-post,
.trending-card {
    position: relative;
}

/* Card Links */
.card-link,
.review-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.card-link:hover,
.review-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link:hover .news-card,
.review-link:hover .review-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-post {
        min-height: 500px;
    }
    
    .featured-post .post-image {
        height: 300px;
    }
    
    .featured-post .post-content {
        padding: 1rem;
    }
    
    .featured-post h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .featured-post {
        min-height: 400px;
    }
    
    .featured-post .post-image {
        height: 250px;
    }
    
    .featured-post .post-content {
        padding: 0.75rem;
    }
    
    .trending-card-image {
        width: 60px;
    }
    
    .trending-card-content {
        padding: 0.5rem;
    }
    
    .trending-card-content h4 {
        font-size: 0.85rem;
    }
    
    .trending-card-meta {
        font-size: 0.7rem;
    }
    
    .news-card .card-image {
        height: 150px;
    }
    
    .news-card .card-content {
        padding: 1rem;
    }
} 