/* Custom styles for No Recoil page */

/* Banner paragraph color override */
#banner .banner-txt p {
    color: #fff;
}

/* Before/After Slider Styles */
.before-after-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    cursor: pointer;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.3s ease;
}

/* Disable transitions during tracking for precision */
.before-after-wrapper.tracking .after-image {
    transition: none;
}

.before-after-wrapper.tracking .slider-handle {
    transition: none;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ff7657;
    cursor: ew-resize;
    z-index: 10;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.slider-handle:hover {
    background: #ff7657;
    box-shadow: 0 0 10px rgba(255, 118, 87, 0.6);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #ff7657;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-handle::after {
    content: '◀ ▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 8px;
    font-weight: bold;
    line-height: 1;
}

.slider-labels {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.slider-label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.slider-label.before {
    background: rgba(255, 118, 87, 0.9);
}

.slider-label.after {
    background: rgba(255, 118, 87, 0.9);
}

/* Demo Section Styling */
.demo-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 100px 0 140px; /* extra bottom space for decoration */
    position: relative; /* allow bottom-attached decoration */
    overflow: hidden; /* prevent scrollbars from decoration overflow */
}

.demo-section h3 {
    color: #ff7657;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
}

.demo-section p {
    color: #ccc;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Bottom decoration for demo section */
.demo-bottom-deco {
    position: absolute;
    bottom: -2px; /* tuck in to avoid triggering scrollbars */
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: 70vw;
    height: auto;
    pointer-events: none;
}

/* Pricing section and top connector */
.pricing-section {
    position: relative; /* anchor the top decoration */
    background: linear-gradient(135deg, #151515 0%, #242424 100%);
}

/* Add space below the purchase button on pricing cards */
.pricing-section .price-btn {
    margin-bottom: 15px;
}

/* Override defaults for this page */
.price-btn {
    padding-top: 0px;
}

.price-table {
    padding: 30px 0 30px;
}

.pricing-top-deco {
    position: absolute;
    top: -2px; /* visually connects with previous section's bottom image */
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: 70vw;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

/* Five-card layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2; /* above the top decoration */
}

/* Ensure all inner content (heading + grid) paints above connector */
.pricing-section .container {
    position: relative;
    z-index: 2;
}

/* Showcase link under purchase button */
.showcase-link {
    color: #ff7657;
    font-weight: normal;
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 20px;
    text-decoration: none;
}

.showcase-link:hover {
    text-decoration: underline;
    color: #ff7657; /* keep same orange on hover */
}

/* Ensure showcase link is plain text, not a button, inside price-table */
.price-table .showcase-link {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #ff7657 !important;
    font-family: inherit;
    font-size: inherit;
    display: inline-block;
}

.price-table .showcase-link:hover {
    background: transparent !important;
    color: #ff7657 !important;
}

@media (max-width: 1400px) {
    .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* No Recoil specific icon styling - keeping original colors */
.fa-crosshairs {
    color: #ff7657;
}

.fa-cog {
    color: #ff7657;
}

.fa-shield {
    color: #ff7657;
}

.fa-rocket {
    color: #ff7657;
}

/* No custom button styling - using original site button styles */

/* No Recoil specific animations */
@keyframes recoil-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.over-item:hover {
    animation: recoil-pulse 0.6s ease-in-out;
}

/* Custom progress bar for No Recoil stats */
.progress-bar {
    background: linear-gradient(45deg, #ff7657, #ff7657);
}

/* Responsive adjustments for No Recoil page */
@media (max-width: 768px) {
    .banner-txt h3 {
        font-size: 2rem;
    }
    
    .banner-txt p {
        font-size: 1rem;
    }
    
    .before-after-wrapper {
        height: 300px;
    }
    
    .demo-section h3 {
        font-size: 2rem;
    }
    
    .demo-section p {
        font-size: 1rem;
    }
}

/* Demo layout overrides: text left, slider right */
.demo-text h3,
.demo-text p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.demo-section .before-after-container {
    margin: 10px 0 30px;
}

@media (max-width: 768px) {
    .demo-section .before-after-container { margin: 0; }
}

/* Install Steps Section */
.install-steps {
    background: linear-gradient(135deg, #151515 0%, #242424 100%);
    padding: 80px 0;
    margin: 60px 0 0 0;
}

.install-steps h3 {
    color: #ff7657;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.install-steps .steps-subtitle {
    color: #787878;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.step-item {
    flex: 1 1 0;
    text-align: center;
    position: relative;
    padding: 10px 15px;
}

/* Connector line between steps */
/* Replace per-step connector with a single row connector behind icons */
.steps-row::before {
    content: "";
    position: absolute;
    top: 42px; /* aligns to icon center based on padding + radius */
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,118,87,0.15), rgba(255,118,87,0.7), rgba(255,118,87,0.15));
    z-index: 0; /* keep behind icons */
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #ff7657;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    background: rgba(255, 118, 87, 0.08);
    box-shadow: 0 6px 18px rgba(255, 118, 87, 0.15);
    position: relative;
    z-index: 2; /* ensure icons sit above the connector line */
}

/* Mask to prevent the connector line from showing through the icon */
.step-icon::after {
    content: "";
    position: absolute;
    inset: 0; /* cover entire inner circle to create a clean gap */
    background: linear-gradient(135deg, #151515 0%, #242424 100%); /* match section bg */
    border-radius: 50%;
    z-index: 1;
}

.step-icon i {
    color: #ff7657;
    font-size: 28px; /* fill the circle more */
    position: relative;
    z-index: 2; /* above the mask */
}

/* Slight vertical alignment tweak for gamepad icon */
.step-icon .fa-gamepad { transform: translateY(-1px); }

.step-item h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-item p {
    color: #787878;
    margin: 0 auto;
    max-width: 220px;
    font-size: 0.95rem;
}

/* Hover pulse to match feature tiles */
.step-item:hover .step-icon {
    animation: recoil-pulse 0.6s ease-in-out;
}

/* Responsive layout */
@media (max-width: 992px) {
    .steps-row {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .steps-row {
        flex-direction: column;
        gap: 30px;
    }
    .steps-row::before { display: none; }
}

/* GUI Showcase Section */
.gui-showcase {
    background: linear-gradient(135deg, #151515 0%, #242424 100%);
    padding: 70px 0;
}

.gui-img img.wide-rect {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
}

.gui-content { margin-top: 10px; }

.gui-title {
    color: #ff7657;
    font-weight: 700;
    margin-bottom: 10px;
}

.gui-desc {
    color: #d5d5d5;
    margin-bottom: 10px;
}

.gui-subtext {
    color: #9a9a9a;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .gui-content { margin-top: 20px; }
}

/* Banner video background overrides */
#banner.video-bg {
    position: relative;
    overflow: hidden;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.55);
}

/* Ensure banner text sits above video */
#banner .zindex { position: relative; z-index: 2; }

/* Keep demo text aligned left as requested earlier */
.demo-text h3,
.demo-text p { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }

/* Demo text size tweaks to match GUI visuals */
.demo-section .gui-title { font-size: 1.8rem; }
.demo-section .gui-desc  { font-size: 1rem; margin-bottom: 16px; }

@media (max-width: 768px) {
  .demo-section .gui-title { font-size: 1.5rem; }
  .demo-section .gui-desc  { font-size: 0.95rem; }
}

/* Ensure demo texts use GUI color/alignment despite generic demo-section p/h3 rules */
.demo-section .gui-title {
    color: #ff7657;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.demo-section .gui-desc {
    color: #d5d5d5;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.demo-section .gui-subtext {
    color: #9a9a9a;
    font-size: 0.95rem;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
