/* ========================================
   Binnary Casino - Custom Styles
   Binnary Pulse Core Theme
   ======================================== */

/* ----------------------------------------
   Base & Reset Overrides
   ---------------------------------------- */
html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

/* ----------------------------------------
   Scrollbar Styling
   ---------------------------------------- */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

/* ----------------------------------------
   Table Responsive Wrapper
   ---------------------------------------- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 100%;
}

/* ----------------------------------------
   Parallax Animation Classes
   ---------------------------------------- */
.parallax-slow {
    animation: parallaxFloat 12s ease-in-out infinite;
}

.parallax-medium {
    animation: parallaxFloat 8s ease-in-out infinite reverse;
}

.parallax-fast {
    animation: parallaxPulse 6s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-1.25rem) rotate(50deg);
    }
}

@keyframes parallaxPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* ----------------------------------------
   Marquee Animation
   ---------------------------------------- */
.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* Duplicate content for seamless loop */
.marquee-content::after {
    content: '';
    display: flex;
}

/* ----------------------------------------
   FAQ Accordion
   ---------------------------------------- */
.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle i.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ----------------------------------------
   Glow Effects
   ---------------------------------------- */
.glow-accent {
    box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.3);
}

.glow-accent-hover:hover {
    box-shadow: 0 0 1.875rem rgba(0, 212, 255, 0.5);
}

/* ----------------------------------------
   Prose Styling for Markdown Content
   ---------------------------------------- */
.prose {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.125rem solid #1e293b;
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    width: 3.75rem;
    height: 0.125rem;
    background: linear-gradient(to right, #00d4ff, #7c3aed);
}

.prose h3 {
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    color: #00d4ff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25rem;
    color: #cbd5e1;
}

.prose p:first-of-type {
    font-size: 1.0625rem;
    color: #e2e8f0;
}

/* Links */
.prose a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 0.0625rem solid transparent;
    transition: border-color 0.2s ease;
}

.prose a:hover {
    border-bottom-color: #00d4ff;
}

/* Lists */
.prose ul,
.prose ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.prose ul {
    list-style: none;
}

.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.375rem;
    height: 0.375rem;
    background: #00d4ff;
    border-radius: 50%;
}

.prose ol {
    list-style: none;
    counter-reset: prose-counter;
}

.prose ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
    counter-increment: prose-counter;
}

.prose ol li::before {
    content: counter(prose-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #00d4ff20, #7c3aed20);
    border: 0.0625rem solid #00d4ff40;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00d4ff;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.prose thead {
    background: #0a0e17;
}

.prose th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #00d4ff;
    border-bottom: 0.125rem solid #1e293b;
}

.prose td {
    padding: 0.875rem 1rem;
    border-bottom: 0.0625rem solid #1e293b;
    color: #cbd5e1;
}

.prose tbody tr:hover {
    background: #111827;
}

.prose tbody tr:last-child td {
    border-bottom: none;
}

/* Table Wrapper for Responsive */
.prose .table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 0.0625rem solid #1e293b;
    border-radius: 0.75rem;
    background: #111827;
}

.prose .table-responsive table {
    margin: 0;
}

/* Blockquotes */
.prose blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #111827, #0a0e17);
    border-left: 0.25rem solid #00d4ff;
    border-radius: 0 0.5rem 0.5rem 0;
    position: relative;
}

.prose blockquote::before {
    content: '"';
    position: absolute;
    top: -0.625rem;
    left: 0.75rem;
    font-size: 3rem;
    color: #00d4ff20;
    font-family: Georgia, serif;
}

.prose blockquote p {
    margin: 0;
    color: #e2e8f0;
    font-style: italic;
}

/* Code */
.prose code {
    background: #1e293b;
    color: #00d4ff;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.prose pre {
    background: #0a0e17;
    border: 0.0625rem solid #1e293b;
    border-radius: 0.5rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 0.0625rem solid #1e293b;
}

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(to right, transparent, #1e293b, #00d4ff, #1e293b, transparent);
    margin: 2.5rem 0;
}

/* Strong & Emphasis */
.prose strong {
    color: #ffffff;
    font-weight: 600;
}

.prose em {
    color: #94a3b8;
    font-style: italic;
}

/* ----------------------------------------
   Card Hover Effects
   ---------------------------------------- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------
   Button Pulse Animation
   ---------------------------------------- */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-pulse:hover::before {
    width: 18.75rem;
    height: 18.75rem;
}

/* ----------------------------------------
   Gradient Text
   ---------------------------------------- */
.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----------------------------------------
   Loading Skeleton
   ---------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ----------------------------------------
   Responsive Typography Scale
   ---------------------------------------- */
@media (max-width: 768px) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose h4 {
        font-size: 1.0625rem;
    }
    
    .prose th,
    .prose td {
        padding: 0.625rem 0.75rem;
    }
}

/* ----------------------------------------
   Mobile Navigation Enhancements
   ---------------------------------------- */
@media (max-width: 1023px) {
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #060a10;
        border-top: 0.0625rem solid #1e293b;
        box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.5);
    }
}

/* ----------------------------------------
   Focus States for Accessibility
   ---------------------------------------- */
a:focus-visible,
button:focus-visible {
    outline: 0.125rem solid #00d4ff;
    outline-offset: 0.125rem;
}

/* ----------------------------------------
   Selection Styling
   ---------------------------------------- */
::selection {
    background: #00d4ff;
    color: #0a0e17;
}

::-moz-selection {
    background: #00d4ff;
    color: #0a0e17;
}

/* ----------------------------------------
   Geometric Decorations
   ---------------------------------------- */
.geo-corner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3.125rem;
    height: 3.125rem;
    border-top: 0.125rem solid #00d4ff30;
    border-right: 0.125rem solid #00d4ff30;
}

.geo-corner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.125rem;
    height: 3.125rem;
    border-bottom: 0.125rem solid #7c3aed30;
    border-left: 0.125rem solid #7c3aed30;
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .prose {
        color: black;
    }
    
    .prose h2,
    .prose h3,
    .prose h4 {
        color: black;
    }
    
    .prose a {
        color: black;
        text-decoration: underline;
    }
}
