/* =========================================================
   BACK TO MY BOAT CSS
   Reworked into a bright blue ocean-themed style
   ========================================================= */

:root {
    --btmb-blue-base: #1498c9;
    --btmb-blue-deep: #0d7fb0;
    --btmb-blue-dark: #075f8e;
    --btmb-blue-shadow: rgba(4, 53, 82, 0.22);
    --btmb-blue-glow: rgba(127, 225, 255, 0.18);

    --btmb-navy-top: #0ea5d8;
    --btmb-navy-bottom: #087fb0;
    --btmb-navy-glow-1: rgba(39, 190, 255, 0.10);
    --btmb-navy-glow-2: rgba(5, 119, 189, 0.08);

    --btmb-text: #f4fbff;
    --btmb-text-soft: rgba(244, 251, 255, 0.90);
    --btmb-text-muted: rgba(214, 239, 248, 0.72);

    --btmb-panel-border: rgba(255, 255, 255, 0.14);
    --btmb-panel-shadow: 0 20px 48px rgba(2, 27, 42, 0.24);

    --btmb-card-bg: rgba(255, 255, 255, 0.05);
    --btmb-card-border: rgba(255, 255, 255, 0.12);

    --btmb-input-bg: #eef7fb;
    --btmb-input-text: #114865;
    --btmb-input-placeholder: #6d8a9a;

    --btmb-button-bg-1: #29ace3;
    --btmb-button-bg-2: #118ec7;
    --btmb-button-text: #ffffff;
    --btmb-button-shadow: 0 14px 30px rgba(17, 142, 199, 0.26);

    --btmb-product-card-bg: rgba(255, 255, 255, 0.07);
    --btmb-product-card-border: rgba(255, 255, 255, 0.14);
    --btmb-product-card-hover-bg: rgba(94, 207, 255, 0.12);
    --btmb-product-card-hover-border: rgba(123, 226, 255, 0.50);

    --btmb-radius-lg: 28px;
    --btmb-radius-md: 24px;
    --btmb-radius-sm: 18px;
}

/* =========================================================
   GLOBAL
   ========================================================= */
#btmbResults,
.btmb-page-wrapper,
.btmb-page-wrapper * {
    box-sizing: border-box;
}

.btmb-page-wrapper {
    width: 100%;
    padding: 24px 12px 48px;
    color: var(--btmb-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.btmb-shell {
    max-width: 1240px;
    margin: 0 auto;
}

/* =========================================================
   PANELS
   ========================================================= */
.btmb-panel,
.btmb-results-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--btmb-radius-lg);
    border: 1px solid var(--btmb-panel-border);
    background:
        radial-gradient(circle at top left, var(--btmb-navy-glow-1), transparent 34%),
        radial-gradient(circle at bottom right, var(--btmb-navy-glow-2), transparent 30%),
        linear-gradient(180deg, var(--btmb-navy-top), var(--btmb-navy-bottom));
    box-shadow: var(--btmb-panel-shadow);
}

.btmb-panel {
    padding: 40px;
}

.btmb-results-panel {
    margin-top: 24px;
    padding: 32px;
}

/* =========================================================
   HEADERS
   ========================================================= */
.btmb-header,
.btmb-results-header {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto 40px;
    text-align: center;
}

.btmb-eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    color: var(--btmb-text-muted);
}

.btmb-header h2,
.btmb-results-header h2,
.btmb-page-wrapper .btmb-header h2,
.btmb-page-wrapper .btmb-results-header h2 {
    font-family: "Playpen Sans", cursive !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    color: #ffffff !important;
    margin: 0 0 16px !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.btmb-intro {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--btmb-text-soft);
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.btmb-products {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

.btmb-product-card {
    appearance: none;
    width: 100%;
    min-height: 320px;
    padding: 22px 18px 16px;
    border-radius: 22px;
    border: 1px solid var(--btmb-product-card-border) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035)) !important;
    cursor: pointer;
    text-align: center;
    outline: none !important;
    box-shadow: none !important;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.btmb-product-card:hover,
.btmb-product-card:focus,
.btmb-product-card.is-active {
    transform: translateY(-4px);
    background: var(--btmb-product-card-hover-bg) !important;
    border-color: var(--btmb-product-card-hover-border) !important;
    box-shadow:
        0 18px 36px rgba(1, 18, 32, 0.28),
        0 0 0 1px rgba(127, 225, 255, 0.18) inset !important;
}

.btmb-product-card img {
    width: 100%;
    max-width: 210px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 18px auto 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.btmb-product-card span {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    min-height: 38px;
    margin-top: auto;
}

/* =========================================================
   SEARCH CARD
   ========================================================= */
.btmb-search-card {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 36px auto 0;
    padding: 28px;
    border-radius: var(--btmb-radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--btmb-card-border);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

#sampleCodeText {
    margin: 0 0 16px;
    text-align: center;
    color: rgba(235, 244, 248, 0.82);
    font-size: 14px;
    font-weight: 700;
}

#invalidCan {
    display: none;
    margin-bottom: 12px;
    text-align: center;
    color: #ffd4d4;
    font-size: 15px;
    font-weight: 700;
}

.btmb-search-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

#can {
    width: 100%;
    height: 64px;
    padding: 0 18px;
    border: 0;
    border-radius: 18px;
    outline: none;
    background: var(--btmb-input-bg);
    color: var(--btmb-input-text);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

#can::placeholder {
    color: var(--btmb-input-placeholder);
}

