/* DoggoBot Custom Styles */

/* Base font sizing */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Custom focus styles for accessibility */
:focus-visible {
    outline: 2px solid hsl(var(--p));
    outline-offset: 2px;
}

/* ===== Glassmorphism Navbar ===== */
.navbar-glass {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(30, 30, 36, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .navbar-glass {
    background-color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== Hero Animated Background ===== */
.hero-gradient-bg {
    position: relative;
    overflow: hidden;
}

.hero-gradient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(255, 193, 7, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 60%, rgba(255, 143, 0, 0.08) 0%, transparent 70%);
    animation: heroShift 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroShift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 10px) scale(1.05); }
}

.hero-gradient-bg > * {
    position: relative;
    z-index: 1;
}

/* ===== Floating Particles ===== */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.15);
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .hero-gradient-bg::before,
    .shimmer::after,
    .badge-pulse,
    .stagger-item,
    .page-enter {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Enhanced Cards ===== */
.card-premium {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 143, 0, 0.03));
    border: 1px solid rgba(255, 193, 7, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.35);
}

.card-feature {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.card-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 193, 7, 0.12);
}

/* ===== Glow Button ===== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #FFC107, #FF8F00, #FFC107);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.btn-glow:hover::after {
    opacity: 0.6;
}

/* ===== Stat Counter ===== */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFC107, #FF8F00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ===== Section Divider ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    margin: 3rem 0;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.4);
}

/* ===== Pulse animation for badges ===== */
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0); }
}

/* ===== Improved Form Elements ===== */
.form-card {
    transition: box-shadow 0.2s ease;
}

.form-card:focus-within {
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* ===== Stagger animation for lists ===== */
:root {
    --stagger-delay: 80ms;
}

.stagger-item {
    opacity: 0;
    transform: translateY(12px);
    animation: staggerIn 0.4s ease forwards;
}

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Breadcrumb styling ===== */
.breadcrumbs-custom a {
    transition: color 0.2s ease;
}

.breadcrumbs-custom a:hover {
    color: hsl(var(--p));
}

/* ===== Premium shimmer effect ===== */
.shimmer {
    position: relative;
    overflow: hidden;
    contain: strict;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    animation: shimmerSlide 3s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

@keyframes shimmerSlide {
    0%   { transform: translateX(-50%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

/* ===== Improved tooltip ===== */
.tooltip-glow::before {
    background-color: hsl(var(--p));
    color: hsl(var(--pc));
}

/* ===== Category header gradient ===== */
.category-header {
    background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--a)));
    position: relative;
    overflow: hidden;
}

.category-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08));
    pointer-events: none;
}

/* ===== Page enter animation ===== */
.page-enter {
    animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ===== Feature icon container ===== */
.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.75rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 143, 0, 0.08));
    border: 1px solid rgba(255, 193, 7, 0.12);
    flex-shrink: 0;
}

/* ===== Pricing toggle ===== */
.pricing-active {
    transform: scale(1.03);
    z-index: 1;
}

/* ===== Server status dot ===== */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-online {
    background-color: hsl(var(--su, 142 71% 45%));
    box-shadow: 0 0 6px hsla(var(--su, 142 71% 45%) / 0.5);
}

.status-dot-offline {
    background-color: hsl(var(--bc) / 0.3);
}

/* ===== Footer Enhancement ===== */
.footer-gradient {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
}

[data-theme="light"] .footer-gradient {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.03));
}
