/* Shared header/footer: isolated from individual page styles. */
body { min-height: 100dvh; }
body > .site-footer { margin-top: auto; flex: 0 0 auto; }
.site-header.header { height: 88px; min-height: 88px; padding: 0; z-index: 1100; backdrop-filter: none; }
.site-header.header .container { width: 100%; max-width: 1600px; height: 100%; min-height: 0; padding: 0 24px; gap: 18px; }
.site-header .logo-section { min-width: 0; gap: 10px; margin: 0; }
.site-header .logo-img { width: 44px; height: 44px; }
.site-header .logo-text { font-size: 20px; letter-spacing: 1px; }
.site-header .nav-menu { margin: 0; padding: 0; gap: 2px; }
.site-header .nav-link { font-size: 13px; padding: 10px 9px; border: 0; border-radius: 8px; }
.site-header .nav-link.active { background: #00d4ff18; color: #67e8f9; box-shadow: none; }
.site-header .header-right { margin: 0; min-width: 0; gap: 8px; }
.site-header .btn-login { margin: 0; padding: 8px 14px; min-height: 44px; font-size: 14px; box-shadow: none; }
.site-header .user-profile-dropdown { position: relative; }
.site-header .user-profile-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: auto; height: 44px; max-width: 190px; padding: 5px 10px; border: 1px solid #7dc9e333; border-radius: 12px; background: #122235; color: #e5f3ff; cursor: pointer; }
.site-header .user-avatar-small { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.site-header .user-name-small { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header .user-dropdown-menu { position: absolute; inset: calc(100% + 10px) auto auto 0; width: 220px; max-width: calc(100vw - 24px); padding: 8px; background: #101e30; border: 1px solid #7dc9e333; border-radius: 14px; box-shadow: 0 15px 40px #0006; z-index: 1110; }
.site-header .dropdown-item { display: block; padding: 10px 14px; border-radius: 8px; color: #d6e4f1; text-decoration: none; text-align: start; }
.site-header .dropdown-item:hover { background: #ffffff0a; }
.site-header .logout-link { color: #ffa6a6; border-top: 1px solid #ffffff12; }
.site-footer.footer { width: 100%; padding: 48px 0 20px; background: #08111f; border-top: 1px solid #94bed52e; }
.site-footer > .container { width: 100%; max-width: 1280px; padding-inline: 28px; }
.site-footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 48px; padding-bottom: 32px; }
.site-footer-brand { display: inline-block; margin-bottom: 12px; font-size: 24px; font-weight: 800; color: #eff8ff; text-decoration: none; letter-spacing: 1px; }
.site-footer p { color: #aebfd2; font-size: 14px; line-height: 1.9; margin: 0; }
.site-footer h2 { font-size: 16px; color: #edf5ff; margin: 0 0 14px; }
.site-footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer-nav h2 { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer-nav a { color: #b8cadd; font-size: 14px; padding-block: 3px; }
.site-footer a:hover { color: #67e8f9; }
.site-footer .site-discord-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 16px; padding: 8px 18px; border: 1px solid #818cf866; border-radius: 10px; background: #6366f11a; color: #d2d6ff; }
.site-footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid #ffffff12; }
.site-footer-legal p { font-size: 13px; overflow-wrap: anywhere; }
.site-footer-legal a { color: #67e8f9; display: inline-block; }
.error-page-wrapper { min-height: calc(100dvh - 88px); padding-top: 108px; }
@media (max-width: 1400px) {
    .site-header.header { height: 76px; min-height: 76px; }
    .site-header.header .container { gap: 12px; padding-inline: 18px; }
    .site-header .mobile-menu-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; order: 3; flex-shrink: 0; border: 1px solid #7dc9e333; border-radius: 10px; }
    .site-header .header-right { margin-inline-start: auto; }
    .site-header .nav-menu { display: none; position: fixed; inset: 76px 0 auto auto; width: min(300px, calc(100vw - 56px)); max-width: 300px; height: calc(100dvh - 76px); max-height: calc(100dvh - 76px); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px 12px; overflow-y: auto; overscroll-behavior: contain; background: #0b1525; border: 0; border-left: 1px solid #7dc9e333; z-index: 1103; transform: none; }
    .site-header .nav-menu.active { display: flex; }
    .site-header .nav-menu .nav-link { padding: 11px 16px; min-height: 46px; width: 100%; font-size: 15px; white-space: normal; text-align: start; }
    .site-header .nav-menu .nav-link::before { content: none; }
    .site-header .mobile-menu-overlay.active { display: block; position: fixed; inset: 76px 0 0; width: 100%; height: calc(100dvh - 76px); background: #0009; z-index: 1101; opacity: 1; }
    body.navigation-open { overflow: hidden; }
}
@media (min-width: 1401px) { .site-header .mobile-menu-toggle, .site-header .mobile-menu-overlay { display: none; } }
@media (max-width: 768px) {
    .site-header.header .container { padding-inline: 12px; gap: 8px; }
    .site-header .logo-img { width: 38px; height: 38px; }
    .site-header .logo-text { font-size: clamp(14px, 4vw, 19px); }
    .site-header .user-profile-link { width: 44px; padding: 5px; }
    .site-header .user-name-small, .site-header .user-profile-link > i, .site-header .btn-login span { display: none; }
    .site-header .btn-login { min-width: 44px; padding: 8px 10px; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .site-footer-about { grid-column: 1 / -1; max-width: 460px; }
    .site-footer-nav a { min-height: 44px; display: flex; align-items: center; padding: 0; }
    .site-footer-legal { flex-direction: column; }
}
@media (max-width: 480px) {
    .site-footer.footer { padding-top: 32px; }
    .site-footer > .container { padding-inline: 20px; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .site-footer-about { grid-column: auto; }
    .site-footer-nav { flex-direction: row; flex-wrap: wrap; column-gap: 24px; row-gap: 0; }
    .site-footer-nav h2 { width: 100%; margin-bottom: 8px; }
}
/* Let long pages grow naturally; never shrink their content into the footer. */
body { height: auto; }
body > section, body > main, body > .error-page-wrapper { flex-shrink: 0; }
.reviews-list > .review-card { min-width: 0; }
.review-card .review-header { flex-wrap: wrap; gap: 12px; }
.review-card .review-user, .review-card .review-user-info { min-width: 0; }
.review-card .review-username, .review-card .review-title, .review-card .review-comment { overflow-wrap: anywhere; }
.pagination-container .pagination-buttons { flex-wrap: wrap; justify-content: center; max-width: 100%; }
