/**
 * Arena Block Color Themes
 *
 * Theme options: white, light, dark, black, red
 * Background options: arena-bg-full, arena-bg-contained
 * Text color options: arena-text-dark, arena-text-light
 */

/* === BACKGROUND WIDTH === */
.arena-bg-full {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-left: max(1rem, calc((100vw - var(--wp--style--global--content-size, 1200px)) / 2));
    padding-right: max(1rem, calc((100vw - var(--wp--style--global--content-size, 1200px)) / 2));
    box-sizing: border-box;
}

.arena-bg-contained {
    max-width: var(--wp--style--global--content-size, 1200px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.75rem;
}

/* === TEXT COLOR OVERRIDES === */
/* Dark text - for use on light backgrounds when auto doesn't work */
.arena-text-dark .arena-section-title,
.arena-text-dark .arena-contact-info h2 {
    color: #111827;
}

.arena-text-dark .arena-section-subtitle,
.arena-text-dark .arena-contact-info > p {
    color: #6b7280;
}

/* Light text - for use on dark backgrounds when auto doesn't work */
.arena-text-light .arena-section-title,
.arena-text-light .arena-contact-info h2 {
    color: #ffffff;
}

.arena-text-light .arena-section-subtitle,
.arena-text-light .arena-contact-info > p {
    color: #e5e7eb;
}

/* Contact details for text color overrides */
.arena-text-dark .arena-contact-details,
.arena-text-dark .arena-contact-item,
.arena-text-dark .arena-contact-item a {
    color: #374151;
}

.arena-text-light .arena-contact-details,
.arena-text-light .arena-contact-item,
.arena-text-light .arena-contact-item a {
    color: #e5e7eb;
}

/* Client names for text color overrides */
.arena-text-dark .arena-client-name-only {
    color: #374151;
}

.arena-text-light .arena-client-name-only {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.arena-text-light .arena-client-text-only {
    background-color: rgba(255, 255, 255, 0.1);
}

/*
 * IMPORTANT: Cards have their own internal styling based on color theme.
 * The arena-text-* classes should NOT override card contents.
 * Cards get their styling from arena-theme-* classes.
 */

/* === SECTION HEADER STYLES === */
.arena-training-types-header,
.arena-benefits-header,
.arena-coaches-header,
.arena-clients-header {
    text-align: center;
    margin-bottom: 3rem;
}

.arena-section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.arena-section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact form specific title styles */
.arena-contact-title {
    margin-bottom: 1rem;
}

.arena-contact-subtitle {
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

.arena-contact-info .arena-section-title,
.arena-contact-info .arena-section-subtitle {
    text-align: left;
    max-width: none;
}

/* === WHITE THEME (Default) === */
.arena-theme-white {
    background-color: #ffffff;
    color: #111827;
}

.arena-theme-white h1,
.arena-theme-white h2,
.arena-theme-white h3,
.arena-theme-white h4 {
    color: #111827;
}

.arena-theme-white p,
.arena-theme-white span {
    color: #374151;
}

.arena-theme-white .arena-text-muted {
    color: #6b7280;
}

/* === LIGHT THEME === */
.arena-theme-light {
    background-color: #f9fafb;
    color: #111827;
}

.arena-theme-light h1,
.arena-theme-light h2,
.arena-theme-light h3,
.arena-theme-light h4 {
    color: #111827;
}

.arena-theme-light p,
.arena-theme-light span {
    color: #374151;
}

.arena-theme-light .arena-text-muted {
    color: #6b7280;
}

/* === DARK THEME === */
.arena-theme-dark {
    background-color: #1f2937;
    color: #f9fafb;
}

.arena-theme-dark h1,
.arena-theme-dark h2,
.arena-theme-dark h3,
.arena-theme-dark h4 {
    color: #ffffff;
}

.arena-theme-dark p,
.arena-theme-dark span {
    color: #e5e7eb;
}

.arena-theme-dark .arena-text-muted {
    color: #9ca3af;
}

.arena-theme-dark .arena-training-card,
.arena-theme-dark .arena-benefit-item.arena-benefits-style-cards,
.arena-theme-dark .arena-coach-card,
.arena-theme-dark .arena-contact-form-fields {
    background-color: #374151;
}

.arena-theme-dark .arena-training-card h3,
.arena-theme-dark .arena-benefit-item h3,
.arena-theme-dark .arena-coach-info h3 {
    color: #ffffff;
}

.arena-theme-dark .arena-training-card p,
.arena-theme-dark .arena-benefit-item p,
.arena-theme-dark .arena-coach-description {
    color: #d1d5db;
}

.arena-theme-dark .arena-advantage-item {
    background-color: #374151;
}

.arena-theme-dark .arena-advantage-item span:last-child {
    color: #e5e7eb;
}

.arena-theme-dark .arena-contact-item,
.arena-theme-dark .arena-contact-item a {
    color: #e5e7eb;
}

.arena-theme-dark .arena-form-field label {
    color: #e5e7eb;
}

.arena-theme-dark .arena-form-field input,
.arena-theme-dark .arena-form-field textarea {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #f9fafb;
}

.arena-theme-dark .arena-form-field input::placeholder,
.arena-theme-dark .arena-form-field textarea::placeholder {
    color: #9ca3af;
}

/* === BLACK THEME === */
.arena-theme-black {
    background-color: #111827;
    color: #f9fafb;
}

.arena-theme-black h1,
.arena-theme-black h2,
.arena-theme-black h3,
.arena-theme-black h4 {
    color: #ffffff;
}

.arena-theme-black p,
.arena-theme-black span {
    color: #e5e7eb;
}

.arena-theme-black .arena-text-muted {
    color: #9ca3af;
}

.arena-theme-black .arena-training-card,
.arena-theme-black .arena-benefit-item.arena-benefits-style-cards,
.arena-theme-black .arena-coach-card,
.arena-theme-black .arena-contact-form-fields {
    background-color: #1f2937;
}

.arena-theme-black .arena-training-card h3,
.arena-theme-black .arena-benefit-item h3,
.arena-theme-black .arena-coach-info h3 {
    color: #ffffff;
}

.arena-theme-black .arena-training-card p,
.arena-theme-black .arena-benefit-item p,
.arena-theme-black .arena-coach-description {
    color: #d1d5db;
}

.arena-theme-black .arena-advantage-item {
    background-color: #1f2937;
}

.arena-theme-black .arena-advantage-item span:last-child {
    color: #e5e7eb;
}

.arena-theme-black .arena-contact-item,
.arena-theme-black .arena-contact-item a {
    color: #e5e7eb;
}

.arena-theme-black .arena-form-field label {
    color: #e5e7eb;
}

.arena-theme-black .arena-form-field input,
.arena-theme-black .arena-form-field textarea {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.arena-theme-black .arena-form-field input::placeholder,
.arena-theme-black .arena-form-field textarea::placeholder {
    color: #9ca3af;
}

/* === RED THEME === */
.arena-theme-red {
    background-color: #dc2626;
    color: #ffffff;
}

.arena-theme-red h1,
.arena-theme-red h2,
.arena-theme-red h3,
.arena-theme-red h4 {
    color: #ffffff;
}

.arena-theme-red p,
.arena-theme-red span {
    color: rgba(255, 255, 255, 0.9);
}

.arena-theme-red .arena-text-muted {
    color: rgba(255, 255, 255, 0.7);
}

.arena-theme-red .arena-training-card,
.arena-theme-red .arena-benefit-item.arena-benefits-style-cards,
.arena-theme-red .arena-coach-card,
.arena-theme-red .arena-contact-form-fields {
    background-color: rgba(255, 255, 255, 0.1);
}

.arena-theme-red .arena-training-card h3,
.arena-theme-red .arena-benefit-item h3,
.arena-theme-red .arena-coach-info h3 {
    color: #ffffff;
}

.arena-theme-red .arena-training-card p,
.arena-theme-red .arena-benefit-item p,
.arena-theme-red .arena-coach-description {
    color: rgba(255, 255, 255, 0.85);
}

.arena-theme-red .arena-training-icon,
.arena-theme-red .arena-benefit-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.arena-theme-red .arena-training-link {
    color: #ffffff;
}

.arena-theme-red .arena-advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.arena-theme-red .arena-advantage-icon {
    color: #ffffff;
}

.arena-theme-red .arena-advantage-item span:last-child {
    color: rgba(255, 255, 255, 0.9);
}

.arena-theme-red .arena-coach-role {
    color: rgba(255, 255, 255, 0.8) !important;
}

.arena-theme-red .arena-contact-item,
.arena-theme-red .arena-contact-item a {
    color: rgba(255, 255, 255, 0.9);
}

.arena-theme-red .arena-contact-icon {
    color: #ffffff;
}

.arena-theme-red .arena-form-field label {
    color: #ffffff;
}

.arena-theme-red .arena-form-field input,
.arena-theme-red .arena-form-field textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    color: #111827;
}

.arena-theme-red .arena-form-submit {
    background-color: #ffffff;
    color: #dc2626;
}

.arena-theme-red .arena-form-submit:hover {
    background-color: #f9fafb;
}

/* Coach placeholder on dark/red themes */
.arena-theme-dark .arena-coach-placeholder,
.arena-theme-black .arena-coach-placeholder {
    background-color: #4b5563;
    color: #e5e7eb;
}

.arena-theme-red .arena-coach-placeholder {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Client logos on dark themes - invert filter */
.arena-theme-dark .arena-client-logo,
.arena-theme-black .arena-client-logo {
    filter: brightness(0) invert(1);
}

.arena-theme-dark .arena-clients-grayscale .arena-client-item:hover .arena-client-logo,
.arena-theme-black .arena-clients-grayscale .arena-client-item:hover .arena-client-logo {
    filter: brightness(0) invert(1);
}
