/**
 * Theme Button Fixes
 * FILE: /wp-content/themes/astra-child/theme-buttons.css
 *
 * Rules:
 * 1. Buttons with #630320 bg → white text, no hover change
 * 2. Buttons with no bg / white bg → no bg change on hover
 * 3. Build Course with AI button → no color change on hover
 */

/* ── Buttons with maroon background — white text, no hover change ── */
.tutor-btn-primary,
a.tutor-btn-primary,
button.tutor-btn-primary,
[style*="background:#630320"],
[style*="background: #630320"],
[style*="background-color:#630320"],
[style*="background-color: #630320"],
.tutor-btn[style*="#630320"] {
    background-color: #630320 !important;
    color: #fff !important;
    border-color: #630320 !important;
}

.tutor-btn-primary:hover,
.tutor-btn-primary:focus,
a.tutor-btn-primary:hover,
a.tutor-btn-primary:focus,
button.tutor-btn-primary:hover,
button.tutor-btn-primary:focus {
    background-color: #630320 !important;
    color: #fff !important;
    border-color: #630320 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Buttons with outline / no bg — no background change on hover ── */
.tutor-btn-outline-primary,
a.tutor-btn-outline-primary,
button.tutor-btn-outline-primary {
    background-color: transparent !important;
    color: #630320 !important;
    border-color: #630320 !important;
}

.tutor-btn-outline-primary:hover,
.tutor-btn-outline-primary:focus,
a.tutor-btn-outline-primary:hover,
a.tutor-btn-outline-primary:focus,
button.tutor-btn-outline-primary:hover,
button.tutor-btn-outline-primary:focus {
    background-color: transparent !important;
    color: #630320 !important;
    border-color: #630320 !important;
}

/* ── White background buttons — no bg change on hover ── */
.tutor-btn-white,
a.tutor-btn-white,
button.tutor-btn-white,
.tutor-btn[style*="background:#fff"],
.tutor-btn[style*="background: #fff"],
.tutor-btn[style*="background:#ffffff"],
.tutor-btn[style*="background-color:#fff"],
.tutor-btn[style*="background-color: #fff"] {
    background-color: #fff !important;
    color: #630320 !important;
}

.tutor-btn-white:hover,
.tutor-btn-white:focus {
    background-color: #fff !important;
    color: #630320 !important;
}

/* ── Build Course with AI button — no hover color change ── */
#tnbAiOpen,
#tnbAiBtnWrap button {
    background-color: #630320 !important;
    color: #fff !important;
    border: 2px solid #630320 !important;
}

#tnbAiOpen:hover,
#tnbAiOpen:focus,
#tnbAiBtnWrap button:hover,
#tnbAiBtnWrap button:focus {
    background-color: #630320 !important;
    color: #fff !important;
    border-color: #630320 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ── General rule: any element with maroon bg gets white text ── */
[style*="background:#630320"] *,
[style*="background: #630320"] *,
[style*="background-color:#630320"] *,
[style*="background-color: #630320"] * {
    color: #fff !important;
}
