/**
 * GH3 Hash Runs - Frontend Styles
 */

.gh3-upcoming-runs {
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Run Card */
.gh3-featured-run {
    background: #fff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gh3-run-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.gh3-run-number {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
}

.gh3-run-title {
    margin: 8px 0 0;
    font-size: 1.5em;
    color: #1d2327;
}

.gh3-run-date {
    font-size: 1.2em;
    color: #2271b1;
    margin-bottom: 16px;
}

.gh3-note-time {
    display: inline-block;
    background: #d63638;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 10px;
}

.gh3-note-time-compact {
    color: #d63638;
    font-weight: 600;
}

.gh3-run-detail {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gh3-label {
    font-weight: 600;
    color: #50575e;
    min-width: 80px;
}

.gh3-value {
    color: #1d2327;
}

.gh3-run-location .gh3-value {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gh3-what3words a {
    color: #e11f26;
    text-decoration: none;
    font-family: monospace;
}

.gh3-what3words a:hover {
    text-decoration: underline;
}

.gh3-maps-link {
    display: inline-block;
    background: #4285f4;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    text-decoration: none;
}

.gh3-maps-link:hover {
    background: #3367d6;
    color: #fff !important;
}

.gh3-run-notes {
    background: #f6f7f7;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 16px;
    border-left: 3px solid #2271b1;
}

.gh3-run-notes p {
    margin: 0;
}

/* Upcoming Runs Compact List */
.gh3-upcoming-list {
    background: #f6f7f7;
    border-radius: 8px;
    padding: 20px;
}

.gh3-upcoming-list h4 {
    margin: 0 0 16px;
    font-size: 1.1em;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gh3-upcoming-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh3-compact-run {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.gh3-compact-run:last-child {
    border-bottom: none;
}

.gh3-compact-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.gh3-compact-header:hover {
    background-color: #e9e9e9;
}

.gh3-expand-icon {
    margin-left: auto;
    color: #666;
    font-size: 0.8em;
    transition: transform 0.2s;
}

.gh3-compact-run.expanded .gh3-expand-icon {
    transform: rotate(180deg);
}

.gh3-compact-details {
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

.gh3-compact-details .gh3-run-detail {
    margin-bottom: 8px;
}

.gh3-compact-details .gh3-run-detail:last-child {
    margin-bottom: 0;
}

.gh3-compact-details .gh3-what3words {
    color: #e11f26;
    text-decoration: none;
    font-family: monospace;
    margin-left: 8px;
}

.gh3-compact-details .gh3-maps-link {
    margin-left: 8px;
}

.gh3-compact-date {
    font-weight: 600;
    color: #2271b1;
    min-width: 120px;
}

.gh3-compact-number {
    background: #50575e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

.gh3-compact-title {
    flex: 1;
    color: #1d2327;
}

/* No runs message */
.gh3-no-runs {
    text-align: center;
    padding: 40px 20px;
    background: #f6f7f7;
    border-radius: 8px;
    color: #50575e;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .gh3-featured-run {
        padding: 16px;
    }

    .gh3-run-detail {
        flex-direction: column;
        gap: 4px;
    }

    .gh3-label {
        min-width: auto;
    }

    .gh3-compact-run {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .gh3-compact-date {
        min-width: auto;
    }
}
