/* =====================================================
   MoGolf Single Tournament Page — single.css
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=DM+Sans:wght@400;500;600;700&display=swap');

.mgfi-single-wrap {
    font-family: 'DM Sans', sans-serif;
    color: #1a1a2e;
    max-width: 100%;
}

/* ── Hero ── */
.mgfi-single-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.mgfi-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,34,64,.92) 0%, rgba(13,34,64,.45) 60%, rgba(13,34,64,.15) 100%);
}

.mgfi-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 0;
}

/* ── Shared container — matches site's content width ── */
.mgfi-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.mgfi-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .2s;
}
.mgfi-back-link:hover { color: #fff; text-decoration: none; }

.mgfi-hero-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.mgfi-type-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 30px;
}

.mgfi-single-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.2;
}

.mgfi-hero-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.8);
    font-size: .95rem;
    font-weight: 500;
    margin: 0;
}

/* ── Body layout ── */
.mgfi-single-body-wrap {
    background: #fff;
}

.mgfi-single-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 48px 0 80px;
}

/* ── Content sections ── */
.mgfi-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #eaeef4;
}
.mgfi-section:last-child { border-bottom: none; margin-bottom: 0; }

.mgfi-section h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d2240;
    margin: 0 0 14px;
}

.mgfi-section p,
.mgfi-section li {
    font-size: .95rem;
    line-height: 1.75;
    color: #444;
}

.mgfi-desc { font-size: .95rem; line-height: 1.75; color: #444; }
.mgfi-desc h3 { font-size: 1.05rem; color: #0d2240; margin: 20px 0 8px; }
.mgfi-desc p  { margin-bottom: 12px; }
.mgfi-desc ul { padding-left: 20px; }
.mgfi-desc li { margin-bottom: 6px; }
.mgfi-desc strong { color: #0d2240; }

/* ── Sidebar ── */
.mgfi-single-sidebar {
    padding-top: 4px;
}

.mgfi-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #AB0635;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    border-radius: 100px;
    padding: 6px 6px 8px 22px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: color .25s;
    width: 100%;
    box-sizing: border-box;
}

.mgfi-register-btn:hover {
    color: #fff;
    text-decoration: none;
}

.mgfi-register-btn-text {
    z-index: 1;
    position: relative;
    white-space: nowrap;
    flex: 1;
}

.mgfi-register-btn-icon {
    transform: rotate(-45deg);
    transition: transform .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.mgfi-register-btn-icon::after {
    content: '';
    position: absolute;
    background-color: rgb(145, 0, 41);
    display: block;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 100%;
    transition: width .5s ease-in-out, height .5s ease-in-out;
}

.mgfi-register-btn:hover .mgfi-register-btn-icon::after {
    width: 1000px;
    height: 1000px;
}

.mgfi-register-btn:hover .mgfi-register-btn-icon {
    transform: rotate(0deg);
}

/* ── Detail card ── */
.mgfi-detail-card {
    background: #f7f8fb;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mgfi-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eaeef4;
}
.mgfi-detail-row:first-child { padding-top: 0; }
.mgfi-detail-row:last-child  { border-bottom: none; padding-bottom: 0; }

.mgfi-detail-row svg {
    flex-shrink: 0;
    stroke: #AB0635;
    margin-top: 2px;
}

.mgfi-detail-row > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mgfi-detail-label {
    font-size: .70rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #8b96aa;
}

.mgfi-detail-value {
    font-size: .90rem;
    font-weight: 500;
    color: #0d2240;
    line-height: 1.45;
}

.mgfi-detail-value small {
    font-size: .80rem;
    color: #666;
}

.mgfi-map-link {
    font-size: .80rem;
    color: #AB0635;
    text-decoration: none;
    font-weight: 600;
}
.mgfi-map-link:hover { text-decoration: underline; }

.mgfi-source-link {
    margin-top: 16px;
    text-align: center;
}
.mgfi-source-link a {
    font-size: .80rem;
    color: #8b96aa;
    text-decoration: none;
}
.mgfi-source-link a:hover { color: #0d2240; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .mgfi-container { padding: 0 20px; }

    .mgfi-single-body {
        grid-template-columns: 1fr;
        padding: 32px 0 60px;
        gap: 32px;
    }
    .mgfi-single-sidebar { order: -1; }
    .mgfi-hero-inner { padding: 28px 0; }
}

/* ── Elementor hint / admin links ── */
.mgfi-elementor-hint {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: .88rem;
    color: #1e40af;
    line-height: 1.6;
}
.mgfi-elementor-hint a { color: #1d4ed8; font-weight: 600; }

.mgfi-admin-edit-link {
    margin-top: 14px;
    text-align: center;
}
.mgfi-admin-edit-link a {
    font-size: .80rem;
    color: #0d2240;
    text-decoration: none;
    font-weight: 600;
    opacity: .6;
    transition: opacity .2s;
}
.mgfi-admin-edit-link a:hover { opacity: 1; text-decoration: underline; }

/* ── Clean content area ── */
.mgfi-desc h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0d2240;
    margin: 28px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}
.mgfi-desc h3:first-child { margin-top: 0; }

.mgfi-desc p  { font-size: .95rem; line-height: 1.75; color: #444; margin-bottom: 12px; }
.mgfi-desc ul { padding-left: 22px; margin-bottom: 16px; }
.mgfi-desc li { font-size: .95rem; line-height: 1.7; color: #444; margin-bottom: 5px; }

.mgfi-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    font-size: .92rem;
}
.mgfi-details-table th,
.mgfi-details-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #eaeef4;
}
.mgfi-details-table th {
    width: 130px;
    font-weight: 700;
    color: #0d2240;
    background: #f7f8fb;
}
.mgfi-details-table td { color: #444; }
.mgfi-details-table tr:last-child th,
.mgfi-details-table tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════
   PAST EVENT — SINGLE PAGE
══════════════════════════════════════ */

/* Subtle grey tint on hero for past events */
.mgfi-is-past .mgfi-single-hero { filter: grayscale(20%); }

/* Registration Closed banner */
.mgfi-registration-closed {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #aaa;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: .88rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
}
.mgfi-registration-closed .mgfi-closed-icon { flex-shrink: 0; }
.mgfi-registration-closed svg { stroke: #999; }

/* Leaderboard button — same animation, navy color */
.mgfi-leaderboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #0d2240;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    border-radius: 100px;
    padding: 6px 6px 8px 22px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    transition: color .25s;
    width: 100%;
    box-sizing: border-box;
}
.mgfi-leaderboard-btn:hover { color: #fff; text-decoration: none; }

.mgfi-lb-text {
    flex: 1;
    white-space: nowrap;
    z-index: 1;
    position: relative;
}

.mgfi-lb-icon {
    transform: rotate(-45deg);
    transition: transform .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.mgfi-lb-icon::after {
    content: '';
    position: absolute;
    background-color: #AB0635;
    display: block;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 100%;
    transition: width .5s ease-in-out, height .5s ease-in-out;
}

.mgfi-leaderboard-btn:hover .mgfi-lb-icon::after {
    width: 1000px;
    height: 1000px;
}

.mgfi-leaderboard-btn:hover .mgfi-lb-icon {
    transform: rotate(0deg);
}
