/* Sweet Bonanza Guide - Shared Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fceabb;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #14B8A6, #F97316);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0D9488, #EA580C);
}

/* Glassmorphism base */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #14B8A6 0%, #F97316 50%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #F97316 0%, #14B8A6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer effect for buttons */
.shimmer-btn {
    background-size: 200% 100%;
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
}

/* 3D candy shadow */
.candy-shadow {
    box-shadow:
        0 4px 6px rgba(20, 184, 166, 0.2),
        0 10px 20px rgba(249, 115, 22, 0.15),
        0 20px 40px rgba(56, 189, 248, 0.1);
}

.candy-shadow-lg {
    box-shadow:
        0 8px 12px rgba(20, 184, 166, 0.25),
        0 20px 40px rgba(249, 115, 22, 0.2),
        0 40px 80px rgba(56, 189, 248, 0.15);
}

/* Floating decorations */
.float-decoration {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Stats counter animation */
.stat-value {
    display: inline-block;
}

/* Custom gradient border */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #14B8A6, #F97316, #38BDF8);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Icon styles */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Initial state for animated elements */
.animate-on-scroll {
    opacity: 0;
}

/* Background gradient */
.bg-main-gradient {
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 50%, #fceabb 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.4);
}

/* Feature card specific */
.feature-card {
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: scale(1.05);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Link underline animation */
.link-underline {
    position: relative;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #14B8A6, #F97316);
    transition: width 0.3s ease;
}
.link-underline:hover::after {
    width: 100%;
}

/* Table of contents styles */
.toc-item {
    padding: 0.5rem 1rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}
.toc-item:hover {
    border-left-color: #14B8A6;
    background: rgba(20, 184, 166, 0.1);
}
.toc-item.active {
    border-left-color: #14B8A6;
    background: rgba(20, 184, 166, 0.15);
    font-weight: 600;
}

/* Breadcrumb styles */
.breadcrumb-separator {
    color: #9CA3AF;
}

/* Info box styles */
.info-box {
    border-left: 4px solid #14B8A6;
    background: rgba(20, 184, 166, 0.1);
}
.warning-box {
    border-left: 4px solid #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}
.danger-box {
    border-left: 4px solid #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .float-decoration {
        display: none;
    }
}

/* Print styles */
@media print {
    .noise-overlay,
    .float-decoration,
    nav,
    .animate-pulse-glow {
        display: none !important;
    }
    .glass,
    .glass-strong {
        background: white !important;
        backdrop-filter: none !important;
    }
}
