/* ==========================================================================
   Red Eagles - 試合結果ページスタイル
   ========================================================================== */

/* === 試合結果ページ専用スタイル === */

/* セクション */
.result-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}
.result-section.section-alt {
    background-color: var(--re-gray-100);
    max-width: 100%;
}
.result-section.section-alt > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.result-no-items {
    color: var(--re-gray-600);
    text-align: center;
    padding: 2rem 0;
}

/* カードグリッド */
.result-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* カード共通 */
.result-card {
    background: var(--re-white);
    border: 1px solid var(--re-gray-200);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.result-card--link {
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.result-card--link:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: var(--re-primary);
}
.result-card--link:focus-visible {
    outline: 3px solid var(--re-primary);
    outline-offset: 2px;
}
.result-card--static {
    cursor: default;
}

/* カードヘッダー */
.result-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.result-card-date {
    font-size: 0.85rem;
    color: var(--re-gray-600);
}

/* カテゴリーラベル */
.result-card-label {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.result-card-label--tournament {
    background: var(--re-primary);
    color: var(--re-white);
}
.result-card-label--friendly {
    background: var(--re-accent-blue);
    color: var(--re-white);
}
.result-card-label--other {
    background: var(--re-gray-200);
    color: var(--re-gray-900);
}

/* カードタイトル */
.result-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

/* 試合一覧エリア */
.result-card-matches,
.result-archive-matches {
    display: flex;
    flex-direction: column;
    margin: 0.5rem 0;
    background: var(--re-gray-100);
    border-radius: 8px;
    overflow: hidden;
}

/* 試合行 */
.result-match-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    min-height: 44px;
}
.result-match-row:last-child {
    border-bottom: none;
}
.result-match-opponent {
    font-size: 0.9rem;
    color: var(--re-gray-900);
}
.result-match-score {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    min-width: 3.5rem;
    text-align: center;
}
.result-match-note {
    font-size: 0.75rem;
    color: var(--re-gray-600);
    grid-column: 1 / -1;
    text-align: right;
    padding: 0 0.75rem 0.25rem;
}

/* 勝敗ラベル */
.result-card-outcome {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    min-width: 3rem;
}
.result-card-outcome--win {
    background: var(--re-primary);
    color: var(--re-white);
}
.result-card-outcome--lose {
    background: var(--re-gray-200);
    color: var(--re-gray-900);
}
.result-card-outcome--draw {
    background: var(--re-accent-blue);
    color: var(--re-white);
}

/* カードフッター */
.result-card-footer,
.result-archive-event-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--re-gray-200);
    margin-top: auto;
}
.result-card-placement {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--re-primary);
    color: var(--re-white);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}
.result-card-venue {
    font-size: 0.8rem;
    color: var(--re-gray-600);
}
.result-card-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--re-gray-600);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.result-card--link:hover .result-card-arrow {
    transform: translateX(4px);
    color: var(--re-primary);
}

/* === 年別アーカイブ === */

/* タブ */
.result-archive-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.result-tab {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--re-gray-200);
    border-radius: 8px;
    background: var(--re-white);
    color: var(--re-gray-900);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    min-height: 44px;
}
.result-tab:hover {
    border-color: var(--re-primary);
}
.result-tab--active,
.result-tab[aria-selected="true"] {
    background: var(--re-primary);
    color: var(--re-white);
    border-color: var(--re-primary);
}
.result-tab:focus-visible {
    outline: 3px solid var(--re-primary);
    outline-offset: 2px;
}

/* アーカイブ月別 */
.result-archive-month {
    margin-bottom: 2rem;
}
.result-archive-month-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--re-gray-200);
    color: var(--re-gray-900);
}

/* アーカイブイベント */
.result-archive-event {
    background: var(--re-white);
    border: 1px solid var(--re-gray-200);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.result-archive-event-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.result-archive-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--re-gray-600);
}
.result-archive-event-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.result-archive-event-title a {
    color: var(--re-primary);
    text-decoration: none;
}
.result-archive-event-title a:hover {
    text-decoration: underline;
}

/* === 過去の記録 === */
.result-history-note {
    color: var(--re-gray-600);
    margin-bottom: 1.5rem;
}
.result-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}
.result-history-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    background: var(--re-white);
    border: 1px solid var(--re-gray-200);
    border-radius: 8px;
    color: var(--re-gray-900);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.result-history-link:hover {
    background: var(--re-gray-100);
    border-color: var(--re-primary);
}
.result-history-link:focus-visible {
    outline: 3px solid var(--re-primary);
    outline-offset: 2px;
}

/* === レスポンシブ === */
@media (max-width: 768px) {
    .result-cards-grid {
        grid-template-columns: 1fr;
    }
    .result-match-score {
        font-size: 1rem;
    }
    .result-history-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .result-section {
        padding: 2rem 1rem;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .result-history-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* アニメーション抑制 */
@media (prefers-reduced-motion: reduce) {
    .result-card--link,
    .result-card-arrow,
    .result-history-link,
    .result-tab {
        transition: none;
    }
}

/* ==========================================================================
   試合結果 個別記事スタイル
   page-title-hero と統一されたヒーロー表示
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--re-primary) 0%, var(--re-secondary, #1A1A1A) 100%) !important;
    min-height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.hero-section .page-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}
.hero-section .entry-meta,
.hero-section .entry-meta a {
    color: rgba(255, 255, 255, 0.85);
}
.hero-section .entry-meta a:hover,
.hero-section .entry-meta a:focus {
    color: #fff;
}
@media (max-width: 768px) {
    .hero-section {
        min-height: 150px !important;
    }
    .hero-section .page-title {
        font-size: 1.5rem;
    }
}
