/*
 * WildDogZA Child Theme Stylesheet
 * All site-wide custom CSS lives here.
 * Do NOT add CSS to Appearance > Customize > Additional CSS
 * Last updated: 2026
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --wd-orange:    #E67E22;
    --wd-gold:      #F39C12;
    --wd-dark:      #2C3E50;
    --wd-charcoal:  #34495E;
    --wd-blue:      #1A5490;
    --wd-blue-light:#3498DB;
    --wd-red:       #E74C3C;
    --wd-green:     #27AE60;
    --wd-off-white: #F8F9FA;
    --wd-light-gray:#ECF0F1;
    --wd-mid-gray:  #95A5A6;
    --wd-text:      #212529;
    --font-display: 'Oswald', sans-serif;
    --font-body:    'Roboto Condensed', sans-serif;
}

/* ============================================================
   GLOBAL
   ============================================================ */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ============================================================
   SHARED COMPONENT CLASSES
   Used across shortcodes and Pagelayer sections
   ============================================================ */

/* --- Buttons --- */
.wd-btn,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--wd-blue);
}
.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.wd-btn-orange {
    background: var(--wd-orange);
    color: white;
    box-shadow: 0 8px 25px rgba(230,126,34,0.4);
}
.wd-btn-orange:hover {
    background: var(--wd-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(243,156,18,0.5);
}

.wd-btn-blue {
    background: var(--wd-blue);
    color: white;
    box-shadow: 0 8px 25px rgba(26,84,144,0.3);
}
.wd-btn-blue:hover {
    background: #15407a;
    transform: translateY(-3px);
}

.wd-btn-sm {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* --- Cards --- */
.wd-card-white {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.wd-card-orange-top {
    border-top: 6px solid var(--wd-orange);
}

.wd-card-blue-top {
    border-top: 4px solid var(--wd-blue);
}

.wd-card-orange-left {
    border-left: 4px solid var(--wd-orange);
}

.wd-card-blue-left {
    border-left: 4px solid var(--wd-blue);
}

.wd-card-white:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* --- Section headings --- */
.wd-section-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--wd-dark);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--wd-orange);
}

.wd-subheading {
    font-family: var(--font-display);
    color: var(--wd-blue);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* --- Labels / meta text --- */
.wd-meta-label {
    color: var(--wd-mid-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--font-display);
    letter-spacing: 1px;
    display: block;
}

/* --- Divider --- */
.wd-divider {
    width: 80px;
    height: 4px;
    background: var(--wd-orange);
    margin: 0 0 1.5rem 0;
}

.wd-divider-white {
    background: white;
    margin: 0 auto 1.5rem;
}

/* --- Quote block --- */
.wd-quote-block {
    background: rgba(230,126,34,0.1);
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--wd-orange);
    border-radius: 4px;
}
.wd-quote-block p {
    font-style: italic;
    color: var(--wd-dark);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Info highlight box --- */
.wd-info-box {
    padding: 1rem;
    background: rgba(26,84,144,0.05);
    border-radius: 8px;
    border-left: 4px solid var(--wd-blue);
}

/* --- Badge / pill --- */
.wd-badge {
    display: inline-block;
    background: rgba(230,126,34,0.1);
    color: var(--wd-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Status messages --- */
.wd-success {
    background: rgba(46,204,113,0.1);
    border: 3px solid #2ECC71;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
}
.wd-success h2 {
    font-family: var(--font-display);
    color: var(--wd-green);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.wd-error-msg {
    background: rgba(231,76,60,0.1);
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--wd-red);
    border-radius: 4px;
    color: #C0392B;
    margin-bottom: 2rem;
}

/* ============================================================
   HOMEPAGE - MEMBERS SECTION
   ============================================================ */
.wilddog-members-section {
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.wilddog-members-section .wd-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.wilddog-members-section .wd-divider {
    margin: 0 auto 1.5rem;
    background: white;
}

.wilddog-members-section .wd-subtext {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin: 0 auto 3rem;
    max-width: 800px;
    line-height: 1.6;
}

.wd-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
    width: 100%;
}

.wd-benefits-grid .wd-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.wd-benefits-grid .wd-card:hover {
    transform: translateY(-5px);
}
.wd-benefits-grid .wd-card .wd-icon img {
    width: 50px;
    margin-bottom: 1rem;
}
.wd-benefits-grid .wd-card h3 {
    font-family: var(--font-display);
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.wd-benefits-grid .wd-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
}

.wd-cta-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ============================================================
   HOMEPAGE - COACHING PROGRAMS SECTION
   ============================================================ */
.wd-programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.wd-program-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 4px solid var(--wd-orange);
    text-align: center;
    min-height: 500px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wd-program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(230,126,34,0.2);
}

.wd-program-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.wd-program-card h3 {
    font-family: var(--font-display);
    color: var(--wd-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.wd-program-card > p {
    color: var(--wd-charcoal);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.wd-program-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: auto;
}

.wd-program-card li {
    padding: 8px 0 8px 25px;
    color: var(--wd-charcoal);
    position: relative;
}

.wd-program-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--wd-blue);
    font-weight: bold;
}

/* ============================================================
   ATHLETE PROFILE PAGE
   ============================================================ */
.wd-profile-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.wd-profile-edit-bar {
    text-align: right;
    margin-bottom: 2rem;
}

.wd-profile-header-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 6px solid var(--wd-orange);
    margin-bottom: 2rem;
}

.wd-profile-header-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.wd-profile-photo {
    flex-shrink: 0;
}

.wd-profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--wd-orange);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.wd-profile-info {
    flex-grow: 1;
}

