/*
Theme Name:        GymPilot
Theme URI:         https://yourgymdomain.com
Author:            GYM MS Team
Author URI:        https://yourgymdomain.com
Description:       Official companion theme for the GYM Management System (GymPilot) plugin. Provides a clean, responsive gym website frontend with hero section, features, class schedule display, trainer profiles, and member portal shortcode support. Install and activate this theme alongside the GYM Management System plugin.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.2
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       gympilot-theme
Tags:              fitness, gym, sports, one-column, two-columns, custom-colors, custom-menu, featured-images, full-width-template, theme-options

Screenshot:        screenshot.png (included in theme ZIP)
Theme Icon 256:    icon-256x256.png
Theme Icon 128:    icon-128x128.png

== Description ==
GymPilot is a modern, full-featured WordPress theme built specifically to work
with the GYM Management System plugin. It provides the public-facing frontend:
homepage hero, class timetable, trainer showcase, membership pricing display,
and integration with all plugin shortcodes.

== Changelog ==
= 1.0.0 =
* Initial release alongside GYM Management System Phase 08.
*/

/* ─── CSS Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gp-primary:    #1A56A0;
    --gp-primary-dk: #133F7A;
    --gp-accent:     #E8700A;
    --gp-dark:       #111827;
    --gp-text:       #374151;
    --gp-muted:      #6B7280;
    --gp-border:     #E5E7EB;
    --gp-bg:         #F9FAFB;
    --gp-white:      #FFFFFF;
    --gp-green:      #1A7A4A;
    --gp-radius:     8px;
    --gp-shadow:     0 2px 12px rgba(0,0,0,.08);
    --gp-max-w:      1200px;
    --gp-font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--gp-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gp-text);
    background: var(--gp-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gp-primary); text-decoration: none; }
a:hover { color: var(--gp-primary-dk); text-decoration: underline; }

/* ─── Container ─────────────────────────────────────────────────────────── */
.gp-container {
    max-width: var(--gp-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.gp-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--gp-radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
    text-decoration: none !important;
}
.gp-btn-primary {
    background: var(--gp-primary);
    color: var(--gp-white) !important;
}
.gp-btn-primary:hover { background: var(--gp-primary-dk); color: var(--gp-white) !important; text-decoration: none !important; }
.gp-btn-outline {
    background: transparent;
    border-color: var(--gp-white);
    color: var(--gp-white) !important;
}
.gp-btn-outline:hover { background: var(--gp-white); color: var(--gp-primary) !important; }
.gp-btn-accent { background: var(--gp-accent); color: var(--gp-white) !important; }
.gp-btn-accent:hover { background: #c4570a; color: var(--gp-white) !important; }

/* ─── Section Headings ──────────────────────────────────────────────────── */
.gp-section { padding: 72px 0; }
.gp-section-alt { background: var(--gp-bg); }
.gp-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gp-dark);
    margin-bottom: 12px;
}
.gp-section-sub {
    text-align: center;
    color: var(--gp-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
}
.gp-label {
    display: inline-block;
    background: var(--gp-primary);
    color: var(--gp-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ─── Header / Navigation ────────────────────────────────────────────────── */
#gp-header {
    background: var(--gp-white);
    border-bottom: 1px solid var(--gp-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--gp-shadow);
}
.gp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.gp-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gp-primary) !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
}
.gp-logo span { color: var(--gp-accent); }
#gp-nav ul { list-style: none; display: flex; gap: 8px; align-items: center; }
#gp-nav ul li a {
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gp-text) !important;
    text-decoration: none !important;
    transition: background .15s;
}
#gp-nav ul li a:hover { background: var(--gp-bg); color: var(--gp-primary) !important; }
#gp-nav ul li.current-menu-item > a { color: var(--gp-primary) !important; }
#gp-nav ul li a.gp-nav-cta {
    background: var(--gp-primary);
    color: var(--gp-white) !important;
    padding: 9px 18px;
}
#gp-nav ul li a.gp-nav-cta:hover { background: var(--gp-primary-dk); }
.gp-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.gp-hamburger span { display: block; width: 24px; height: 2px; background: var(--gp-dark); border-radius: 2px; transition: .3s; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
#gp-hero {
    background: linear-gradient(135deg, var(--gp-dark) 0%, var(--gp-primary-dk) 100%);
    color: var(--gp-white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
#gp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="%231A56A0" opacity=".15"/><circle cx="10" cy="80" r="30" fill="%23E8700A" opacity=".1"/></svg>') no-repeat center/cover;
}
.gp-hero-inner { position: relative; max-width: 700px; }
.gp-hero-badge {
    display: inline-block;
    background: rgba(232,112,10,.2);
    color: #FFA04A;
    border: 1px solid rgba(232,112,10,.4);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: .5px;
}
#gp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--gp-white);
}
#gp-hero h1 .highlight { color: var(--gp-accent); }
#gp-hero .hero-sub {
    font-size: 1.1rem;
    opacity: .85;
    margin-bottom: 36px;
    line-height: 1.7;
}
.gp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.gp-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.15);
    flex-wrap: wrap;
}
.gp-hero-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gp-accent);
    line-height: 1;
}
.gp-hero-stat-label { font-size: 13px; opacity: .7; margin-top: 4px; }

