/* subpage.css — Shared component styles for subpages */

/* RTL */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Inter', sans-serif; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .back-link { flex-direction: row-reverse; }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }
[dir="rtl"] .lang-pills { flex-direction: row-reverse; }
[dir="rtl"] .footer-inner { flex-direction: row-reverse; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--grey-200);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--jade-deep);
    font-size: .8rem;
    letter-spacing: .08em;
    font-weight: 400;
    transition: color .3s;
}

.back-link:hover { color: var(--jade-medium); }

.back-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.logo-text {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: .13em;
    color: var(--jade-deep);
    word-spacing: 0.08em;
}

.logo-club {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.99rem;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--jade-light);
    margin-left: 4px;
}

/* Language Bar */
.lang-bar {
    background: var(--grey-100);
    border-bottom: 1px solid var(--grey-200);
}

.lang-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-label {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--grey-400);
    flex-shrink: 0;
}

.lang-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.lang-pill {
    padding: 6px 16px;
    border: 1px solid var(--grey-200);
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    letter-spacing: .04em;
    color: var(--grey-500);
    cursor: pointer;
    transition: all .25s;
    border-radius: 2px;
}

.lang-pill:hover { border-color: var(--jade-light); color: var(--jade-deep); }

.lang-pill.active {
    background: var(--jade-deep);
    border-color: var(--jade-deep);
    color: var(--white);
}

/* Section Labels */
.section-label {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
}

.section-title {
    font-family: 'EB Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -.01em;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    padding: 40px;
    background: var(--grey-900);
    color: rgba(255,255,255,.4);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: 'EB Garamond', serif;
    font-size: .85rem;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    letter-spacing: .13em;
}

.footer-brand .logo-club-f {
    font-style: italic;
    font-weight: 400;
    font-size: .75rem;
    color: rgba(255,255,255,.3);
    letter-spacing: .06em;
}

.footer-copy {
    font-size: .7rem;
    letter-spacing: .04em;
}

.footer-legal {
    margin-top: 6px;
    font-size: .65rem;
    letter-spacing: .04em;
}

.footer-legal a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: color .3s;
}

.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { padding: 16px 20px; }
    .lang-bar-inner { padding: 10px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .lang-pills { justify-content: flex-start; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-right { text-align: center; }
}

@media (max-width: 480px) {
    .lang-pill { padding: 5px 12px; font-size: .7rem; }
}
