/*
Theme Name: Casino Theme
Description: Custom theme for casino/betting platform with modern design and full WordPress integration
Version: 1.0
Author: Your Name
Text Domain: casino
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Import existing styles */
@import url('assets/css/style.min.css');


/* Additional WordPress styles */
.wp-block-group {
    margin-bottom: 2rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* WordPress content styles */
.entry-content {
    line-height: 1.6;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Widget styles */
.widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #2b2d42;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd166;
}

/* Comment styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 700;
    color: #2b2d42;
}

.comment-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Responsive WordPress elements */
@media (max-width: 768px) {
    .alignwide,
    .alignfull {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* Accessibility styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 999999;
    color: #fff;
    background: #000;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Keyboard focus */
*:focus {
    outline: 2px solid #ff9e16;
    outline-offset: 2px;
}

/* Button contrast improvements */
.auth-btn:focus,
.banner-button:focus,
.scroll-to-top:focus {
    outline: 3px solid #ff9e16;
    outline-offset: 2px;
}

/* prefers-reduced-motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Readability improvements */
@media (prefers-contrast: high) {
    .header__logo,
    .nav__link,
    .auth-btn {
        border: 1px solid currentColor;
    }
}

/* ===== CRITICAL Z-INDEX OVERRIDES ===== */
/* These styles MUST be at the end to override everything */

/* Floating buttons - ABSOLUTE MAXIMUM PRIORITY */
html body .floating-buttons,
body .floating-buttons,
.floating-buttons {
    z-index: 999999 !important;


/* Floating buttons scroll-to-top button */
html body .floating-buttons .scroll-to-top,
body .floating-buttons .scroll-to-top,
.floating-buttons .scroll-to-top {
    z-index: 999999 !important;
    position: relative !important;
}

/* Floating banner - HIGH PRIORITY */
html body .floating-banner,
body .floating-banner,
.floating-banner {
    z-index: 999998 !important;
    position: fixed !important;
}

/* Force all blocks to stay below floating elements */
.casino-button-wrapper,
.casino-table-wrapper,
.casino-conversion-wrapper,
.casino-pros-cons-wrapper,
.wp-block-casino-button-block,
.wp-block-casino-table-block,
.wp-block-casino-conversion-block,
.wp-block-casino-pros-cons-block,
.wp-block-group,
.wp-block-paragraph,
.wp-block-heading {
    z-index: 1 !important;
    position: relative !important;
}

/* ===== FINAL OVERRIDE - MAXIMUM SPECIFICITY ===== */
/* This will override EVERYTHING including minified CSS */

html body div.floating-buttons,
body div.floating-buttons,
div.floating-buttons {
    z-index: 999999 !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 25px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

html body div.floating-buttons button.scroll-to-top,
body div.floating-buttons button.scroll-to-top,
div.floating-buttons button.scroll-to-top {
    z-index: 999999 !important;
    position: relative !important;
    pointer-events: auto !important;
}
