/*
Theme Name: Kadence Child - CrimePredictor
Template: kadence
Description: Custom child theme for CrimePredictor.com with Polymarket-inspired dark design
Author: CrimePredictor Team
Version: 1.0.0
*/

/* ========================================
   POLYMARKET DARK THEME
   ======================================== */

:root {
    /* Background Colors */
    --bg-primary: #0F1419;
    --bg-secondary: #141920;
    --bg-card: #1A1F2E;
    --bg-hover: #252B3B;

    /* Accent Colors */
    --accent-blue: #00D4FF;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #8F9BB3;
    --text-muted: #64748B;

    /* Semantic Colors */
    --success-green: #10B981;
    --error-red: #EF4444;
    --warning-yellow: #F59E0B;

    /* Border & Divider */
    --border-color: #2D3748;
    --border-light: #1F2937;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* ========================================
   GLOBAL DARK THEME
   ======================================== */

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
}

/* ========================================
   HEADER STYLING (Polymarket-style)
   ======================================== */

.site-header-wrap,
#masthead {
    background-color: rgba(15, 20, 25, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light) !important;
}

.site-header-wrap.transparent-header {
    background-color: rgba(15, 20, 25, 0.6) !important;
}

.site-branding a {
    color: var(--text-primary) !important;
}

/* Navigation */
.header-navigation .menu a,
.primary-menu-container .menu a {
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
    font-weight: 500;
}

.header-navigation .menu a:hover,
.primary-menu-container .menu a:hover {
    color: var(--text-primary) !important;
}

.header-navigation .menu .current-menu-item a,
.primary-menu-container .menu .current-menu-item a {
    color: var(--accent-blue) !important;
}

/* Mobile Menu */
.mobile-navigation {
    background-color: var(--bg-secondary) !important;
}

.drawer-inner {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   CONTENT AREAS
   ======================================== */

.content-bg,
.entry-content,
article.entry {
    background-color: var(--bg-card) !important;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.entry-content {
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-primary) !important;
}

/* ========================================
   CARDS & BLOCKS
   ======================================== */

.wp-block-group,
.wp-block-cover,
.wp-block-columns {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* ========================================
   BUTTONS - POLYMARKET STYLE
   ======================================== */

.wp-block-button__link,
.wp-element-button,
.button,
button:not(.components-button),
input[type="submit"],
input[type="button"],
.kb-button,
a.button {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)) !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.kb-button:hover,
a.button:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px);
    color: var(--text-primary) !important;
}

/* Secondary Buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid var(--accent-blue) !important;
    color: var(--accent-blue) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: rgba(0, 212, 255, 0.1) !important;
}

/* ========================================
   LINKS
   ======================================== */

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-cyan);
}

.entry-content a {
    text-decoration: underline;
    text-decoration-color: rgba(0, 212, 255, 0.3);
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
}

label {
    color: var(--text-secondary);
}

/* ========================================
   SIDEBAR & WIDGETS
   ======================================== */

.sidebar,
.widget-area,
aside {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
}

.widget {
    background-color: transparent !important;
    color: var(--text-secondary);
    border: none !important;
}

.widget-title {
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.widget ul li {
    border-color: var(--border-light) !important;
}

.widget a {
    color: var(--text-secondary);
}

.widget a:hover {
    color: var(--accent-blue);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer,
#colophon {
    background-color: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.footer-widget-area {
    background-color: transparent !important;
}

.site-footer a {
    color: var(--text-secondary);
}

.site-footer a:hover {
    color: var(--text-primary);
}

.site-footer .widget-title {
    color: var(--text-primary) !important;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* ========================================
   TABLES
   ======================================== */

table {
    border-collapse: collapse;
    width: 100%;
    background-color: var(--bg-card) !important;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
}

td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

tr:hover {
    background-color: rgba(0, 212, 255, 0.05) !important;
}

/* ========================================
   COMMENTS
   ======================================== */

.comments-area {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
}

.comment-body {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
}

.comment-author {
    color: var(--text-primary) !important;
}

.comment-content {
    color: var(--text-secondary);
}

/* ========================================
   PULSEPREDICT PLUGIN INTEGRATION
   ======================================== */

.pulsepredict-market,
.market-card,
.prediction-market {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pulsepredict-market:hover,
.market-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
    border-color: var(--accent-blue);
}

.market-title {
    color: var(--text-primary) !important;
}

.market-stats,
.market-details {
    color: var(--text-secondary);
}

.yes-button,
.buy-yes {
    background: linear-gradient(135deg, var(--success-green), #059669) !important;
}

.no-button,
.buy-no {
    background: linear-gradient(135deg, var(--error-red), #DC2626) !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-lg: 1rem;
    }

    .entry-content {
        padding: var(--spacing-lg);
    }

    .site-header-wrap {
        background-color: rgba(15, 20, 25, 0.95) !important;
    }
}
