/* Mokotowski Gym — Dark Theme v3 */
/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0a0a0a; color: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.6; letter-spacing: 0.01em; font-feature-settings: "kern" 1, "liga" 1; }
img { max-width: 100%; height: auto; }
h1 { font-size: clamp(1.6rem, 1rem + 2vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 0.9rem + 1.5vw, 1.8rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 0.85rem + 0.8vw, 1.25rem); font-weight: 600; margin: 2rem 0 1rem; }
p, li { color: #e0e0e0; }
a { color: #3b82f6; text-decoration: none; }
a:focus, button:focus { outline: 2px solid #2563eb; outline-offset: 2px; }

/* Header */
.mg-header { background: rgba(10,10,10,0.95); border-bottom: 1px solid #1a1a1a; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); flex-wrap: wrap; }
.mg-header h1 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.mg-contact-header { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; color: #ccc; }
.mg-contact-header a { color: #ccc; text-decoration: none; transition: color 0.2s; }
.mg-contact-header a:hover { color: #3b82f6; }

/* Navigation */
.mg-nav { display: flex; gap: 0.5rem; align-items: center; }
.mg-nav a { color: #ccc; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; padding: 0.5rem 0.7rem; border-radius: 6px; white-space: nowrap; }
.mg-nav a:hover { color: #3b82f6; }
.mg-nav a.current-page { color: #3b82f6; font-weight: 700; }

/* Mobile menu */
.mobile-menu-toggle { display: none; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 1.5rem; width: 48px; height: 48px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; transition: background 0.2s; -webkit-tap-highlight-color: transparent; flex-shrink: 0; }
.mobile-menu-toggle:hover, .mobile-menu-toggle:active { background: rgba(255,255,255,0.2); }

/* Content containers */
.mg-content { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem; }
.mg-content-full { padding: 0; max-width: none; }

/* Footer */
.mg-footer { background: #050505; border-top: 1px solid #1a1a1a; padding: 2rem; text-align: center; color: #555; font-size: 0.8rem; }
.mg-footer a { color: #3b82f6; text-decoration: none; }

/* Phone links */
a[href^="tel:"] { color: #3b82f6; font-weight: 600; }
a[href^="tel:"]:hover { color: #60a5fa; }

/* Cover block (hero) */
.wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #000; }
.wp-block-cover.alignfull { width: 100vw; max-width: 100vw; }
.wp-block-cover__image-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.wp-block-cover__background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-color: #000; }
.has-background-dim { opacity: 0.35; }
.wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto; padding: 2rem; }
.has-text-align-center { text-align: center; }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.wp-block-button { display: inline-block; }
.wp-block-button__link { display: inline-block; text-decoration: none; cursor: pointer; transition: all 0.2s ease; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; border-radius: 8px; }
.wp-block-button__link:hover { filter: brightness(1.15); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* Social links */
.wp-block-social-links { display: flex; list-style: none; padding: 0; gap: 1rem; justify-content: center; align-items: center; margin: 1rem 0; }
.wp-block-social-links a { color: #fff; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); transition: all 0.2s; text-decoration: none; }
.wp-block-social-links a:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.wp-block-social-links svg { width: 24px; height: 24px; fill: currentColor; }

/* Columns */
.wp-block-columns { display: flex; gap: 2rem; flex-wrap: wrap; }
.wp-block-column { flex: 1; min-width: 250px; }

/* Tables */
.wp-block-table { overflow-x: auto; margin: 1rem 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; background: #111; border: 1px solid #222; }
.wp-block-table th { background: #151515; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; border: 1px solid #2a2a2a; padding: 12px 16px; }
.wp-block-table td { color: #d0d0d0; border: 1px solid #1a1a1a; padding: 10px 16px; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #0d0d0d; }
.wp-block-table.is-style-stripes tbody tr:nth-child(even) { background: #131313; }
.wp-block-table strong { color: #fff; }
.wp-block-table em { color: #999; }

/* Gallery */
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.wp-block-gallery .wp-block-image { margin: 0; }
.wp-block-gallery img, .mg-party-photos img { cursor: pointer; transition: transform 0.2s, filter 0.2s; border-radius: 8px; }
.wp-block-gallery img:hover, .mg-party-photos img:hover { transform: scale(1.03); filter: brightness(1.1); }

/* Images */
.wp-block-image { margin: 1rem 0; }
.wp-block-image img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* Separator */
.wp-block-separator { border: none; border-top: 1px solid #222; margin: 2rem 0; }

/* Lightbox */
.lb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000; align-items: center; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lb-overlay.open { display: flex; animation: lbFadeIn 0.2s ease-out; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); transition: opacity 0.2s; }
.lb-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; z-index: 10001; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; color: #fff; font-size: 2rem; cursor: pointer; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; opacity: 0.6; transition: all 0.2s; z-index: 10001; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { opacity: 1; background: rgba(255,255,255,0.15); }
.lb-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: #888; font-size: 0.85rem; }

/* ===== PAGE-SPECIFIC STYLES ===== */

/* Cennik */
.mg-c { max-width: 1100px; margin: 0 auto; color: #ddd; padding: 0.5rem 2rem 1rem; }
.mg-c h1 { color: #fff; font-size: 1.8rem; font-weight: 700; font-style: italic; margin: 0; }
.mg-c-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.mg-c-badge { background: #fff; color: #000; font-weight: 800; font-size: 1.2rem; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; line-height: 1; }
.mg-c-badge small { font-size: 0.45rem; font-weight: 600; }
.mg-c h3 { color: #d4a017; font-size: 0.85rem; font-weight: 700; margin: 1rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mg-c-legend { display: flex; gap: 2rem; padding: 0.6rem 1rem; background: #111; border-radius: 6px; border: 1px solid #1a1a1a; margin-bottom: 0.8rem; flex-wrap: wrap; align-items: center; }
.mg-c-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #ccc; }
.mg-c-legend-item .dot { width: 20px; height: 24px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.mg-c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.mg-c-row { display: flex; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid #151515; gap: 8px; transition: all 0.2s ease; }
.mg-c-row:hover { background: rgba(255,255,255,0.02); }
.mg-c-row .dot { width: 10px; height: 20px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.mg-c-row .name { flex: 1; color: #e0e0e0; font-size: 0.88rem; }
.mg-c-row .price { color: #fff; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.mg-c-row .perh { color: #bbb; font-size: 0.75rem; margin-left: 4px; }
.mg-c .note { color: #555; font-size: 0.75rem; font-style: italic; margin: 0.3rem 0 0; }
.mg-c-cards img { width: 100%; max-width: 900px; border-radius: 6px; margin-top: 0.5rem; }

/* Trenerzy */
.mg-trainers-intro { text-align: center; margin-bottom: 2rem; }
.mg-trainers-intro h1 { color: #fff; font-size: 1.8rem; font-weight: 700; font-style: italic; margin-bottom: 0.5rem; }
.mg-trainers-intro p { color: #888; font-size: 1rem; font-style: italic; }
.mg-trainers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.mg-trainer { text-align: center; cursor: pointer; transition: transform 0.2s; }
.mg-trainer:hover { transform: translateY(-4px); }
.mg-trainer-img { width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: 8px; margin-bottom: 0.8rem; }
.mg-trainer-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s; }
.mg-trainer:hover .mg-trainer-img img { transform: scale(1.05); }
.mg-trainer h3 { color: #fff; font-size: 0.95rem; margin: 0 0 0.2rem; font-weight: 600; }
.mg-trainer p { color: #d4a017; font-size: 0.8rem; margin: 0; font-weight: 500; }

/* Grafik */
.mg-schedule { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.mg-schedule th { background: #1a1a1a; color: #fff; padding: 12px 8px; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; border: 1px solid #2a2a2a; }
.mg-schedule td { padding: 8px; border: 1px solid #1a1a1a; text-align: center; vertical-align: middle; color: #ccc; }
.mg-schedule .time { color: #d4a017; font-weight: 700; text-align: left; width: 60px; }
.mg-schedule .beg { background: #2d5a27; color: #fff; border-radius: 4px; padding: 6px 4px; font-weight: 600; font-size: 0.8rem; }
.mg-schedule .adv { background: #4a4a4a; color: #fff; border-radius: 4px; padding: 6px 4px; font-weight: 600; font-size: 0.8rem; }
.mg-schedule .kids { background: #1a6b8a; color: #fff; border-radius: 4px; padding: 6px 4px; font-weight: 600; font-size: 0.8rem; }
.mg-legend { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; font-size: 0.9rem; }
.mg-legend span { display: inline-flex; align-items: center; gap: 6px; color: #ccc; }
.mg-legend .dot { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.mg-legend .dot-beg { background: #2d5a27; }
.mg-legend .dot-adv { background: #4a4a4a; }
.mg-legend .dot-kids { background: #1a6b8a; }

/* Imprezy */
.mg-party { max-width: 1100px; margin: 0 auto; color: #ddd; padding: 0 2rem; }
.mg-party h1 { color: #fff; font-size: 2rem; font-weight: 700; font-style: italic; margin-bottom: 1.5rem; }
.mg-party-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.mg-party-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mg-party-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; display: block; }
.mg-party-text p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.8rem; color: #ccc; }
.mg-party-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.mg-party h3 { color: #d4a017; font-size: 0.9rem; font-weight: 700; margin: 1.2rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mg-party .plan { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.mg-party .plan li { padding: 0.25rem 0; color: #bbb; font-size: 0.9rem; }
.mg-price-list { list-style: none; padding: 0; margin: 0; }
.mg-price-list li { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid #151515; font-size: 0.9rem; }
.mg-price-list .price { color: #fff; font-weight: 600; white-space: nowrap; margin-left: 1rem; }
.mg-party .contact-box { text-align: center; margin: 1.5rem 0 0; padding: 1rem; background: #111; border-radius: 8px; border: 1px solid #1a1a1a; }
.mg-party .contact-box p { color: #888; margin-bottom: 0.3rem; font-size: 0.85rem; }
.mg-party .contact-box a { color: #d4a017; font-size: 1.2rem; font-weight: 700; text-decoration: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Selection */
::selection { background: #2563eb; color: #fff; text-shadow: none; }

/* ===== STICKY MOBILE CTA ===== */
.mobile-cta { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mg-header { padding: 0.75rem 1rem; gap: 0.5rem; }
  .mg-header h1 { font-size: 1rem; }
  .mg-contact-header { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mg-nav { display: none; flex-direction: column; width: 100%; order: 10; gap: 0; background: rgba(10,10,10,0.98); border-top: 1px solid #222; margin-top: 0.5rem; padding: 0.5rem 0; }
  .mg-nav.mobile-open { display: flex; }
  .mg-nav a { padding: 14px 1rem; font-size: 1rem; width: 100%; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid #1a1a1a; }
  .mg-content { padding: 1.5rem 1rem; }
  .wp-block-columns { flex-direction: column; }
  .wp-block-column { min-width: 100%; }
  .wp-block-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .mg-c-grid { grid-template-columns: 1fr; }
  .mg-c-legend { gap: 0.8rem; padding: 0.5rem 0.8rem; }
  .mg-trainers-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .mg-party-top { grid-template-columns: 1fr; }
  .mg-party-pricing { grid-template-columns: 1fr; }
  .mg-legend { gap: 1rem; flex-wrap: wrap; }

  /* Schedule: horizontal scroll on small screens */
  .mg-schedule-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mg-schedule { font-size: 0.75rem; min-width: 500px; }
  .mg-schedule th, .mg-schedule td { padding: 6px 4px; }

  .wp-block-cover__inner-container { padding: 1.5rem 1rem; }
  .lb-close { top: 0.5rem; right: 0.5rem; font-size: 2rem; width: 52px; height: 52px; }
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb-img { max-width: 95vw; max-height: 80vh; }

  /* Sticky CTA bar */
  .mobile-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #2a2a2a; padding: 0.6rem 1rem; align-items: center; justify-content: space-between; gap: 0.75rem; }
  .mobile-cta-phone { color: #d4a017; font-weight: 600; font-size: 0.85rem; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 0.4rem; }
  .mobile-cta-phone svg { width: 16px; height: 16px; fill: #d4a017; flex-shrink: 0; }
  .mobile-cta-btn { background: #d4a017; color: #000; font-weight: 700; font-size: 0.8rem; padding: 0.6rem 1.2rem; border-radius: 50px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; text-align: center; flex-shrink: 0; }
  .mobile-cta-btn:hover { filter: brightness(1.15); }

  /* Prevent footer from being hidden behind sticky CTA */
  .mg-footer { padding-bottom: 5rem; }

  /* Table card layout on mobile */
  .wp-block-table table, .wp-block-table thead, .wp-block-table tbody, .wp-block-table th, .wp-block-table td, .wp-block-table tr { display: block; }
  .wp-block-table thead tr { position: absolute; top: -9999px; left: -9999px; }
  .wp-block-table tr { margin-bottom: 1rem; border: 1px solid #222; border-radius: 8px; overflow: hidden; background: #111; }
  .wp-block-table td { position: relative; padding: 10px 12px 10px 45%; text-align: right; border: none; border-bottom: 1px solid #1a1a1a; min-height: 44px; display: flex; align-items: center; justify-content: flex-end; }
  .wp-block-table td::before { content: attr(data-label); position: absolute; left: 12px; width: 40%; text-align: left; font-weight: 600; color: #999; font-size: 0.8rem; text-transform: uppercase; }
}

@media (max-width: 480px) {
  .mg-trainers-grid { grid-template-columns: 1fr; }
  .wp-block-gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

/* ===== BRANDING: official logo + gold accents ===== */

/* Subtle grain overlay */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Header: official logo image */
.mg-header h1 { display: none; }
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 28px; width: auto; }

/* Gold accents (replace blue #3b82f6) */
.mg-nav a.current-page { color: #d4a017; font-weight: 700; }
.mg-nav a:hover { color: #d4a017; }
.mg-contact-header a:hover { color: #d4a017; }
.mg-footer a { color: #d4a017; }
a[href^="tel:"] { color: #d4a017; font-weight: 600; }
a[href^="tel:"]:hover { color: #ebc94a; }
.wp-block-social-links a:hover { background: rgba(212,160,23,0.2); transform: scale(1.1); }

/* Gallery: square thumbnails */
.wp-block-gallery img, .mg-party-photos img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
