/* ==================== CONTENT GRID & CARDS ==================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
}

.card-image img.lazy {
    opacity: 0.3;
    filter: blur(5px);
    background: var(--bg-secondary);
}

.card-image img:not(.lazy) {
    opacity: 1;
    filter: none;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.favorite-btn,
.play-btn,
.preview-btn,
.download-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.3s;
}

.favorite-btn.active {
    background: var(--error);
}

.favorite-btn:hover,
.play-btn:hover,
.preview-btn:hover,
.download-btn:hover {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    color: var(--accent);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-original {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 0.875rem;
}

.price-current {
    font-weight: bold;
    color: var(--accent);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ==================== BADGES ==================== */

.featured-badge,
.discount-badge,
.live-badge,
.progress-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.featured-badge {
    background: var(--warning);
    color: white;
}

.discount-badge {
    background: var(--error);
    color: white;
}

.live-badge {
    background: var(--error);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.progress-badge {
    background: var(--success);
    color: white;
}

/* ==================== PROGRESS & STATS ==================== */

.progress-section {
    margin: 1rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-bar {
    background: var(--bg-primary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: var(--accent);
    height: 100%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card.large {
    grid-column: span 1;
}

.stat-icon {
    font-size: 2rem;
    background: var(--accent);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-trend {
    color: var(--success);
    font-size: 0.75rem;
}

/* ==================== NEWS & EVENTS ==================== */

.news-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .news-filters::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 2px;
    }
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==================== COMMUNITY CARDS ==================== */

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(88, 184, 231, 0.2);
}

.community-card-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.community-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin: 0;
    color: var(--text-primary);
}

.community-card-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--line-height-normal);
}