#canCode,
#btmbReset {
    height: 64px;
    min-width: 188px;
    border: 0 !important;
    border-radius: 999px;
    padding: 0 26px;
    white-space: nowrap;
    font-size: 22px;
    font-weight: 800;
    color: var(--btmb-button-text);
    background: linear-gradient(180deg, var(--btmb-button-bg-1), var(--btmb-button-bg-2)) !important;
    box-shadow: var(--btmb-button-shadow) !important;
    cursor: pointer;
    outline: none !important;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#canCode:hover,
#btmbReset:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

#canCode:focus,
#canCode:active,
#btmbReset:focus,
#btmbReset:active {
    outline: none !important;
    box-shadow: var(--btmb-button-shadow) !important;
}

/* =========================================================
   RESULTS
   ========================================================= */
.btmb-results-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.btmb-result-card {
    padding: 24px;
    border-radius: 22px;
    background: var(--btmb-card-bg);
    border: 1px solid var(--btmb-card-border);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.btmb-result-card-full {
    grid-column: 1 / -1;
}

.btmb-result-card h3 {
    margin: 0 0 18px;
    font-size: 28px;
    color: #ffffff;
}

.btmb-product-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
}

.btmb-can-wrap {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#resultCanImage {
    width: 100%;
    max-width: 230px;
    max-height: 160px;
    object-fit: contain;
}

.btmb-spec-grid {
    display: grid;
    gap: 12px;
}

.btmb-stat {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.btmb-stat-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--btmb-text-muted);
}

.btmb-stat strong {
    font-size: 20px;
    line-height: 1.3;
    color: #ffffff;
}

.btmb-species-copy h3,
.btmb-copy-block h4 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #ffffff;
}

.btmb-species-copy p,
.btmb-copy-block p,
.btmb-copy-block div,
.btmb-stat-row span,
.btmb-stat-row strong {
    font-size: 15px;
    line-height: 1.7;
    color: var(--btmb-text-soft);
}

.btmb-stat-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.btmb-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.btmb-stat-row strong {
    color: #ffffff;
    font-size: 17px;
}

.btmb-image-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.btmb-image-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

.btmb-image-card span {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--btmb-text-muted);
}

.btmb-image-card img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 10px;
}

.btmb-actions {
    margin-top: 20px;
    text-align: center;
}

#catchMethodCopy p {
    margin: 0 0 12px;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1100px) {
    .btmb-panel {
        padding: 32px;
    }

    .btmb-results-panel {
        padding: 28px;
    }

    .btmb-header,
    .btmb-results-header {
        margin-bottom: 34px;
    }

    .btmb-header h2,
    .btmb-results-header h2 {
        font-size: 38px !important;
    }

    .btmb-intro {
        font-size: 17px;
    }

    .btmb-products {
        gap: 20px;
        margin-bottom: 28px;
    }

    .btmb-product-card {
        min-height: 300px;
    }

    .btmb-product-card img {
        max-width: 190px;
        height: 110px;
    }

    .btmb-product-card span {
        font-size: 12px;
    }

    .btmb-search-card {
        max-width: 900px;
        margin-top: 32px;
        padding: 24px;
    }

    #sampleCodeText {
        font-size: 13px;
    }

    #can {
        height: 60px;
        font-size: 16px;
    }

    #canCode,
    #btmbReset {
        height: 60px;
        min-width: 170px;
        font-size: 20px;
    }

    .btmb-results-grid {
        grid-template-columns: 1fr;
    }

    .btmb-product-top {
        grid-template-columns: 220px 1fr;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 820px) {
    .btmb-page-wrapper {
        padding: 16px 8px 34px;
    }

    .btmb-panel,
    .btmb-results-panel {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .btmb-header,
    .btmb-results-header {
        margin-bottom: 28px;
    }

    .btmb-header h2,
    .btmb-results-header h2 {
        font-size: 34px !important;
    }

    .btmb-intro {
        font-size: 16px;
    }

    .btmb-products {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 24px;
    }

    .btmb-product-card {
        min-height: 280px;
        padding: 20px 16px 14px;
    }

    .btmb-product-card img {
        max-width: 180px;
        height: 110px;
        margin: 12px auto 16px;
    }

    .btmb-product-card span {
        font-size: 12px;
    }

    .btmb-search-card {
        max-width: 100%;
        margin-top: 28px;
        padding: 20px;
    }

    #sampleCodeText {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .btmb-search-row {
        flex-direction: column;
        gap: 14px;
    }

    #can {
        height: 58px;
        font-size: 15px;
    }

    #canCode,
    #btmbReset {
        width: 100%;
        min-width: 0;
        height: 58px;
        font-size: 18px;
    }

    .btmb-product-top {
        grid-template-columns: 1fr;
    }

    .btmb-can-wrap {
        min-height: 180px;
    }

    .btmb-image-row {
        grid-template-columns: 1fr;
    }

    .btmb-stat-row {
        flex-direction: column;
    }
}
