/*
Theme Name: GymProfile Child
Theme URI: https://gymsoftech.com
Description: GeneratePress child theme that matches the GymProfile marketing site — dark slate background, violet→indigo gradient brand colour, dark header and footer.
Author: GymProfile
Template: generatepress
Version: 1.0.0
Text Domain: gymprofile-child
*/

/* ===== Brand tokens (mirror the Laravel app's admin-theme-tokens.css) ===== */
:root {
    --gp-primary: hsl(4 100% 59%);          /* brand coral-red (#ff3c2e) */
    --gp-primary-2: hsl(347 77% 45%);       /* crimson gradient end (#cb1a41) */
    --gp-gradient: linear-gradient(135deg, hsl(4 100% 59%), hsl(347 77% 45%));
    --gp-primary-soft: hsl(4 100% 72%);     /* lighter coral for body links */
    --gp-bg: #020617;                       /* slate-950 (marketing bg) */
    --gp-bg-2: #0f172a;                     /* slate-900 */
    --gp-surface: #111a2e;                  /* card surface */
    --gp-border: rgba(255, 255, 255, 0.10);
    --gp-text: #e2e8f0;                     /* slate-200 */
    --gp-heading: #ffffff;
    --gp-muted: #94a3b8;                    /* slate-400 */
    --gp-link: hsl(4 100% 72%);             /* soft coral for body links */
}

/* ===== Base / typography ===== */
body {
    background-color: var(--gp-bg);
    color: var(--gp-text);
    font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-content,
.site,
#page {
    background-color: var(--gp-bg);
}

h1, h2, h3, h4, h5, h6,
.entry-title, .entry-title a {
    color: var(--gp-heading);
}

a {
    color: var(--gp-link);
}
a:hover {
    color: hsl(4 100% 80%);
}

/* ===== Header (dark, matches marketing-header) ===== */
.site-header,
.site-header .inside-header {
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gp-border);
}

.main-title a,
.site-title a,
.main-title,
.site-description {
    color: var(--gp-heading) !important;
}

/* Gradient "G" badge look on the site logo text, optional accent under title */
.site-branding-container .main-title a::before {
    content: "G";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-right: 0.55rem;
    border-radius: 0.55rem;
    font-weight: 800;
    color: #fff;
    background-image: var(--gp-gradient);
    box-shadow: 0 12px 28px -10px hsl(4 100% 59% / 0.55);
    vertical-align: middle;
}

/* ===== Primary navigation ===== */
.main-navigation,
.main-navigation .inside-navigation,
.main-navigation ul ul {
    background-color: transparent;
}
.main-navigation .main-nav ul li a {
    color: var(--gp-muted);
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--gp-heading);
    background-color: transparent;
}
/* submenus need a solid dark surface */
.main-navigation ul ul {
    background-color: var(--gp-bg-2);
    border: 1px solid var(--gp-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

/* ===== Buttons (gradient, matches landing-btn-primary) ===== */
.button,
button,
input[type="submit"],
.wp-block-button__link,
.wp-element-button {
    background-image: var(--gp-gradient);
    background-color: var(--gp-primary);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px -12px hsl(4 100% 59% / 0.35);
    transition: filter 0.15s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
    filter: brightness(1.1);
    color: #fff;
}

/* ===== Content cards / entries ===== */
.entry-content,
.entry-summary,
.widget,
.comment-body,
.wp-block-group.is-style-card {
    color: var(--gp-text);
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .site-content,
.entry-content > .alignwide,
article.post,
article.page {
    background-color: var(--gp-bg-2);
    border: 1px solid var(--gp-border);
    border-radius: 1rem;
}

/* Read-more / post links pick up the brand */
.read-more,
.entry-meta a {
    color: var(--gp-link);
}

/* ===== Sidebar widgets ===== */
/* Give each sidebar widget the same dark card surface as post containers
   (GeneratePress renders these white by default in separate-containers mode). */
.widget-area .widget,
.inside-right-sidebar .widget,
.inside-left-sidebar .widget,
.sidebar .widget {
    background-color: var(--gp-bg-2);
    color: var(--gp-text);
    border: 1px solid var(--gp-border);
    border-radius: 1rem;
}

.widget-title {
    color: var(--gp-heading);
    border-bottom: 1px solid var(--gp-border);
    padding-bottom: 0.4rem;
}

/* Widget body text + links stay on-brand inside the dark cards */
.widget-area .widget,
.widget-area .widget li,
.widget-area .widget p {
    color: var(--gp-text);
}
.widget-area .widget a {
    color: var(--gp-link);
}

/* ===== Inputs ===== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    background-color: var(--gp-surface);
    color: var(--gp-text);
    border: 1px solid var(--gp-border);
    border-radius: 0.6rem;
}
input::placeholder,
textarea::placeholder {
    color: var(--gp-muted);
}

/* ===== Footer (dark, matches marketing-footer) ===== */
.site-footer,
.site-info,
.footer-widgets {
    background-color: var(--gp-bg);
    color: var(--gp-muted);
    border-top: 1px solid var(--gp-border);
}
.site-info a,
.footer-widgets a {
    color: var(--gp-muted);
}
.site-info a:hover,
.footer-widgets a:hover {
    color: var(--gp-heading);
}
.footer-widgets .widget-title {
    color: #cbd5e1; /* slate-300 */
}

/* ===== Misc polish ===== */
hr,
.entry-content hr {
    border-color: var(--gp-border);
}
blockquote {
    border-left: 4px solid var(--gp-primary);
    color: var(--gp-text);
}
::selection {
    background: hsl(4 100% 59% / 0.35);
    color: #fff;
}