/* ─── Feature Cards ──────────────────────────────────────────────────────── */
.gp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.gp-feature-card {
    background: var(--gp-white);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 28px 24px;
    transition: box-shadow .2s, transform .2s;
}
.gp-feature-card:hover { box-shadow: 0 8px 28px rgba(26,86,160,.12); transform: translateY(-2px); }
.gp-feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}
.gp-feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gp-dark); margin-bottom: 8px; }
.gp-feature-card p { font-size: .9rem; color: var(--gp-muted); line-height: 1.6; }

/* ─── Class Cards ─────────────────────────────────────────────────────────── */
.gp-classes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.gp-class-card {
    background: var(--gp-white);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    overflow: hidden;
    transition: box-shadow .2s;
}
.gp-class-card:hover { box-shadow: var(--gp-shadow); }
.gp-class-card-header {
    background: var(--gp-primary);
    color: var(--gp-white);
    padding: 16px 20px;
    font-weight: 800;
    font-size: 1.1rem;
}
.gp-class-card-body { padding: 20px; }
.gp-class-meta { display: flex; gap: 16px; margin-bottom: 12px; font-size: 13px; color: var(--gp-muted); }
.gp-class-badge {
    display: inline-block;
    background: var(--gp-bg);
    color: var(--gp-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid var(--gp-border);
}

/* ─── Trainer Cards ──────────────────────────────────────────────────────── */
.gp-trainers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.gp-trainer-card { text-align: center; }
.gp-trainer-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--gp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gp-white);
    border: 3px solid var(--gp-border);
}
.gp-trainer-card h3 { font-weight: 700; color: var(--gp-dark); margin-bottom: 4px; }
.gp-trainer-role { font-size: 13px; color: var(--gp-muted); margin-bottom: 10px; }

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.gp-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; align-items: start; }
.gp-price-card {
    background: var(--gp-white);
    border: 2px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 32px 28px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
}
.gp-price-card.featured {
    border-color: var(--gp-primary);
    box-shadow: 0 8px 32px rgba(26,86,160,.15);
    position: relative;
}
.gp-price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gp-primary);
    color: var(--gp-white);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 16px;
    border-radius: 20px;
}
.gp-price-name { font-weight: 800; font-size: 1.1rem; color: var(--gp-dark); margin-bottom: 16px; }
.gp-price-amount { font-size: 2.5rem; font-weight: 900; color: var(--gp-primary); line-height: 1; }
.gp-price-period { font-size: 14px; color: var(--gp-muted); margin-bottom: 24px; }
.gp-price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.gp-price-features li { padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--gp-border); }
.gp-price-features li::before { content: '✓ '; color: var(--gp-green); font-weight: 700; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
#gp-footer {
    background: var(--gp-dark);
    color: rgba(255,255,255,.7);
    padding: 48px 0 24px;
}
.gp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.gp-footer-brand .gp-logo { font-size: 1.3rem; margin-bottom: 12px; display: block; }
.gp-footer-brand p { font-size: 14px; line-height: 1.7; }
#gp-footer h4 { color: var(--gp-white); font-size: 14px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
#gp-footer ul { list-style: none; }
#gp-footer ul li { margin-bottom: 8px; }
#gp-footer ul li a { color: rgba(255,255,255,.6) !important; font-size: 14px; text-decoration: none; transition: color .15s; }
#gp-footer ul li a:hover { color: var(--gp-white) !important; }
.gp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ─── WordPress Core Styles ──────────────────────────────────────────────── */
.wp-block-image { margin: 24px 0; }
.alignleft  { float: left; margin-right: 24px; margin-bottom: 12px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 12px; }
.aligncenter { display: block; margin: 24px auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gp-muted); text-align: center; padding: 6px 0; }

/* ─── Page / Post Content ────────────────────────────────────────────────── */
#gp-main { min-height: 60vh; }
.gp-content-wrap { max-width: 820px; margin: 0 auto; padding: 48px 24px; }
.gp-entry-title { font-size: 2rem; font-weight: 800; color: var(--gp-dark); margin-bottom: 20px; }
.gp-entry-content h1, .gp-entry-content h2, .gp-entry-content h3 { color: var(--gp-dark); margin: 24px 0 12px; font-weight: 700; }
.gp-entry-content p { margin-bottom: 16px; line-height: 1.8; }
.gp-entry-content ul, .gp-entry-content ol { margin: 16px 0 16px 24px; }
.gp-entry-content li { margin-bottom: 6px; }
.gp-entry-content blockquote {
    border-left: 4px solid var(--gp-primary);
    padding: 12px 20px;
    background: var(--gp-bg);
    border-radius: 0 var(--gp-radius) var(--gp-radius) 0;
    margin: 20px 0;
    color: var(--gp-muted);
    font-style: italic;
}

/* ─── Widgets / Sidebar ──────────────────────────────────────────────────── */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 1rem; font-weight: 700; color: var(--gp-dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gp-primary); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .gp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .gp-footer-grid { grid-template-columns: 1fr; }
    #gp-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--gp-white); border-bottom: 1px solid var(--gp-border); padding: 16px 24px; }
    #gp-nav.open { display: block; }
    #gp-nav ul { flex-direction: column; gap: 4px; }
    .gp-hamburger { display: flex; }
    .gp-hero-stats { gap: 24px; }
    .gp-section { padding: 48px 0; }
    .gp-hero-btns { flex-direction: column; }
    .gp-hero-btns .gp-btn { text-align: center; }
}
