/* ==========================================================================
   Modernized Premium News & News Ticker Styles for TibiaCom Template
   ========================================================================== */

/* --- Top Info Bar Enhancements --- */
.InfoBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: 28px;
    box-sizing: border-box;
}

.InfoBarLinks {
    color: #e0f2fe !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.InfoBarLinks:hover {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
}

.InfoBarBigLogo {
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    transition: transform 0.2s ease;
}

.InfoBarLinks:hover .InfoBarBigLogo {
    transform: scale(1.15);
}

/* --- News Ticker Modernization (Compact & Sleek) --- */
#NewsTicker .BoxContent {
    padding: 5px 6px !important;
    background: #f4e7d3 !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 0 0 4px 4px;
}

#NewsTicker .Row {
    position: relative;
    width: 100%;
    margin-bottom: 3px;
    padding: 3px 6px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(160, 120, 60, 0.25);
    border-radius: 4px;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    min-height: 22px;
}

#NewsTicker .Row:last-child {
    margin-bottom: 0;
}

#NewsTicker .Row:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #c8963e;
    transform: translateX(3px);
    box-shadow: 0 2px 5px rgba(100, 60, 10, 0.12);
}

#NewsTicker .NewsTickerIcon {
    position: relative;
    top: auto;
    left: auto;
    flex-shrink: 0;
    margin-right: 6px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    transform: scale(0.9);
}

#NewsTicker .NewsTickerText {
    margin-left: 0 !important;
    font-size: 11px !important;
    color: #3b220c;
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

#NewsTicker .NewsTickerDate {
    position: relative !important;
    top: auto !important;
    float: none !important;
    background: linear-gradient(180deg, #fbf2db 0%, #ecd6a9 100%);
    border: 1px solid #b89358;
    color: #5c3505 !important;
    font-size: 9px !important;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 1px rgba(0,0,0,0.08);
    white-space: nowrap;
    line-height: 1.2;
}

#NewsTicker .NewsTickerShortText,
#NewsTicker .NewsTickerFullText {
    margin-left: 0 !important;
    height: auto !important;
    line-height: 1.3;
    font-weight: 500;
}

#NewsTicker .NewsTickerExtend {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    float: none !important;
    margin-left: auto;
    padding-left: 6px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
    transition: transform 0.15s ease;
    transform: scale(0.9);
}

#NewsTicker .NewsTickerExtend:hover {
    transform: scale(1.15);
}

/* --- News Articles Modernization --- */
.Content #News .NewsHeadline {
    margin-top: 12px;
    margin-bottom: 0px;
}

.Content #News .NewsHeadline:first-child {
    margin-top: 4px;
}

.Content #News .NewsHeadlineBackground {
    position: relative;
    height: 32px !important;
    margin-bottom: 0 !important;
    background: linear-gradient(180deg, #6a6a6a 0%, #505050 50%, #3c3c3c 100%) !important;
    border: 1px solid #2a2a2a !important;
    border-top: 1px solid #d4af37 !important;
    border-radius: 6px 6px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 235, 170, 0.3), 0 3px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.Content #News .NewsHeadlineIcon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 10px 0 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    flex-shrink: 0;
}

.Content #News .NewsHeadlineDate {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    background: rgba(255, 250, 220, 0.8);
    border: 1px solid #9d9467;
    color: #5b4a20 !important;
    font-size: 10px !important;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.Content #News .NewsHeadlineText {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 12px !important;
    font-weight: bold;
    color: #f5e9c8 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}

.Content #News .NewsHeadlineAuthor {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    font-size: 10px !important;
    color: #c2b59b !important;
    margin-left: auto;
    flex-shrink: 0;
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* News Body Container */
.Content #News table {
    background: #f5ecd8;
    border: 1px solid #bba482;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 14px;
    overflow: hidden;
}

.Content #News table td {
    padding: 14px 16px !important;
    color: #2b1a09;
    font-size: 11.5px;
    line-height: 1.6;
}

/* News Admin Action Buttons */
.news-admin-actions {
    display: inline-flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #d1bc9b;
    width: 100%;
}

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.news-btn-edit {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: 1px solid #1e40af;
}

.news-btn-edit:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 2px 6px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}

.news-btn-delete {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff !important;
    border: 1px solid #991b1b;
}

.news-btn-delete:hover {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 2px 6px rgba(220,38,38,0.4);
    transform: translateY(-1px);
}

.news-btn-hide {
    background: linear-gradient(180deg, #10b981 0%, #047857 100%);
    color: #ffffff !important;
    border: 1px solid #065f46;
}

.news-btn-hide:hover {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: 0 2px 6px rgba(5,150,105,0.4);
    transform: translateY(-1px);
}

.news-btn-hidden {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    color: #ffffff !important;
    border: 1px solid #92400e;
}

.news-btn-hidden:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 2px 6px rgba(217,119,6,0.4);
    transform: translateY(-1px);
}

.news-comment-btn {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(180deg, #f3eedf 0%, #dbc8a2 100%);
    border: 1px solid #9f7d45;
    border-radius: 4px;
    color: #532c04 !important;
    font-weight: 700;
    font-size: 10.5px;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.news-comment-btn:hover {
    background: linear-gradient(180deg, #fff7e6 0%, #ecd3a7 100%);
    border-color: #c99839;
    box-shadow: 0 2px 6px rgba(120,70,10,0.25);
    transform: translateY(-1px);
}
