/* SportsWriters-Reference.com - Main Stylesheet */
/* Baseball-Reference.com Style Replication */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #000000;
    background-color: #ffffff;
}

a {
    color: #0645ad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */

.top-bar {
    background-color: #222;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-logo {
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
}

.top-bar-logo:hover {
    text-decoration: none;
}

.top-bar-star {
    color: #e8c840;
    margin-right: 3px;
}

.top-bar-links {
    display: flex;
    gap: 12px;
}

.top-bar-links a {
    color: #ccc;
    font-size: 11px;
    text-decoration: none;
}

.top-bar-links a:hover {
    text-decoration: underline;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    color: #ccc;
    font-size: 11px;
    text-decoration: none;
}

.top-bar-right a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.site-header {
    background-color: #ffffff;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo-line1 {
    font-size: 28px;
    font-weight: 900;
    color: #222;
    letter-spacing: -1px;
    display: block;
    line-height: 1.1;
}

.site-logo-line2 {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    letter-spacing: 2px;
    display: block;
}

.site-search {
    display: flex;
    max-width: 480px;
}

.site-search input[type="text"] {
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    width: 300px;
}

.site-search button {
    background-color: #8b0000;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.site-search button:hover {
    background-color: #700000;
}

/* ==========================================================================
   MAIN NAV BAR
   ========================================================================== */

.main-nav {
    background-color: #8b0000;
    border-bottom: 2px solid #600;
    padding: 0 15px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    border-right: 1px solid #a52a2a;
}

.main-nav li:last-child {
    border-right: none;
}

.main-nav a {
    display: block;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 7px 12px;
    text-decoration: none;
}

.main-nav a:hover {
    background-color: #700000;
    text-decoration: none;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
    background-color: #e8e8e8;
    border-bottom: 1px solid #ccc;
    padding: 5px 15px;
    font-size: 11px;
    color: #555;
}

.breadcrumb a {
    color: #0645ad;
}

.breadcrumb span {
    margin: 0 3px;
}

/* ==========================================================================
   WRITER TAB NAV
   ========================================================================== */

.writer-tabs {
    padding: 10px 15px 0 15px;
    background-color: #ffffff;
}

.writer-tabs ul {
    list-style: none;
    display: flex;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0;
    margin-bottom: 0;
}

.writer-tabs li {
    margin-right: 3px;
    margin-bottom: -1px;
}

.writer-tabs a {
    display: block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    background-color: #eee;
    border: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    color: #000;
    text-decoration: none;
}

.writer-tabs a:hover {
    background-color: #ddd;
    text-decoration: none;
}

.writer-tabs a.active {
    background-color: #8b0000;
    color: #ffffff;
    border-color: #8b0000;
}

.writer-tabs a.active:hover {
    background-color: #8b0000;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: #222;
    padding: 15px;
    text-align: center;
    font-size: 10px;
    color: #aaa;
    margin-top: 30px;
}

.footer a {
    color: #ccc;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    margin: 0 8px;
}

/* ==========================================================================
   PAGE CONTENT CONTAINER
   ========================================================================== */

.page-content {
    padding: 15px;
    max-width: 1200px;
}

/* ==========================================================================
   TWO-COLUMN LAYOUT (Summary Page)
   ========================================================================== */

.two-column {
    display: flex;
}

.main-column {
    flex: 1;
}

.sidebar {
    width: 200px;
    margin-left: 12px;
}

/* ==========================================================================
   WRITER HEADER
   ========================================================================== */

.writer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.writer-header-info {
    flex: 1;
}

.writer-name {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 3px;
}

.writer-subhead {
    font-size: 13px;
    color: #555;
}

.writer-subhead em {
    font-style: italic;
}

.writer-photo {
    width: 120px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    flex-shrink: 0;
}

/* ==========================================================================
   BIO FIELDS
   ========================================================================== */

.bio-fields {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.bio-fields dl {
    display: grid;
    grid-template-columns: 140px 1fr;
}

.bio-fields dt {
    color: #555;
}

.bio-fields dd {
    color: #000;
}

/* ==========================================================================
   AWARD PILLS
   ========================================================================== */

.award-pills {
    margin-bottom: 15px;
}

.pill {
    display: inline-block;
    padding: 1px 6px;
    margin: 1px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
}

.pill-crimson {
    background-color: #8b0000;
    color: #ffffff;
}

.pill-gray {
    background-color: #666;
    color: #ffffff;
}

/* ==========================================================================
   STAT CIRCLES
   ========================================================================== */

.stat-circles {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.stat-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #003366;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-circle-number {
    color: #8b0000;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
}

.stat-circle-label {
    color: #000000;
    font-size: 9px;
}

/* ==========================================================================
   SEASON TABS
   ========================================================================== */

.season-tabs {
    margin-bottom: 10px;
}

.season-tab {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #ccc;
    background-color: #eee;
    color: #000;
    text-decoration: none;
    margin-right: 3px;
}

.season-tab.active {
    background-color: #8b0000;
    color: #ffffff;
    border-color: #8b0000;
}

/* ==========================================================================
   TABLE CONTROLS
   ========================================================================== */

.table-controls {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 5px;
}

.table-controls-left a {
    margin-right: 12px;
}

.table-controls-right {
    color: #555;
    font-style: italic;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.data-table th {
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    text-align: left;
    padding: 4px 6px;
    border-bottom: 2px solid #8b0000;
}

.data-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #ddd;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

.data-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.data-table tbody tr:hover {
    background-color: #ffffcc;
}

.data-table .total-row {
    font-weight: bold;
    border-top: 2px solid #222;
}

.data-table .total-row td {
    border-bottom: none;
}

.table-footnote {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 3px;
}

/* ==========================================================================
   SIDEBAR BOXES
   ========================================================================== */

.sidebar-box {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.sidebar-box-header {
    background-color: #8b0000;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
}

.sidebar-box-body {
    background-color: #ffffff;
    padding: 5px 7px;
    font-size: 11px;
    line-height: 1.8;
}

.sidebar-box-body .highlight-item {
    padding: 2px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-box-body .highlight-item:last-child {
    border-bottom: none;
}

.sidebar-box-body .highlight-item.bold {
    font-weight: bold;
}

.sidebar-box-body .link-item {
    display: block;
    padding: 1px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-box-body .link-item:last-child {
    border-bottom: none;
}

.sidebar-box-body .news-item {
    font-size: 10px;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-box-body .news-item:last-child {
    border-bottom: none;
}

.sidebar-box-body .news-item strong {
    font-weight: bold;
}

/* ==========================================================================
   PAGE TITLES (H1)
   ========================================================================== */

h1.page-title {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
}

h1.section-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #8b0000;
    margin-bottom: 15px;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 3px;
    margin-bottom: 10px;
    margin-top: 20px;
}

/* ==========================================================================
   TBD PLACEHOLDER
   ========================================================================== */

.tbd {
    color: #999;
    font-style: italic;
}

/* ==========================================================================
   TRANSACTIONS PAGE (Plain prose only)
   ========================================================================== */

.transactions-list p {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   HOMEPAGE SPECIFIC
   ========================================================================== */

.hero-search {
    text-align: center;
    padding: 40px 15px;
    background-color: #ffffff;
}

.hero-search input[type="text"] {
    width: 100%;
    max-width: 600px;
    padding: 10px 15px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.hero-search button {
    background-color: #8b0000;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.hero-search button:hover {
    background-color: #700000;
}

.featured-writer {
    padding: 20px 15px;
    border-bottom: 1px solid #ddd;
}

.featured-writer h2 {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 3px;
    margin-bottom: 12px;
}

.featured-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.featured-photo {
    width: 60px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.featured-info {
    font-size: 12px;
    line-height: 1.6;
}

.featured-info .name {
    font-weight: bold;
    font-size: 14px;
}

.browse-columns {
    display: flex;
    gap: 20px;
    padding: 20px 15px;
}

.browse-column {
    flex: 1;
}

.browse-column h2 {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 3px;
    margin-bottom: 10px;
}

.browse-column ul {
    list-style: none;
}

.browse-column li {
    padding: 3px 0;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

.browse-column li:last-child {
    border-bottom: none;
}

.browse-column .writer-outlet {
    color: #555;
}
