/**
 * Peace Country BJJ Tournament — Global Theme Stylesheet
 * File: tournament-theme.css
 */

:root {
    /* -------------------------------------------------------------
       GLOBAL COLOR VARIABLES — Adjust colors here
       ------------------------------------------------------------- */
    --pcbjj-bg-canvas: #092C20;        /* Main dark section background */
    --pcbjj-primary: #092C20;          /* Buttons, section lines, badges */
    --pcbjj-primary-hover: #0e4432;    /* Button hover state */
    --pcbjj-card-bg: #ffffff;          /* Form and confirmation card background */
    --pcbjj-text-main: #2d3748;        /* Body text inside cards */
    --pcbjj-text-muted: #718096;       /* Subtext and secondary labels */
    --pcbjj-border-color: #e2e8f0;     /* Table & section divider lines */
    --pcbjj-accent-notice: #f0fdf4;    /* Info box background */
}

/* 1. Middle content wrapper targeting — preserves global header & footer */
.site-content,
.site-main,
.pcbjj-page-wrapper {
    background-color: var(--pcbjj-bg-canvas) !important;
    width: 100%;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 15px;
    box-sizing: border-box;
}

/* 2. Constrain and center form & confirmation containers */
.pcbjj-container,
.pcbjj-confirm-wrapper {
    width: 100% !important;
    max-width: 850px !important;
    margin: 0 auto !important;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pcbjj-text-main);
}

.pcbjj-container *,
.pcbjj-confirm-wrapper * {
    box-sizing: border-box;
}

.pcbjj-container > h1 {
    text-align: center;
    margin: 0 0 8px 0;
    font-size: 2em;
    color: #ffffff !important;
}

.pcbjj-container > p {
    text-align: center;
    color: #cbd5e0 !important;
    margin: 0 0 25px 0;
    font-size: 1em;
}

/* 3. Card Surface */
.bjj-form,
.confirm-card {
    background: var(--pcbjj-card-bg);
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.confirm-card {
    padding: 0;
    overflow: hidden;
}

/* 4. Registration Form Controls */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95em;
    color: #222;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--pcbjj-primary);
    outline: none;
}

.section-title {
    border-bottom: 2px solid var(--pcbjj-primary);
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.25em;
    color: var(--pcbjj-primary);
}

.section-title:first-of-type {
    margin-top: 0;
}

/* 5. Waivers & Checkboxes */
.waiver-box {
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 14px;
    background: #fafafa;
    font-size: 0.82em;
    line-height: 1.5;
    border-radius: 4px;
    color: #333;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92em;
    line-height: 1.45;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 6. Notices */
.payment-warning-notice {
    background: var(--pcbjj-accent-notice);
    border-left: 4px solid var(--pcbjj-primary);
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.92em;
    color: #1b382b;
    line-height: 1.45;
}

/* 7. Buttons */
#submit-btn,
.print-btn {
    width: 100%;
    background: var(--pcbjj-primary) !important;
    color: #ffffff !important;
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#submit-btn:hover,
.print-btn:hover {
    background: var(--pcbjj-primary-hover) !important;
}

/* 8. Confirmation Page Details */
.confirm-header {
    background: var(--pcbjj-primary);
    color: #ffffff;
    text-align: center;
    padding: 35px 25px;
}

.confirm-header h1 {
    color: #ffffff !important;
    margin: 0 0 10px 0;
    font-size: 2em;
}

.confirm-header p {
    color: #e2e8f0;
    margin: 0;
    font-size: 1.1em;
    opacity: 0.95;
}

.confirm-body {
    padding: 30px;
}

.info-block {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--pcbjj-border-color);
}

.info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-block h3 {
    margin: 0 0 15px 0;
    color: var(--pcbjj-primary);
    font-size: 1.2em;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #f7fafc;
    border-radius: 6px;
    padding: 16px;
    border-left: 4px solid var(--pcbjj-primary);
}

.event-grid p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--pcbjj-border-color);
    font-size: 0.95em;
}

.details-table td:first-child {
    font-weight: 600;
    width: 35%;
    color: #4a5568;
    background: #fcfdfe;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #def7ec;
    color: #03543f;
    font-size: 0.85em;
    font-weight: 700;
    border-radius: 9999px;
}

.contact-box {
    background: #fffaf0;
    border: 1px solid #feebc8;
    border-radius: 6px;
    padding: 16px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #7b341e;
}

.contact-box a {
    color: #c05621;
    font-weight: 700;
    text-decoration: underline;
}

.print-btn-wrap {
    text-align: center;
    margin-top: 25px;
}

.print-btn {
    width: auto;
    padding: 12px 24px;
    font-size: 0.95em;
}

/* 9. Responsive Styles */
@media screen and (max-width: 768px) {
    .site-content,
    .site-main,
    .pcbjj-page-wrapper {
        padding: 20px 10px;
    }
    .bjj-form,
    .confirm-body {
        padding: 20px 15px;
    }
    .form-row,
    .event-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .details-table td {
        display: block;
        width: 100% !important;
    }
    .details-table td:first-child {
        background: transparent;
        padding-bottom: 2px;
    }
}

/* 10. Print Overrides */
@media print {
    body * {
        visibility: hidden;
    }
    body {
        background: #fff !important;
    }
    .pcbjj-confirm-wrapper,
    .pcbjj-confirm-wrapper * {
        visibility: visible;
    }
    .pcbjj-confirm-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .print-btn-wrap {
        display: none;
    }
}
