/*
Theme Name: CasinoPan
Theme URI: https://casinopan.com
Author: CasinoPan Team
Author URI: https://casinopan.com
Description: A modern dark-themed online casino review WordPress theme with purple/pink aesthetic. Features expert casino reviews, bonus comparisons, game guides, and player tools.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-pan
Tags: dark, casino, reviews, one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Base Resets & Dark Theme Defaults
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #0f0a1a;
    color: #b0b0c8;
    font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #f0f0f5;
    font-family: 'Outfit', 'Work Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: #c084fc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e91e8c;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

::selection {
    background: rgba(233, 30, 140, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0a1a;
}
::-webkit-scrollbar-thumb {
    background: #2a1f50;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a2f70;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* WordPress alignment classes */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { display: block; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); }

/* WordPress caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}
.wp-caption-text {
    font-size: 0.82rem;
    color: #7878a0;
    padding-top: 0.5rem;
}

/* WordPress gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Pagination base */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #150d30;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: #b0b0c8;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: rgba(233,30,140,0.3);
    color: #e91e8c;
    background: rgba(233,30,140,0.06);
}
.pagination .current {
    background: linear-gradient(135deg, #e91e8c, #7c3aed);
    color: #fff;
    border-color: transparent;
}

/* ==========================================================================
   Global Dark Theme Enforcement
   Override any inline light styles from article content, WP blocks, etc.
   ========================================================================== */

/* Force all WP block preset backgrounds dark */
.has-white-background-color { background-color: #150d30 !important; }
.has-pale-pink-background-color { background-color: rgba(233,30,140,0.08) !important; }
.has-cyan-bluish-gray-background-color { background-color: #1a1240 !important; }
.has-white-color { color: #f0f0f5 !important; }

/* Override WP block button defaults */
.wp-block-button__link { background-color: #7c3aed !important; }
.wp-block-file__button { background: #7c3aed !important; }

/* Force article inline styles dark */
[style*="background-color: #f0f8ff"],
[style*="background-color:#f0f8ff"],
[style*="background-color: aliceblue"],
[style*="background-color: #fff"],
[style*="background-color:#fff"],
[style*="background-color: white"],
[style*="background-color: #fafafa"],
[style*="background-color: #f5f5f5"],
[style*="background-color: #eee"],
[style*="background-color: #f8f9fa"],
[style*="background-color: #e9ecef"],
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background: white"],
[style*="background: #f0f8ff"],
[style*="background:#f0f8ff"],
[style*="background-color: #f8f9fa"],
[style*="background-color:#f8f9fa"],
[style*="background: #f8f9fa"],
[style*="background:#f8f9fa"],
[style*="background-color: #f4f4f4"],
[style*="background-color:#f4f4f4"],
[style*="background-color: #f0f0f0"],
[style*="background-color:#f0f0f0"],
[style*="background-color: #e8e8e8"],
[style*="background-color:#e8e8e8"],
[style*="background: #f8f9fa"],
[style*="background: #f4f4f4"] {
    background-color: rgba(233,30,140,0.04) !important;
    background: rgba(233,30,140,0.04) !important;
    color: #c0c0d8 !important;
}

/* Override light border colors from inline styles */
[style*="border-left: 5px solid #007bff"] {
    border-left-color: #e91e8c !important;
}
[style*="border: 1px solid #ddd"],
[style*="border: 1px solid #ccc"],
[style*="border: 1px solid #eee"] {
    border-color: rgba(255,255,255,0.08) !important;
}

/* Ensure headings inside styled divs stay light */
div[style] h1, div[style] h2, div[style] h3, div[style] h4,
div[style] h5, div[style] h6 {
    color: #f0f0f5 !important;
}

/* Override any color: #333 or similar dark text from inline styles */
[style*="color: #333"],
[style*="color:#333"],
[style*="color: #000"],
[style*="color:#000"],
[style*="color: black"] {
    color: #b8b8d0 !important;
}
