/**
 * FGT Event Results News Story Styles
 * 
 * Styles for automatically generated news stories from event results.
 * Position badges use span elements with fgt-pos-* classes.
 * 
 * Column order: Position (1st) | Player (2nd) | Net Score (3rd)
 * 
 * @package FGT_Golf_Theme
 */

/* Results Table Container */
.fgt-results-table {
    margin: 20px auto !important;
    max-width: 700px !important;
}

.fgt-results-table table {
    width: 100% !important;
    max-width: 700px !important;
    border-collapse: collapse !important;
    margin: 0 auto !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

/* Table Header */
.fgt-results-table thead tr {
    background: linear-gradient(135deg, #377A00 0%, #4a9d00 100%) !important;
}

.fgt-results-table th {
    padding: 12px 8px !important;
    font-weight: 600 !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    background: transparent !important;
}

.fgt-results-table th:last-child {
    border-right: none !important;
}

/* Column 1: Position - centered */
.fgt-results-table th:nth-child(1) {
    width: 100px !important;
    text-align: center !important;
}

.fgt-results-table td:nth-child(1) {
    width: 100px !important;
    text-align: center !important;
    padding: 8px !important;
}

/* Position Badge - base styling (grey for regular positions) */
.fgt-pos-badge {
    display: inline-block !important;
    padding: 4px 0 !important;
    width: 40px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    background: #d0d0d0 !important;
    color: #555 !important;
    text-align: center !important;
}

/* Winner badge - green (position 1, always) */
.fgt-pos-badge.fgt-pos-winner {
    background: #4a9d00 !important;
    color: white !important;
}

/* Tied position badge - amber (T2, T3, T4 etc) */
.fgt-pos-badge.fgt-pos-tied {
    background: #dba617 !important;
    color: white !important;
}

/* Column 2: Player - left aligned */
.fgt-results-table th:nth-child(2),
.fgt-results-table td:nth-child(2) {
    text-align: left !important;
    padding-left: 16px !important;
}

/* Column 3: Net Score - centered, narrow */
.fgt-results-table th:nth-child(3),
.fgt-results-table td:nth-child(3) {
    width: 120px !important;
    text-align: center !important;
}

/* Table Body Rows */
.fgt-results-table tbody tr {
    border-bottom: 1px solid #e0e0e0 !important;
    border-left: 3px solid transparent !important;
    border-right: none !important;
    border-top: none !important;
}

.fgt-results-table tbody tr:nth-child(odd) {
    background: #f9f9f9 !important;
}

.fgt-results-table tbody tr:nth-child(even) {
    background: #ffffff !important;
}

/* First row (winner) styling */
.fgt-results-table tbody tr:first-child {
    background: #fffbf0 !important;
    border-left: 3px solid #dba617 !important;
}

.fgt-results-table tbody tr:first-child td:nth-child(2) {
    font-weight: bold !important;
}

.fgt-results-table tbody tr:first-child td:nth-child(3) {
    font-weight: bold !important;
    color: #dba617 !important;
}

/* Table Cells */
.fgt-results-table td {
    padding: 12px 8px !important;
    border: none !important;
    vertical-align: middle !important;
}

/* Results Heading */
.fgt-results-heading {
    margin-top: 1.5em !important;
    margin-bottom: 0.5em !important;
}
