/* events.css */

/* --- Section Title (Current Stats) --- */
.section-title {
    text-align: center;
    font-size: 2em;
    color: #2c3e50; /* Dark blue-grey */
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Icon color for this specific section title if different from default section-title color, otherwise it inherits */
/* .info-section .section-title .fa-chart-line { color: #some-color; } */
/* (No specific color was defined for fa-chart-line in the original dash.css for section title, so it inherits text color) */


/* --- Info Section (Stats & Updates) --- */
.info-section {
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-block {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.info-block h3 {
    font-size: 1.4em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db; /* Blue accent underline */
    padding-bottom: 8px;
}
.info-block h3 .fas {
    margin-right: 10px;
    color: #3498db; /* Blue icon color for info block headers */
}

.info-block ul, .info-block ol {
    list-style-type: none;
    padding-left: 0;
}
.info-block li {
    padding: 5px 0;
    border-bottom: 1px solid #ecf0f1; /* Light separator for list items */
}
.info-block li:last-child {
    border-bottom: none;
}

.tournament-status .join-cta {
    color: #27ae60; /* Green for join */
    font-weight: bold;
    margin-left: 5px;
}
.tournament-status a {
    color: #2980b9;
    text-decoration: none;
}
.tournament-status a:hover {
    text-decoration: underline;
}

.block-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0;
}

.leaderboard-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.leaderboard-list .rank {
    font-weight: bold;
    color: #3498db;
    margin-right: 10px;
    min-width: 20px; /* For alignment */
    text-align: right;
}
.leaderboard-list .player {
    flex-grow: 1;
}
.leaderboard-list .score {
    font-weight: bold;
    color: #2c3e50;
}
.tournament-winner-announcement {
    text-align: center;
    font-size: 1.2em;
    color: #e67e22; /* Orange for winner announcement */
    margin-top: 15px;
    font-weight: bold;
}

.captain-log-content {
    background-color: #2c3e50; /* Dark background for log */
    color: #ecf0f1; /* Light text */
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace; /* Monospace for log feel */
    line-height: 1.6;
}

/* Assuming this CSS is within a .system-pulse .info-block or can target 'ul' directly within pulses.html context */
/* If pulses.html is included within .system-pulse info-block: */

.system-pulse ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px; /* Add some space below the "System Pulses" h3 */
}

.system-pulse li {
    display: flex; /* Align items on one line */
    justify-content: space-between; /* Push link to left, timestamp to right */
    align-items: center; /* Vertically align items */
    padding: 10px 5px; /* Add some padding around each item */
    border-bottom: 1px solid #e9ecef; /* Lighter separator */
    transition: background-color 0.2s ease-in-out;
    background-color: #ecf0f1;
}

.system-pulse li:last-child {
    border-bottom: none; /* No border for the last item */
}

.system-pulse li:hover {
    background-color: #f8f9fa; /* Subtle hover effect */
}

.system-pulse li a {
    color: #007bff; /* A common link blue, or your theme's primary link color */
    text-decoration: none;
    font-weight: 500; /* Slightly bolder than normal text */
    flex-grow: 1; /* Allow link to take available space */
    margin-right: 10px; /* Space between link and timestamp */
}

.system-pulse li a:hover {
    text-decoration: underline;
    color: #0056b3; /* Darker blue on hover */
}

.system-pulse li p.timestamp {
    font-size: 0.85em;
    color: #6c757d; /* Muted grey for timestamp */
    margin: 0; /* Remove default paragraph margin */
    white-space: nowrap; /* Prevent timestamp from wrapping if possible */
}

/* Style for the "No recent activity" message if present */
.system-pulse li:only-child { /* If only one li (likely the empty message) */
    justify-content: flex-start; /* Align to the left */
    color: #6c757d; /* Muted text color */
    font-style: italic;
}

/* Responsive adjustments for info-section elements */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* Stack info blocks */
    }
    /* .section-title style is already in winners.css, if it's global, otherwise copy here too */
    /* For consistency, if this is only for events, and winners.css might not be loaded: */
    .section-title {
        font-size: 1.6em;
    }
    .info-block h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .info-grid {
        /* grid-template-columns: 1fr; already set */
        gap: 10px;
    }
    .section-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    .info-block h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    .info-block {
        padding: 10px;
    }
}