/*
Theme Name: Geef me de 5 CoachView Demo
Theme URI:
Author: CoachView Demo
Description: Demo theme for the CoachView integration, styled after geefmede5.nl.
Version: 1.0.0
Requires at least: 5.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: gmd5-coachview
*/

/* ===== Design Tokens ===== */
:root {
    --color-primary:      #6B3FA0;
    --color-primary-dark: #5a3387;
    --color-secondary:    #F5C800;
    --color-bg:           #F9F9F9;
    --color-text:         #2D2D2D;
    --color-white:        #FFFFFF;
    --color-border:       #E0E0E0;
    --font-main:          'Open Sans', sans-serif;
    --max-width:          1100px;
    --spacing:            1.5rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ===== Header ===== */
.site-header {
    background: var(--color-white);
    border-bottom: 3px solid var(--color-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo img { height: 48px; width: auto; }

.site-logo .site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.site-logo .site-name span {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text);
}

/* ===== Navigation ===== */
.site-nav ul { list-style: none; display: flex; gap: 1.25rem; }

.site-nav a {
    font-weight: 600;
    color: var(--color-text);
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    text-decoration: none;
}

.btn-large { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0;
}

.hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.4rem; }
.hero p   { font-size: 1.05rem; opacity: 0.9; }

/* ===== Training grid ===== */
.training-grid { padding: 2.5rem 0; }

.training-grid > .container > h2 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Card ===== */
.card {
    background: var(--color-white);
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card h3 { font-size: 1.05rem; color: var(--color-primary); font-weight: 700; }

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    font-size: 0.875rem;
    color: #555;
}

.card-price { font-weight: 700; font-size: 1rem; }

.card .btn { align-self: flex-start; margin-top: auto; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 1rem 0; font-size: 0.875rem; }
.breadcrumb a { color: var(--color-primary); font-weight: 600; }

/* ===== Training detail ===== */
.training-detail { padding: 2rem 0 3rem; }

.training-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .training-layout { grid-template-columns: 2fr 1fr; align-items: start; }
}

.training-body h1 { font-size: 1.75rem; color: var(--color-primary); margin-bottom: 0.75rem; }
.training-body h2 { font-size: 1.05rem; color: var(--color-primary); margin: 1.25rem 0 0.4rem; }
.training-body p  { margin-bottom: 0.75rem; }

/* ===== Info box ===== */
.info-box {
    background: var(--color-white);
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

.info-box h3 { font-size: 1rem; color: var(--color-primary); font-weight: 700; margin-bottom: 1rem; }

.info-box dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.info-box dt { font-weight: 600; color: #555; }
.info-box dd { color: var(--color-text); }

.info-box .btn { width: 100%; text-align: center; margin-top: 1.25rem; display: block; }

/* ===== Placeholder form section ===== */
.form-placeholder {
    background: var(--color-secondary);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    text-align: center;
}

.form-placeholder .badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 0.85rem;
}

.form-placeholder h2 { font-size: 1.25rem; color: var(--color-text); margin-bottom: 0.6rem; }
.form-placeholder p  { color: var(--color-text); font-size: 0.95rem; max-width: 500px; margin: 0 auto; }

/* ===== Footer ===== */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (min-width: 768px) {
    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.site-footer p   { font-size: 0.875rem; opacity: 0.85; }
.site-footer a   { color: var(--color-secondary); }
.site-footer a:hover { text-decoration: underline; }