.wd-profile-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wd-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.wd-profile-meta-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.wd-profile-meta-item p {
    font-size: 1.1rem;
    color: var(--wd-dark);
    font-weight: 600;
    margin: 0.2rem 0 0 0;
}

.wd-profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.wd-milestone-cta {
    margin-top: 3rem;
    text-align: center;
}

/* ============================================================
   EDIT PROFILE FORM
   ============================================================ */
.wd-edit-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.wd-edit-back-bar {
    text-align: right;
    margin-bottom: 2rem;
}

.wd-form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.wd-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.wd-form-grid-1 {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.wd-photo-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.wd-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--wd-orange);
    flex-shrink: 0;
}

.wd-form-label {
    display: block;
    font-family: var(--font-display);
    color: var(--wd-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.wd-input,
.wd-select,
.wd-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--wd-dark);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: var(--wd-off-white);
}

.wd-select {
    height: 50px;
    padding: 0 1rem;
}

.wd-textarea {
    resize: vertical;
}

.wd-input:focus,
.wd-select:focus,
.wd-textarea:focus {
    border-color: var(--wd-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15);
    background: white;
}

.wd-status-msg {
    margin-left: 1rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.wd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-family: var(--font-display);
    color: var(--wd-dark);
    font-size: 1rem;
}

.wd-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ============================================================
   MILESTONE FORM
   ============================================================ */
.wd-milestone-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.wd-milestone-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 6px solid var(--wd-orange);
}

.wd-form-field {
    margin-bottom: 2rem;
}

.wd-community-toggle {
    padding: 1.5rem;
    background: rgba(26,84,144,0.05);
    border-radius: 8px;
    border-left: 4px solid var(--wd-blue);
    margin-bottom: 2rem;
}

.wd-community-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wd-community-toggle-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    cursor: pointer;
}

.wd-toggle-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--wd-dark);
    margin-bottom: 0.3rem;
}

.wd-toggle-desc {
    color: var(--wd-mid-gray);
    font-size: 0.9rem;
}

.wd-form-submit {
    text-align: center;
}

/* ============================================================
   COMMUNITY FEED
   ============================================================ */
.wd-feed-wrapper {
    max-width: 1200px;
    margin: 3rem auto;
}

.wd-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.wd-feed-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--wd-orange);
    transition: all 0.3s ease;
}

.wd-feed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.wd-feed-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--wd-dark), var(--wd-blue));
}

.wd-feed-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd-feed-content {
    padding: 1.5rem;
}

.wd-feed-athlete {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wd-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.wd-feed-date {
    color: var(--wd-mid-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.wd-feed-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(26,84,144,0.05);
    border-radius: 12px;
}

.wd-feed-empty h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--wd-dark);
    margin-bottom: 1rem;
}

/* ============================================================
   TRAINING ARTICLES GRID
   ============================================================ */
