/* =====================================================
   1gb.icu - Premium Custom Styles
   Deep colors, beautiful animations, no transparency on solids
   ===================================================== */

/* Base Reset */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01", "cv11"; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0e1f; }
::-webkit-scrollbar-thumb { background: #2d365f; border-radius: 5px; border: 2px solid #0a0e1f; }
::-webkit-scrollbar-thumb:hover { background: #3d4670; }

/* Selection */
::selection { background: rgba(251, 191, 36, 0.3); color: #f8fafc; }

/* Premium gradient background for hero sections */
.hero-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(251, 191, 36, 0.12), transparent),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(99, 102, 241, 0.10), transparent),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(16, 185, 129, 0.08), transparent),
        #0a0e1f;
}

.hero-grid-bg {
    background-image:
        linear-gradient(rgba(45, 54, 95, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 54, 95, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

/* Glow effect for premium cards */
.glow-card {
    position: relative;
    isolation: isolate;
}
.glow-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(99, 102, 241, 0.2), transparent);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glow-card:hover::before { opacity: 1; }

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}
.gradient-text-cool {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #818cf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

/* Shimmer effect for loading states */
.shimmer {
    background: linear-gradient(90deg, #131836 0%, #1a2046 50%, #131836 100%);
    background-size: 1000px 100%;
    animation: shimmer 2.5s linear infinite;
}

/* Calculator card hover */
.calc-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.calc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(251, 191, 36, 0.2);
}

/* Button with shine */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}
.btn-shine:hover::after { left: 100%; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Premium input styling */
.premium-input {
    background: #0f1428;
    border: 1px solid #2d365f;
    color: #f1f5f9;
    transition: all 0.2s ease;
}
.premium-input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
    background: #131836;
}
.premium-input::placeholder { color: #475569; }

/* Premium select */
.premium-select {
    background: #0f1428;
    border: 1px solid #2d365f;
    color: #f1f5f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    appearance: none;
}
.premium-select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

/* Result card with glow */
.result-card {
    background: linear-gradient(135deg, #131836 0%, #0f1428 100%);
    border: 1px solid #2d365f;
    position: relative;
    overflow: hidden;
}
.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%);
    pointer-events: none;
}

/* Number animation */
.number-display {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Article prose styling */
.prose-premium { color: #cbd5e1; line-height: 1.8; font-size: 1.0625rem; }
.prose-premium h2 { color: #f1f5f9; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.875rem; margin-top: 3rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.prose-premium h3 { color: #f1f5f9; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1.375rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-premium p { margin-bottom: 1.25rem; }
.prose-premium ul { margin: 1rem 0 1.5rem; padding-left: 0; list-style: none; }
.prose-premium ul li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
.prose-premium ul li::before { content: ''; position: absolute; left: 0; top: 0.625rem; width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.prose-premium ol { margin: 1rem 0 1.5rem; padding-left: 1.5rem; }
.prose-premium ol li { margin-bottom: 0.5rem; padding-left: 0.5rem; }
.prose-premium strong { color: #fbbf24; font-weight: 600; }
.prose-premium a { color: #fbbf24; text-decoration: underline; text-decoration-color: rgba(251, 191, 36, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.prose-premium a:hover { text-decoration-color: #fbbf24; }
.prose-premium blockquote { border-left: 3px solid #fbbf24; padding: 0.5rem 0 0.5rem 1.5rem; margin: 1.5rem 0; font-style: italic; color: #94a3b8; background: rgba(251, 191, 36, 0.03); border-radius: 0 8px 8px 0; }
.prose-premium code { background: #0f1428; color: #fbbf24; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.875em; font-family: 'JetBrains Mono', monospace; border: 1px solid #2d365f; }
.prose-premium table { width: 100%; margin: 1.5rem 0; border-collapse: separate; border-spacing: 0; border: 1px solid #2d365f; border-radius: 12px; overflow: hidden; }
.prose-premium th { background: #131836; color: #f1f5f9; font-weight: 600; text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid #2d365f; }
.prose-premium td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(45, 54, 95, 0.5); }
.prose-premium tr:last-child td { border-bottom: none; }
.prose-premium tr:hover td { background: rgba(251, 191, 36, 0.03); }

/* FAQ accordion */
.faq-item { border: 1px solid #2d365f; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; background: #0f1428; }
.faq-item:hover { border-color: rgba(251, 191, 36, 0.3); }
.faq-item.open { border-color: rgba(251, 191, 36, 0.5); background: #131836; }
.faq-question { cursor: pointer; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; color: #f1f5f9; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; color: #cbd5e1; line-height: 1.7; }
.faq-toggle-icon { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-toggle-icon { transform: rotate(180deg); }

/* Stat counter */
.stat-card {
    position: relative;
    background: linear-gradient(135deg, #131836 0%, #0f1428 100%);
    border: 1px solid #2d365f;
    border-radius: 16px;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}
.stat-card:hover {
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Animated underline */
.animated-underline {
    position: relative;
}
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.3s ease;
}
.animated-underline:hover::after { width: 100%; }

/* Loader for calculator */
.calc-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #131836;
    border: 1px solid #fbbf24;
    color: #f1f5f9;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(251, 191, 36, 0.1);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #2d365f;
    border-radius: 3px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Print styles */
@media print {
    header, footer, #cookieConsent, #backToTop, .no-print { display: none !important; }
    body { background: white; color: black; }
}
