/**
 * Club News Widget Styles - Updated Design
 * BTFC Admin Plugin
 * 
 * Modern news card layout matching the reference design
 * Features: Large header image, tag overlay, bold headlines, clean typography
 */

/* ============================================
   Container and Layout
   ============================================ */

.btfc-news-container {
    margin: 10px 0;
}

.btfc-news-section-title {
    color: #2D398C;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Grid Layout */
.btfc-news-grid {
    display: grid;
    gap: 20px;
}

.btfc-news-grid.btfc-news-columns-1 {
    grid-template-columns: 1fr;
}

.btfc-news-grid.btfc-news-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.btfc-news-grid.btfc-news-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.btfc-news-grid.btfc-news-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   News Card - New Design
   ============================================ */

.btfc-news-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.btfc-news-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ============================================
   Image Container with Tag Overlay
   ============================================ */

.btfc-news-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.btfc-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.btfc-news-card:hover .btfc-news-image {
    transform: scale(1.05);
}

.btfc-news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d398c, #1e2a5a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btfc-placeholder-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Tag Overlay */
.btfc-news-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2d398c;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* ============================================
   Content Section
   ============================================ */

.btfc-news-content {
    padding: 25px;
    background: #f8f9fa;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Headline */
.btfc-news-headline {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #2d398c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btfc-news-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btfc-news-headline a:hover {
    color: #1e2a5a;
}

/* Summary */
.btfc-news-summary {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    font-weight: 400;
}

/* Read More Link */
.btfc-news-read-more {
    margin: 0 0 20px 0;
}

.btfc-read-more-link {
    color: #2d398c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.btfc-read-more-link:hover {
    color: #1e2a5a;
    text-decoration: underline;
}

/* Date Separator */
.btfc-news-date-separator {
    height: 1px;
    background: #e5e5e5;
    margin: 0 0 15px 0;
}

/* Date */
.btfc-news-date {
    font-size: 14px;
    color: #999999;
    font-weight: 400;
    text-transform: capitalize;
}

/* ============================================
   Aspect Ratios for Different Layouts
   ============================================ */

.btfc-news-aspect-16-9 .btfc-news-image-container {
    aspect-ratio: 16/9;
    height: auto;
}

.btfc-news-aspect-4-3 .btfc-news-image-container {
    aspect-ratio: 4/3;
    height: auto;
}

.btfc-news-aspect-1-1 .btfc-news-image-container {
    aspect-ratio: 1/1;
    height: auto;
}

.btfc-news-aspect-original .btfc-news-image-container {
    height: 200px;
}

/* ============================================
   List Layout
   ============================================ */

.btfc-news-list .btfc-news-grid {
    grid-template-columns: 1fr;
}

.btfc-news-list .btfc-news-card {
    flex-direction: row;
    align-items: stretch;
}

.btfc-news-list .btfc-news-image-container {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.btfc-news-list .btfc-news-content {
    flex: 1;
}

/* ============================================
   Carousel Layout
   ============================================ */

.btfc-news-carousel .btfc-news-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 10px;
}

.btfc-news-carousel .btfc-news-card {
    min-width: 350px;
    flex-shrink: 0;
}

/* ============================================
   News Feed Layout Specific Styles
   ============================================ */

.btfc-news-news .btfc-news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.btfc-news-news .btfc-news-card {
    flex-direction: row;
    align-items: flex-start;
    background: white;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 20px;
}

.btfc-news-news .btfc-news-card:hover {
    transform: none;
    box-shadow: none;
}

.btfc-news-news .btfc-news-image-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #ddd;
}

.btfc-news-news .btfc-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.btfc-news-news .btfc-news-card:hover .btfc-news-image {
    transform: none;
}

.btfc-news-news .btfc-news-image-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.btfc-news-news .btfc-placeholder-icon {
    font-size: 2rem;
    color: #6c757d;
}

.btfc-news-news .btfc-news-tag {
    display: none;
}

.btfc-news-news .btfc-news-content {
    flex: 1;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.btfc-news-news .btfc-news-headline {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #333;
    text-transform: none;
    letter-spacing: normal;
}

.btfc-news-news .btfc-news-headline a {
    color: inherit;
    text-decoration: none;
}

.btfc-news-news .btfc-news-headline a:hover {
    color: #2d398c;
}

.btfc-news-news .btfc-news-summary {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.btfc-news-news .btfc-news-read-more {
    margin: 0;
}

.btfc-news-news .btfc-read-more-link {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.btfc-news-news .btfc-read-more-link:hover {
    color: #2d398c;
    text-decoration: underline;
}

.btfc-news-news .btfc-news-date-separator {
    display: none;
}

.btfc-news-news .btfc-news-date {
    display: none;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .btfc-news-grid.btfc-news-columns-2,
    .btfc-news-grid.btfc-news-columns-3,
    .btfc-news-grid.btfc-news-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .btfc-news-image-container {
        height: 250px;
    }
    
    .btfc-news-headline {
        font-size: 20px;
    }
    
    .btfc-news-content {
        padding: 20px;
    }
    
    .btfc-news-tag {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .btfc-news-list .btfc-news-card {
        flex-direction: column;
    }
    
    .btfc-news-list .btfc-news-image-container {
        width: 100%;
        height: 200px;
    }
    
    .btfc-news-news .btfc-news-image-container {
        width: 100px;
        height: 100px;
    }
    
    .btfc-news-news .btfc-news-card {
        gap: 15px;
    }
    
    .btfc-news-section-title {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .btfc-news-image-container {
        height: 200px;
    }
    
    .btfc-news-headline {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .btfc-news-content {
        padding: 15px;
    }
    
    .btfc-news-summary {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .btfc-news-tag {
        top: 8px;
        right: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .btfc-read-more-link {
        font-size: 13px;
    }
    
    .btfc-news-date {
        font-size: 13px;
    }
    
    .btfc-news-carousel .btfc-news-card {
        min-width: 280px;
    }
    
    .btfc-news-news .btfc-news-image-container {
        width: 80px;
        height: 80px;
    }
    
    .btfc-news-news .btfc-news-card {
        gap: 12px;
    }
    
    .btfc-news-news .btfc-news-headline {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .btfc-news-news .btfc-news-summary {
        font-size: 13px;
    }
    
    .btfc-news-news .btfc-read-more-link {
        font-size: 13px;
    }
}

/* ============================================
   Empty State and Loading
   ============================================ */

.btfc-news-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-style: italic;
}

.btfc-news-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.btfc-news-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2D398C;
    border-radius: 50%;
    animation: btfc-spin 1s linear infinite;
}

@keyframes btfc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Filter Buttons
   ============================================ */

.btfc-news-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btfc-news-filter-btn {
    background: #ffffff;
    color: #2D398C;
    border: 2px solid #2D398C;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btfc-news-filter-btn:hover,
.btfc-news-filter-btn.active {
    background: #2D398C;
    color: #ffffff;
}

.btfc-news-filter-btn.active {
    background: #FFC10C;
    border-color: #FFC10C;
    color: #2D398C;
}

/* ============================================
   Dark Mode Support
   ============================================ */

@media (prefers-color-scheme: dark) {
    .btfc-news-card {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .btfc-news-content {
        background: #2a2a2a;
    }
    
    .btfc-news-headline {
        color: #ffffff;
    }
    
    .btfc-news-headline a:hover {
        color: #cccccc;
    }
    
    .btfc-news-summary {
        color: #cccccc;
    }
    
    .btfc-read-more-link {
        color: #4a9eff;
    }
    
    .btfc-read-more-link:hover {
        color: #6bb6ff;
    }
    
    .btfc-news-date {
        color: #999999;
    }
    
    .btfc-news-date-separator {
        background: #333333;
    }
}