/* ============================================================
   PASCO MEMBERSHIP — STYLESHEET
   File: assets/css/pasco-membership.css
   Purpose: Styles for checkout fields, member portal,
            admin dashboard and membership cards
   ============================================================ */

/* ============================================================
   CHECKOUT - MAIN SECTION WRAPPER
   ============================================================ */

#pasco-membership-section {
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

#pasco-membership-section h3 {
    font-size: 20px;
    color: #2c2c2c;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

#pasco-membership-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================================
   PRICING NOTICE BAR
   ============================================================ */

.pasco-pricing-notice {
    background: #0073aa;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pasco-pricing-notice strong {
    margin-right: 5px;
}

/* ============================================================
   INDIVIDUAL MEMBER BOX
   ============================================================ */

.pasco-member-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.pasco-member-box:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Member box header with number and remove button */
.pasco-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.pasco-member-header h4 {
    font-size: 16px;
    color: #0073aa;
    margin: 0;
}

/* Remove member button */
.pasco-remove-member {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.pasco-remove-member:hover {
    background: #b02a37;
}

/* ============================================================
   FORM FIELDS INSIDE MEMBER BOX
   ============================================================ */

.pasco-field-row {
    margin-bottom: 14px;
}

.pasco-field-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.pasco-field-row label .required {
    color: #dc3545;
    margin-left: 2px;
}

.pasco-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.pasco-input:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

/* ============================================================
   MEMBERSHIP TYPE DISPLAY
   Shows the auto-detected type with colour coding
   ============================================================ */

.pasco-type-display {
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 14px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

/* Adult - blue */
.pasco-type-display.type-adult {
    background: #e8f4fd;
    color: #0073aa;
    border-color: #0073aa;
    font-weight: 600;
}

/* Child - green */
.pasco-type-display.type-child {
    background: #e8f8e8;
    color: #28a745;
    border-color: #28a745;
    font-weight: 600;
}

/* Senior - purple */
.pasco-type-display.type-senior {
    background: #f3e8fd;
    color: #6f42c1;
    border-color: #6f42c1;
    font-weight: 600;
}

/* ============================================================
   PRICE DISPLAY
   ============================================================ */

.pasco-price-display {
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    color: #2c2c2c;
    background: #f8f8f8;
    border: 1px solid #ddd;
}

/* ============================================================
   CORRECTION / CONFIRMATION NOTICE
   Shown when age is detected from DOB
   ============================================================ */

.pasco-correction-notice {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.5;
}

.pasco-correction-notice.notice-adult {
    background: #e8f4fd;
    border-left: 4px solid #0073aa;
    color: #004f7c;
}

.pasco-correction-notice.notice-child {
    background: #e8f8e8;
    border-left: 4px solid #28a745;
    color: #155724;
}

.pasco-correction-notice.notice-senior {
    background: #f3e8fd;
    border-left: 4px solid #6f42c1;
    color: #4a1f8a;
}

/* ============================================================
   ADD ANOTHER MEMBER BUTTON
   ============================================================ */

#pasco-add-member {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: #fff;
    color: #0073aa;
    border: 2px dashed #0073aa;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

#pasco-add-member:hover {
    background: #0073aa;
    color: #fff;
}

/* ============================================================
   RUNNING TOTAL BOX
   ============================================================ */

.pasco-total-box {
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.pasco-total-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.pasco-total-inner strong {
    font-size: 22px;
    color: #0073aa;
}

.pasco-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    padding: 4px 0;
}

/* ============================================================
   AUTO RENEW CHECKBOX BOX
   ============================================================ */

.pasco-autorenew-box {
    background: #fffbea;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 13px;
    color: #555;
}

.pasco-autorenew-box label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.pasco-autorenew-box input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   MY ACCOUNT TABS - MEMBER PORTAL
   ============================================================ */

.pasco-portal-section {
    margin: 20px 0;
}

.pasco-portal-section h3 {
    font-size: 18px;
    color: #2c2c2c;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Member cards in portal */
.pasco-member-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pasco-member-card-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c2c2c;
}

.pasco-member-card-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Status badges */
.pasco-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pasco-badge-active {
    background: #d4edda;
    color: #155724;
}

.pasco-badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.pasco-badge-expiring {
    background: #fff3cd;
    color: #856404;
}

.pasco-badge-grace {
    background: #fff3cd;
    color: #856404;
}

/* PASCO ID display */
.pasco-id-display {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    background: #e8f4fd;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* ============================================================
   MEMBERSHIP CARD - SCREEN DISPLAY
   ============================================================ */

.pasco-membership-card {
    width: 340px;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
    position: relative;
    overflow: hidden;
}

.pasco-membership-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.pasco-membership-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.pasco-card-logo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 20px;
}

.pasco-card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.pasco-card-type {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pasco-card-id {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.15);
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: inline-block;
}

.pasco-card-expiry {
    font-size: 12px;
    opacity: 0.75;
}

.pasco-card-expiry span {
    font-weight: 700;
    opacity: 1;
}

/* Download PDF button */
.pasco-download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #fff;
    color: #0073aa;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pasco-download-btn:hover {
    background: #0073aa;
    color: #fff;
}

