/* =========================================================================
   signin.css  �  BowlingTracker sign-in / feature showcase page styles
   ========================================================================= */

/* ?? Compact dark hero ?????????????????????????????????????????????????? */

/* Strip page-wrapper padding so the hero bleeds edge to edge */
.bt-page-wrapper:has(> main > .si-hero) {
    padding: 0;
    max-width: 100%;
}

.si-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(4,3,1,0.55) 0%, rgba(8,5,2,0.45) 100%),
        url('/images/lane.png') center center / cover no-repeat;
    padding: 2.25rem 2rem 2rem;
}

.si-hero-lanes {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
}

.si-lane-line {
    flex: 1;
    border-right: 1px solid rgba(255,109,46,.07);
    animation: siLaneGlow 4s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.3s);
}

@keyframes siLaneGlow {
    0%   { border-color: rgba(255,109,46,.03); }
    100% { border-color: rgba(255,109,46,.14); }
}

.si-hero-ball {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24rem;
    color: rgba(255,109,46,.18);
    animation: siHeroSpin 40s linear infinite;
    pointer-events: none;
    line-height: 1;
}

@keyframes siHeroSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

/* Two-column layout: text left, login form right */
.si-hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin-inline: auto;
}

.si-hero-content {
    flex: 1;
    text-align: left;
}

.si-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.si-hero-accent {
    background: linear-gradient(90deg, #ff6d2e 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.si-hero-sub {
    color: rgba(255,255,255,.55);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
    max-width: 520px;
}

/* ?? Sign-in trigger button in hero ???????????????????????????????????????? */
.si-signin-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #d94f10, #ff6d2e);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 22px rgba(255,109,46,.5);
    cursor: pointer;
    letter-spacing: 0.03em;
    margin-top: 1.25rem;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.si-signin-trigger:hover {
    box-shadow: 0 6px 30px rgba(255,109,46,.7);
    transform: translateY(-2px);
}

/* ?? Sign-in modal overlay ?????????????????????????????????????????????????? */
.si-login-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: siLbFadeIn 0.18s ease;
}

.si-login-modal--open {
    display: flex;
}

.si-login-modal-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: #1c1f2b;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,109,46,.25);
    animation: siLbSlideUp 0.22s ease;
}

.si-login-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.si-login-modal-close:hover {
    background: rgba(217,79,16,.8);
    color: #fff;
}

.si-hero-login-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.si-hero-login-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.si-hero-login-link {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}

.si-hero-login-link:hover {
    color: #ff6d2e;
    text-decoration: underline;
}

/* ?? "or" divider ???????????????????????????????????????????????????????????? */
.si-login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.85rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.si-login-divider::before,
.si-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

/* ?? Google sign-in button ?????????????????????????????????????????????????? */
.si-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 1rem;
    background: #fff;
    color: #3c4043;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #dadce0;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.01em;
}

.si-btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    color: #3c4043;
    text-decoration: none;
}

.si-google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ?? Facebook sign-in button ??????????????????????????????????????????????? */
.si-btn-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 1rem;
    background: #1877F2;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.01em;
}

.si-btn-facebook:hover {
    background: #166fe5;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    color: #fff;
    text-decoration: none;
}

.si-facebook-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ?? Microsoft sign-in button ?????????????????????????????????????????????? */
.si-btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 1rem;
    background: #fff;
    color: #3c3c3c;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #8c8c8c;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.01em;
}

.si-btn-microsoft:hover {
    background: #f3f3f3;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    color: #3c3c3c;
    text-decoration: none;
}

.si-microsoft-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ?? Reddit sign-in button ????????????????????????????????????????????????? */
.si-btn-reddit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 1rem;
    background: #FF4500;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.01em;
}

.si-btn-reddit:hover {
    background: #e03d00;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    color: #fff;
    text-decoration: none;
}

.si-reddit-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}







/* ?? Hero feature pills ??????????????????????????????????????????????? */
.si-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.si-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,109,46,.1);
    border: 1px solid rgba(255,109,46,.25);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    color: rgba(255,255,255,.8);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.si-hero-pills span i {
    color: #ff6d2e;
    font-size: 0.75rem;
}

/* ?? Primary CTA button ????????????????????????????????????????????????? */
.si-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d94f10, #ff6d2e);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.7rem 1.75rem;
    border: none;
    border-radius: 0.55rem;
    box-shadow: 0 4px 20px rgba(255,109,46,.45);
    text-decoration: none;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    letter-spacing: 0.02em;
}

.si-btn-cta:hover {
    box-shadow: 0 6px 28px rgba(255,109,46,.65);
    transform: translateY(-2px);
}

/* ?? Feature card grid ?????????????????????????????????????????????????? */
.si-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 2rem 2rem 2.5rem;
    max-width: 1400px;
    margin-inline: auto;
}

/* ?? Individual feature card ???????????????????????????????????????????? */
.si-card {
    background: #fff;
    border: 1px solid #dde1ec;
    border-radius: 1rem;
    padding: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Orange top-edge accent on hover */
.si-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d94f10, #ffb347);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    border-radius: 1rem 1rem 0 0;
    z-index: 3;
}

