/* Feed Page Styles */

/* Story Card Animations */
.story-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Advertisement Spaces */
.ad-space {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    transition: all 0.3s ease;
}

.ad-space:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: #9ca3af;
}

/* Source Badges */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.source-badge:hover {
    transform: scale(1.05);
}

.source-badge.user { 
    background-color: #dbeafe; 
    color: #1e40af; 
}

.source-badge.club { 
    background-color: #dcfce7; 
    color: #166534; 
}

.source-badge.county { 
    background-color: #f3e8ff; 
    color: #7c3aed; 
}

/* Feed Card Enhancements */
.feed-card {
    transition: all 0.3s ease;
}

.feed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Post Content */
.post-content {
    line-height: 1.6;
}

.post-content img {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

/* Line Clamp for Feed Content */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    max-height: calc(1.6em * 4 + 0.4em); /* Approximate 4 lines */
}

/* Read More Button Styles */
.read-more-btn {
    background: linear-gradient(135deg, #169b62 0%, #0f7a4d 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 155, 98, 0.3);
}

/* Engagement Metrics */
.engagement-metrics {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.engagement-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.engagement-metric:hover {
    color: #374151;
}

.engagement-metric.likes:hover {
    color: #dc2626;
}

.engagement-metric.comments:hover {
    color: #2563eb;
}

.engagement-metric.views:hover {
    color: #059669;
}

/* Share Button */
.share-button {
    transition: all 0.2s ease;
}

.share-button:hover {
    transform: scale(1.1);
    color: #059669;
}

/* Sidebar Widgets */
.sidebar-widget {
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Podcast Player */
.podcast-player {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.5rem;
    padding: 1rem;
}

.podcast-player audio {
    width: 100%;
    border-radius: 0.375rem;
}

/* Trending Posts */
.trending-post {
    border-left: 4px solid #ff883e;
    padding-left: 1rem;
    transition: all 0.2s ease;
}

.trending-post:hover {
    border-left-color: #f97316;
    background-color: #fef3c7;
}

/* Club Highlights */
.club-highlight {
    transition: all 0.2s ease;
}

.club-highlight:hover {
    background-color: #f0fdf4;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin: -0.5rem;
}

/* Navigation Enhancements */
.nav-item {
    transition: all 0.2s ease;
}

.nav-item:hover {
    transform: translateY(-1px);
}

/* Search Bar */
.search-input {
    transition: all 0.3s ease;
}

.search-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* User Avatar */
.user-avatar {
    transition: all 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Pagination */
.pagination-item {
    transition: all 0.2s ease;
}

.pagination-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .story-card:hover {
        transform: none;
    }
    
    .engagement-metrics {
        gap: 1rem;
    }
    
    .source-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Tag Styles */
.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background-color: #e5e7eb;
    transform: scale(1.05);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Quick Links */
.quick-link {
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.quick-link:hover {
    background-color: #f0fdf4;
    color: #059669;
    transform: translateX(4px);
}

/* Stats Display */
.stat-item {
    transition: all 0.2s ease;
}

.stat-item:hover {
    background-color: #f8fafc;
    border-radius: 0.375rem;
    padding: 0.25rem;
    margin: -0.25rem;
}

/* Mobile Menu */
.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu.hidden {
    transform: translateX(-100%);
    opacity: 0;
}

/* Focus States for Accessibility */
.story-card:focus-within {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

.share-button:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* Print Styles */
@media print {
    .ad-space,
    .share-button,
    .engagement-metrics {
        display: none !important;
    }
    
    .story-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
