/* Custom Styles for AdSense CTR Calculator */

@layer utilities {
    .glass-card {
        background: rgba(30, 33, 48, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0D17; 
}

::-webkit-scrollbar-thumb {
    background: #1F2540; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0EA5E9; 
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* FAQ Accordion Transition */
.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.faq-item.active .faq-content {
    grid-template-rows: 1fr;
    padding-bottom: 1.25rem;
    opacity: 1;
}

.faq-content > div {
    overflow: hidden;
}

.faq-item.active .ph-caret-down {
    transform: rotate(180deg);
    color: #0EA5E9;
}

.faq-item.active {
    border-color: rgba(14, 165, 233, 0.3);
    background-color: rgba(20, 24, 41, 0.8);
}

/* Header Sticky State */
#header.scrolled {
    background: rgba(11, 13, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Number Input Arrows Remove */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* ── Range Slider Base ── */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0EA5E9;
    border: 3px solid #0B0D17;
    box-shadow: 0 0 8px rgba(14,165,233,0.6);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 14px rgba(14,165,233,0.9);
}
.calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0EA5E9;
    border: 3px solid #0B0D17;
    box-shadow: 0 0 8px rgba(14,165,233,0.6);
    cursor: pointer;
}

/* CPC slider uses accent colour */
.cpc-slider::-webkit-slider-thumb {
    background: #6366F1;
    box-shadow: 0 0 8px rgba(99,102,241,0.6);
}
.cpc-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 14px rgba(99,102,241,0.9);
}
.cpc-slider::-moz-range-thumb {
    background: #6366F1;
    box-shadow: 0 0 8px rgba(99,102,241,0.6);
}

/* Country select arrow */
select#country {
    background-image: none;
}