.si-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 18px rgba(0,0,0,.13), 0 2px 4px rgba(0,0,0,.07);
    border-color: rgba(255,109,46,.28);
}

.si-card:hover::before {
    transform: scaleX(1);
}

/* ?? Screenshot thumbnail ??????????????????????????????????????????????? */
.si-card-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    background: #e8eaf0;
    flex-shrink: 0;
}

.si-card-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    border-radius: 1rem 1rem 0 0;
    transition: opacity 0.18s ease;
}

/* Cursor hint on thumbnail */
.si-card-thumb {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23ff6d2e' stroke-width='2.2'/%3E%3Cline x1='17.5' y1='17.5' x2='25' y2='25' stroke='%23ff6d2e' stroke-width='2.4' stroke-linecap='round'/%3E%3Cline x1='11' y1='7.5' x2='11' y2='14.5' stroke='%23ff6d2e' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='7.5' y1='11' x2='14.5' y2='11' stroke='%23ff6d2e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 11 11, zoom-in;
}

.si-card-thumb:hover > img {
    opacity: 0.82;
}

/* ?? Lightbox overlay ????????????????????????????????????????????????? */
.si-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.78);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
    animation: siLbFadeIn 0.18s ease;
}

.si-lightbox--open {
    display: flex;
}

@keyframes siLbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.si-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: min(900px, 95vw);
    max-height: 90vh;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 2px rgba(255,109,46,.45);
    animation: siLbSlideUp 0.2s ease;
}

@keyframes siLbSlideUp {
    from { transform: translateY(18px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.si-lightbox-inner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(90vh - 3rem); /* leave room for the carousel bar */
    object-fit: contain;
    flex: 1 1 auto;
    min-height: 0;
}

.si-lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
    z-index: 1;
}

.si-lightbox-close:hover {
    background: rgba(217,79,16,.8);
}

/* ?? Carousel controls inside lightbox ????????????????????????????????? */
.si-lightbox-carousel {
    display: none;  /* shown by JS when images.length > 1 */
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0,0,0,.55);
    flex-shrink: 0;
}

.si-lb-prev,
.si-lb-next {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.si-lb-prev:hover,
.si-lb-next:hover {
    background: rgba(217,79,16,.7);
}

.si-lb-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.si-lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.si-lb-dot--active {
    background: #ff6d2e;
    transform: scale(1.25);
}

/* ?? Card body ?????????????????????????????????????????????????????????? */
.si-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255,109,46,.12), rgba(255,179,71,.08));
    border: 1px solid rgba(255,109,46,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ff6d2e;
    margin: 1.1rem 1.25rem 0.4rem;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.si-card:hover .si-card-icon {
    background: linear-gradient(135deg, rgba(255,109,46,.22), rgba(255,179,71,.14));
    box-shadow: 0 0 10px rgba(255,109,46,.3);
}

.si-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1a1d26;
    margin: 0 1.25rem 0.35rem;
}

.si-card-desc {
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin: 0 1.25rem 0.5rem;
}

.si-card-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ff6d2e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0.25rem 1.25rem 0;
    transition: color 0.18s ease;
}

.si-card:hover .si-card-link {
    color: #ff8c4a;
}

/* ?? Responsive ????????????????????????????????????????????????????????? */
@media (max-width: 900px) {
    .si-hero-body {
        flex-direction: column;
        text-align: center;
    }
    .si-hero-content { text-align: center; }
    .si-hero-sub { margin-inline: auto; }
    .si-hero-pills { justify-content: center; }
}

@media (max-width: 576px) {
    .si-hero      { padding: 1.75rem 1rem 1.5rem; }
    .si-features  { padding: 1.25rem 1rem 2rem; }
}

/* ?? Affiliate list ????????????????????????????????????????????????????? */
.si-affiliate-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.si-affiliate-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #e8eaf0;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.si-affiliate-card:hover {
    background: rgba(255,109,46,.12);
    border-color: rgba(255,109,46,.4);
    color: #fff;
    transform: translateX(4px);
}

.si-affiliate-icon {
    font-size: 1.5rem;
    color: #ff6d2e;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.si-affiliate-name {
    font-weight: 700;
    font-size: 1rem;
}

.si-affiliate-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,.55);
    margin-top: 0.1rem;
}

.si-affiliate-arrow {
    margin-left: auto;
    color: rgba(255,255,255,.3);
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.si-affiliate-card:hover .si-affiliate-arrow {
    color: #ff6d2e;
}

/* ?? No affiliates notice ??????????????????????????????????????????????? */
.si-no-affiliates {
    background: rgba(255,109,46,.08);
    border: 1px solid rgba(255,109,46,.25);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: rgba(255,255,255,.75);
    font-size: 0.88rem;
    line-height: 1.6;
}

.si-no-affiliates strong {
    color: #ffb347;
}

/* ?? Contact footer strip ??????????????????????????????????????????????? */
.si-contact-strip {
    background: #0d1017;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.25rem 2rem;
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: 0.82rem;
}

.si-contact-strip a {
    color: #ff6d2e;
    text-decoration: none;
}

.si-contact-strip a:hover {
    text-decoration: underline;
}

/* (si-direct-login styles moved to si-hero-login) */
