/**
 * Sports Wire Network - Main Styles
 * Properly formatted and organized
 */

/* ==========================================================================
   Main feed container
   ========================================================================== */

.sports-wire-feed {
    margin: 20px 0;
    background: white;
}

/* ==========================================================================
   Date separators
   ========================================================================== */

.date-separator {
    background: #f0f0f0 !important;
    border-bottom: 2px solid #ddd !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #333 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* ==========================================================================
   Article rows
   ========================================================================== */

.sports-wire-article {
    padding: 12px 20px !important;
    border-bottom: 1px solid #e5e5e5 !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    transition: background 0.2s ease;
}

.sports-wire-article:hover {
    background: #f9f9f9 !important;
}

/* ==========================================================================
   Article title
   ========================================================================== */

.sports-wire-article a {
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-right: 8px;
    flex: 1 1 auto;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Show full title on hover */
.sports-wire-article:hover a {
    white-space: normal !important;
    overflow: visible !important;
}

.sports-wire-article a:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   Source styling
   ========================================================================== */

.source {
    color: #666;
    font-size: 13px;
    font-style: italic;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 10px;
}

/* ==========================================================================
   NEW badge - default color, overridden by inline styles
   ========================================================================== */

.new-badge {
    color: white !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    margin-left: 0 !important;
    margin-right: 10px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   Pagination styling
   ========================================================================== */

.sports-wire-pagination {
    margin: 30px 0;
    text-align: center;
    padding: 20px 0;
}

.sports-wire-pagination a,
.sports-wire-pagination span {
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
    background: white;
    transition: all 0.2s ease;
    border-radius: 3px;
}

.sports-wire-pagination a:hover {
    background: #f0f0f0;
    border-color: #999;
}

.sports-wire-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    font-weight: bold;
}

/* ==========================================================================
   Special styling for analysis posts
   ========================================================================== */

.sports-wire-article[data-analysis="true"] {
    background: linear-gradient(90deg, #f0f8ff 0%, #ffffff 100%);
    border-left: 5px solid #FFD700;
    position: relative;
}

.sports-wire-article[data-analysis="true"]::before {
    content: "📝 ANALYSIS";
    position: absolute;
    top: 5px;
    right: 10px;
    background: #FFD700;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

/* ==========================================================================
   Mobile responsive
   ========================================================================== */

@media (max-width: 768px) {
    .sports-wire-article {
        padding: 10px 15px !important;
    }
    
    .sports-wire-article a {
        font-size: 13px !important;
    }
    
    .source {
        font-size: 12px !important;
    }
    
    .new-badge {
        font-size: 10px !important;
        padding: 2px 5px !important;
    }
    
    .sports-wire-pagination a,
    .sports-wire-pagination span {
        padding: 6px 10px !important;
        font-size: 14px;
    }
}