/* ============================================================
   ADMIN DASHBOARD - MEMBERS TABLE
   ============================================================ */

.pasco-admin-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

/* Counter boxes at top of admin page */
.pasco-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.pasco-counter-box {
    flex: 1;
    min-width: 120px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.pasco-counter-box .count {
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
    display: block;
}

.pasco-counter-box .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pasco-counter-box.expired .count  { color: #dc3545; }
.pasco-counter-box.expiring .count { color: #fd7e14; }
.pasco-counter-box.cancelled .count{ color: #6c757d; }

/* Search box */
.pasco-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.pasco-search-box input {
    padding: 9px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 280px;
}

.pasco-search-box button {
    padding: 9px 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* Admin members table */
.pasco-members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pasco-members-table th {
    background: #f0f0f0;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.pasco-members-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.pasco-members-table tr:hover td {
    background: #f8f9fa;
    cursor: pointer;
}

/* Export CSV button */
.pasco-export-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 15px;
}

.pasco-export-btn:hover {
    background: #218838;
    color: #fff;
}

/* ============================================================
   RESPONSIVE - MOBILE FRIENDLY
   ============================================================ */

@media ( max-width: 600px ) {

    #pasco-membership-section {
        padding: 15px;
    }

    .pasco-pricing-notice {
        flex-direction: column;
        gap: 5px;
    }

    .pasco-member-box {
        padding: 15px;
    }

    .pasco-counters {
        gap: 8px;
    }

    .pasco-counter-box {
        min-width: 80px;
        padding: 10px;
    }

    .pasco-counter-box .count {
        font-size: 20px;
    }

    .pasco-membership-card {
        width: 100%;
        box-sizing: border-box;
    }

    .pasco-members-table {
        font-size: 12px;
    }

    .pasco-members-table th,
    .pasco-members-table td {
        padding: 8px 8px;
    }
}
/* ============================================================
   PRODUCT PAGE — HIDE IMAGE, PRICE AND FIX BUTTON
   ============================================================ */

/* Hide product image on single product page */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product figure.woocommerce-product-gallery__wrapper {
    display: none !important;
}

/* Hide £0 price on single product page only */
.single-product div.summary .price,
.single-product div.summary p.price,
.single-product div.summary span.price {
    display: none !important;
}

/* Hide quantity field on product page */
.single-product form.cart .quantity {
    display: none !important;
}

/* Style Add to Basket button on product page */
.single-product form.cart button.single_add_to_cart_button {
    background: #0073aa !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 30px !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.2s ease !important;
}

.single-product form.cart button.single_add_to_cart_button:hover {
    background: #005177 !important;
}

/* Hide the breadcrumb Uncategorized on product page */
.woocommerce-breadcrumb {
    display: none;
}

/* Hide £0 on shop page only */
.woocommerce.archive ul.products li.product .price,
.woocommerce-page.archive ul.products li.product .price {
    display: none !important;
}

/* ============================================================
   PRODUCT PAGE — FIX LAYOUT WHEN IMAGE IS HIDDEN
   When gallery is hidden the summary needs full width
   ============================================================ */
.single-product div.product {
    display: block !important;
}

.single-product .woocommerce-product-gallery {
    display: none !important;
    width: 0 !important;
    float: none !important;
}

.single-product div.summary {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Fix Add to Basket button full width */
.single-product form.cart {
    width: 100% !important;
}

.single-product form.cart button.single_add_to_cart_button {
    width: 100% !important;
    display: block !important;
}