/* 
    CSS for linux-vps.html 
*/

.hero {
    position: relative;
    padding: 160px 0 120px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 60vh;
    margin-top: -80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('../assets/server1.jpg') no-repeat center center/cover;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -1px;
    font-weight: 700;
}

.hero-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    font-size: 1rem;
}

/* VPS Selector */

.vps-selector {
    padding: 100px 0;
}

.selector-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 30px 60px var(--shadow);
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    background: var(--card);
    padding: 6px;
    border-radius: 999px;
    width: fit-content;
    margin: 0 auto 20px auto;
    border: 1px solid var(--border);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: var(--card-solid); /* Selected pill highlight color */
    color: var(--text);
    box-shadow: inset 0 1px 0 var(--shadow);
}

.save-badge {
    background: #059669; /* Emerald green background */
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Plan Slider */

.plan-slider-wrapper {
    margin-bottom: 40px;
    text-align: center;
}

.level-indicator {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
}

.plan-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: var(--card);
    border-radius: 10px;
    outline: none;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 6px var(--shadow);
    cursor: pointer;
}

.plan-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 20px var(--shadow);
    transition: 0.1s ease-out;
}

.plan-slider:active::-webkit-slider-thumb {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary);
}

/* For Firefox */
.plan-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 20px var(--shadow);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.slider-marks span {
    transition: 0.2s ease;
}

.slider-marks span.active {
    color: var(--primary);
    font-weight: 700;
}

/* Plan Details Card */
.plan-details-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    align-items: center;
}

.plan-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spec-item i {
    font-size: 1.4rem;
    color: var(--primary);
    background: var(--card);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Mini Specs Sub-Layout Setup */
.mini-specs {
    grid-column: span 2; /* Spans across the full width under the main specs grid */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.mini-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mini-spec-item i {
    font-size: 1rem;
    color: var(--primary);
    opacity: 0.8;
}

.mini-spec-item strong {
    color: var(--text);
    font-weight: 600;
}

/* Pricing */
.plan-pricing {
    text-align: center;
    border-left: 1px solid var(--border);
    padding-left: 40px;
}

.price-box {
    font-size: 1rem;
    margin-bottom: 10px;
    white-space: nowrap;
}

.currency {
    font-size: 1.5em;
    vertical-align: top;
    font-weight: 700;
}

.price {
    font-size: 3.5em;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

.period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.annual-note {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 25px;
    min-height: 20px;
}

.buy-btn {
    width: 100%;
    display: inline-block;
    padding: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 850px) {
    .selector-container {
        padding: 40px 30px;
    }

    .plan-details-card {
        grid-template-columns: 1fr;
    }

    .plan-pricing {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 40px;
    }
}

@media (max-width: 600px) {
    .plan-specs {
        grid-template-columns: 1fr;
    }

    .level-indicator {
        font-size: 1.4rem;
    }

    .mini-specs {
        grid-column: span 1;
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 450px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .selector-container {
        padding: 30px 20px;
    }

    .toggle-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .plan-details-card {
        gap: 20px;
        padding: 30px 20px;
    }

    .plan-slider-wrapper {
        margin-bottom: 30px;
    }

    .plan-specs {
        font-size: 0.5rem;
        gap: 15px;
        grid-template-columns: 1fr 1fr;
    }

    .spec-item i {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .spec-value {
        font-size: 0.9rem;
    }

    .mini-specs {
        grid-column: span 2;
    }

    .mini-spec-item {
        font-size: 0.75rem;
        gap: 8px;
    }

    .plan-pricing {
        padding-top: 20px;
    }

    .price-box {
        font-size: 0.9rem;
    }
}