.training-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
body.login {
    background: linear-gradient(135deg, var(--wd-blue), var(--wd-blue-light)) !important;
    font-family: var(--font-body);
}

body.login #login h1 a {
    background-image: url('/wp-content/uploads/wilddog-logo-badge-375.png') !important;
    background-size: contain;
    width: 120px;
    height: 120px;
}

body.login #loginform,
body.login #registerform {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-top: 6px solid var(--wd-orange) !important;
    padding: 2.5rem !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

body.login form label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--wd-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.login form input[type="text"],
body.login form input[type="password"],
body.login form input[type="email"] {
    border: 2px solid var(--wd-light-gray) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus {
    border-color: var(--wd-orange) !important;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15) !important;
    outline: none;
}

body.login .button-primary {
    background: var(--wd-orange) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-family: var(--font-display) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 20px rgba(230,126,34,0.4) !important;
    width: 100%;
    transition: all 0.3s ease;
}

body.login .button-primary:hover {
    background: var(--wd-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(243,156,18,0.5) !important;
}

body.login #nav a,
body.login #backtoblog a {
    color: rgba(255,255,255,0.8);
    font-family: var(--font-display);
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: white;
}

body.login #login_error {
    border-left: 4px solid var(--wd-red);
    border-radius: 8px;
}

body.login .message {
    border-left: 4px solid var(--wd-green);
    border-radius: 8px;
}

/* ============================================================
   REGISTRATION FORM #659
   ============================================================ */
#user-registration-form-659 label {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--wd-dark) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

#user-registration-form-659 .ur-form-grid input {
    border: 2px solid var(--wd-light-gray) !important;
    border-radius: 8px !important;
    padding: 15px 18px !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    background: var(--wd-off-white) !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

#user-registration-form-659 .ur-form-grid input:focus {
    border-color: var(--wd-orange) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15) !important;
    background: white !important;
}

#user-registration-form-659 .ur-form-grid select {
    border: 2px solid var(--wd-light-gray) !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    background: var(--wd-off-white) !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    display: block !important;
}

#user-registration-form-659 .ur-form-grid select:focus {
    border-color: var(--wd-orange) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15) !important;
    background: white !important;
}

#user-registration-form-659 .ur-button-section {
    text-align: center !important;
}

#user-registration-form-659 .ur-submit-button,
#user-registration-form-659 input[type="submit"],
#user-registration-form-659 button[type="submit"] {
    width: auto !important;
    min-width: 150px !important;
    display: inline-block !important;
    background: var(--wd-orange) !important;
    color: white !important;
    font-family: var(--font-display) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 1.1rem 3rem !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(230,126,34,0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

#user-registration-form-659 .ur-submit-button:hover,
#user-registration-form-659 input[type="submit"]:hover,
#user-registration-form-659 button[type="submit"]:hover {
    background: var(--wd-gold) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(243,156,18,0.5) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .wd-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wd-programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wd-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .training-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Pagelayer columns stack */
    .pagelayer-row {
        display: flex !important;
        flex-direction: column !important;
    }
    .pagelayer-col {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Profile layout */
    .wd-profile-layout {
        grid-template-columns: 1fr;
    }
    .wd-profile-header-inner {
        flex-direction: column;
        align-items: center;
    }
    .wd-profile-photo img {
        width: 150px;
        height: 150px;
    }
    .wd-profile-meta-row {
        justify-content: center;
    }
    .wd-form-grid-2 {
        grid-template-columns: 1fr;
    }
    .wd-photo-row {
        flex-direction: column;
        text-align: center;
    }

    /* Login */
    body.login #login {
        width: 90% !important;
        padding: 0 !important;
    }

    /* Hero headline */
    body #hero-title h1,
    body .pagelayer-wp-title h1 {
        font-size: 1.8rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Hero background */
    .pagelayer-row-holder {
        background-attachment: scroll !important;
        background-size: cover !important;
    }
}

@media (max-width: 600px) {
    .wd-benefits-grid {
        grid-template-columns: 1fr;
    }
    .wd-cta-container {
        flex-direction: column;
        align-items: center;
    }
    .wd-programs-grid {
        grid-template-columns: 1fr;
    }
    .wd-feed-grid {
        grid-template-columns: 1fr;
    }
    .training-articles-grid {
        grid-template-columns: 1fr;
    }
}
