/*
 Theme Name:   DzikiBet Dark
 Theme URI:    https://dzikibet.pl
 Description:  Ciemny motyw potomny Astra z gold/amber akcentami dla DzikiBet
 Author:       DzikiBet
 Author URI:   https://dzikibet.pl
 Template:     astra
 Version:      2.0.0
 Text Domain:  dzikibet-dark
*/

/* ============================================
   DZIKIBET DARK THEME - GLOBAL STYLES
   ============================================ */

:root {
    /* Primary Colors */
    --db-bg-primary: #0a0a0f;
    --db-bg-secondary: #12121a;
    --db-bg-card: #1a1a2e;
    --db-bg-card-hover: #222240;
    --db-bg-input: #16162a;

    /* Gold / Amber Accents */
    --db-gold: #d4a017;
    --db-gold-light: #f0c040;
    --db-gold-dark: #b8860b;
    --db-gold-glow: rgba(212, 160, 23, 0.3);
    --db-gold-gradient: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #d4a017 100%);

    /* Text Colors */
    --db-text-primary: #e8e8f0;
    --db-text-secondary: #9999b0;
    --db-text-muted: #666680;

    /* Status Colors */
    --db-green: #00c853;
    --db-red: #ff3d3d;
    --db-blue: #4488ff;

    /* Borders & Shadows */
    --db-border: rgba(255, 255, 255, 0.06);
    --db-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --db-shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.15);

    /* Spacing */
    --db-radius: 12px;
    --db-radius-lg: 20px;
}

/* ============================================
   BASE STYLES
   ============================================ */

body,
html {
    background-color: var(--db-bg-primary) !important;
    color: var(--db-text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--db-gold) !important;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--db-gold-light) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--db-text-primary) !important;
}

p {
    color: var(--db-text-secondary) !important;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.ast-primary-header,
.site-header,
#masthead {
    background-color: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--db-border) !important;
}

.main-header-menu .menu-link,
.ast-header-custom-item a,
.ast-masthead .menu-item > .menu-link {
    color: var(--db-text-primary) !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
    color: var(--db-gold) !important;
}

/* Logo styling */
.site-title a,
.ast-site-identity .site-title a {
    color: var(--db-gold) !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    letter-spacing: 1px;
}

/* CTA Button in header */
.ast-header-button-1 .ast-custom-button-link .ast-custom-button,
.wp-block-button .wp-block-button__link,
.ast-header-custom-item .ast-custom-button-link {
    background: var(--db-gold-gradient) !important;
    color: #0a0a0f !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem !important;
}

.ast-header-button-1 .ast-custom-button-link .ast-custom-button:hover,
.wp-block-button .wp-block-button__link:hover {
    box-shadow: var(--db-shadow-gold) !important;
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.dzikibet-hero {
    background: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 70%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.dzikibet-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(212, 160, 23, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(68, 136, 255, 0.03) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, 10px) rotate(2deg); }
}

.dzikibet-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
}

.dzikibet-hero h1 .gold-text {
    background: var(--db-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dzikibet-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--db-text-secondary) !important;
    max-width: 600px;
    line-height: 1.6;
}

/* ============================================
   CARDS - ROI, STATS, PRICING
   ============================================ */

.db-card {
    background: var(--db-bg-card) !important;
    border: 1px solid var(--db-border) !important;
    border-radius: var(--db-radius) !important;
    padding: 30px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.db-card:hover {
    background: var(--db-bg-card-hover) !important;
    border-color: rgba(212, 160, 23, 0.2) !important;
    box-shadow: var(--db-shadow-gold) !important;
    transform: translateY(-4px);
}

.db-card.featured {
    border-color: var(--db-gold) !important;
    box-shadow: var(--db-shadow-gold) !important;
}

.db-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--db-gold-gradient);
}

/* ============================================
   PRICING SECTION
   ============================================ */

.db-pricing-card {
    background: var(--db-bg-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.db-pricing-card.popular {
    border-color: var(--db-gold);
    position: relative;
    transform: scale(1.05);
}

.db-pricing-card.popular::after {
    content: 'NAJPOPULARNIEJSZY';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--db-gold-gradient);
    color: #0a0a0f;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.db-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--db-text-primary);
    line-height: 1;
}

.db-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
    color: var(--db-gold);
}

.db-price .period {
    font-size: 0.9rem;
    color: var(--db-text-muted);
    font-weight: 400;
}

/* ============================================
   STATS / ROI TABLE
   ============================================ */

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.db-stat-item {
    background: var(--db-bg-card);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    padding: 24px;
    text-align: center;
}

.db-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--db-gold);
    line-height: 1;
}

.db-stat-value.positive { color: var(--db-green); }
.db-stat-value.negative { color: var(--db-red); }

.db-stat-label {
    font-size: 0.85rem;
    color: var(--db-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ROI Table */
.db-roi-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--db-bg-card);
    border-radius: var(--db-radius);
    overflow: hidden;
    border: 1px solid var(--db-border);
}

.db-roi-table thead th {
    background: var(--db-bg-secondary);
    color: var(--db-gold);
    padding: 16px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    border-bottom: 1px solid var(--db-border);
}

.db-roi-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--db-border);
    color: var(--db-text-primary);
    font-size: 0.95rem;
}

.db-roi-table tbody tr:hover {
    background: var(--db-bg-card-hover);
}

.db-roi-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.db-btn-primary,
.elementor-button.db-btn-primary,
button.db-btn-primary {
    background: var(--db-gold-gradient) !important;
    color: #0a0a0f !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-decoration: none !important;
}

.db-btn-primary:hover {
    box-shadow: var(--db-shadow-gold) !important;
    transform: translateY(-2px) !important;
}

.db-btn-secondary {
    background: transparent !important;
    color: var(--db-gold) !important;
    border: 2px solid var(--db-gold) !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.db-btn-secondary:hover {
    background: rgba(212, 160, 23, 0.1) !important;
}

/* ============================================
   ELEMENTOR OVERRIDES
   ============================================ */

.elementor-section {
    background-color: transparent !important;
}

.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 10px !important;
}

.elementor-widget-heading .elementor-heading-title {
    color: var(--db-text-primary) !important;
}

.elementor-widget-text-editor {
    color: var(--db-text-secondary) !important;
}

.elementor-icon-list-text {
    color: var(--db-text-secondary) !important;
}

.elementor-icon-list-icon svg {
    fill: var(--db-gold) !important;
}

.elementor-counter .elementor-counter-number-wrapper {
    color: var(--db-gold) !important;
}

.elementor-divider-separator {
    border-color: var(--db-border) !important;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer,
.ast-footer-overlay,
footer,
.ast-small-footer {
    background-color: var(--db-bg-secondary) !important;
    border-top: 1px solid var(--db-border) !important;
    color: var(--db-text-muted) !important;
}

.site-footer a {
    color: var(--db-text-secondary) !important;
}

.site-footer a:hover {
    color: var(--db-gold) !important;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    background-color: var(--db-bg-input) !important;
    border: 1px solid var(--db-border) !important;
    border-radius: 8px !important;
    color: var(--db-text-primary) !important;
    padding: 12px 16px !important;
    transition: border-color 0.3s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--db-gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px var(--db-gold-glow) !important;
}

/* ============================================
   PMS (Paid Member Subscriptions) OVERRIDES
   ============================================ */

.pms-form-container,
.pms-account-container {
    background: var(--db-bg-card) !important;
    border: 1px solid var(--db-border) !important;
    border-radius: var(--db-radius) !important;
    padding: 30px !important;
}

.pms-form label {
    color: var(--db-text-secondary) !important;
}

.pms-form input[type="submit"],
.pms-form button {
    background: var(--db-gold-gradient) !important;
    color: #0a0a0f !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.pms-subscription-plan {
    background: var(--db-bg-card) !important;
    border: 1px solid var(--db-border) !important;
    border-radius: var(--db-radius) !important;
    padding: 20px !important;
    margin-bottom: 12px !important;
}

.pms-subscription-plan:hover,
.pms-subscription-plan.pms-active {
    border-color: var(--db-gold) !important;
}

/* ============================================
   DISCLAIMER BAR
   ============================================ */

.db-disclaimer {
    background: var(--db-bg-secondary);
    border-top: 1px solid var(--db-border);
    padding: 15px 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--db-text-muted);
    line-height: 1.5;
}

/* ============================================
   TELEGRAM SECTION
   ============================================ */

.db-telegram-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d2137 100%);
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: var(--db-radius-lg);
    padding: 40px;
    text-align: center;
}

.db-telegram-card .telegram-icon {
    font-size: 3rem;
    color: #0088cc;
    margin-bottom: 20px;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--db-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--db-bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--db-gold-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .db-pricing-card.popular {
        transform: scale(1);
    }

    .dzikibet-hero h1 {
        font-size: 2rem !important;
    }

    .db-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .db-stats-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================================
   REDESIGN 2.0 - WordPress Overrides
   =================================== */

.page .entry-title, .page .entry-header, .page .page-title,
.home .entry-title, .home .entry-header, .home .page-title,
.home .ast-archive-description { display: none !important; }

.home .ast-container, .home #primary,
.page .ast-container, .page #primary {
  max-width: 100% !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important;
}

.home .site-content > .ast-container,
.page .site-content > .ast-container {
  padding-top: 0 !important; padding-bottom: 0 !important;
}

.main-header-bar {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(10, 10, 15, 0.85) !important;
  border-bottom: 1px solid rgba(212, 160, 23, 0.1) !important;
  position: sticky !important; top: 0 !important; z-index: 1000 !important;
}

.main-header-bar .main-header-bar-navigation {
  display: flex !important; justify-content: flex-end !important; align-items: center !important;
}

.main-navigation a, .main-header-menu a {
  color: #8888a0 !important; font-size: 14px !important; font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.main-navigation a:hover, .main-header-menu a:hover { color: #f0c040 !important; }
.current-menu-item > a, .current_page_item > a { color: #d4a017 !important; }

html { scroll-behavior: smooth !important; scroll-padding-top: 80px !important; }

.site-footer {
  background: #080810 !important;
  border-top: 1px solid rgba(212, 160, 23, 0.1) !important;
}

.entry-content { padding: 0 !important; margin: 0 !important; }
#secondary { display: none !important; }

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background: transparent !important; padding: 0 !important;
}

.ast-separate-container { background: transparent !important; }
.custom-logo { max-height: 40px !important; width: auto !important; }
.site-title a { color: #d4a017 !important; font-weight: 700 !important; font-size: 20px !important; }


/* ===================================
   REDESIGN 2.0 - Critical Fixes
   =================================== */

/* Fix pricing grid - force 3 columns */
.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  align-items: stretch !important;
}

/* Fix primary button text color (Astra overrides link colors) */
.btn-primary,
a.btn-primary,
.entry-content a.btn-primary,
.entry-content .btn-primary {
  color: #0a0a0f !important;
  background-color: #d4a017 !important;
}

a.btn-primary:hover,
.entry-content a.btn-primary:hover {
  color: #0a0a0f !important;
  background-color: #f0c040 !important;
}

/* Fix ghost button */
.btn-ghost,
a.btn-ghost,
.entry-content a.btn-ghost,
.entry-content .btn-ghost {
  color: #d4a017 !important;
  background-color: transparent !important;
  border: 1px solid #d4a017 !important;
}

a.btn-ghost:hover,
.entry-content a.btn-ghost:hover {
  color: #f0c040 !important;
  background-color: rgba(212, 160, 23, 0.1) !important;
  border-color: #f0c040 !important;
}

/* Fix model name gold color */
.entry-content .model-name {
  color: #d4a017 !important;
}

/* Fix pricing card featured scale */
.pricing-card.featured {
  border-color: #d4a017 !important;
  background: #252538 !important;
  transform: scale(1.02) !important;
}

/* Fix gold link colors in footer */
.db-footer a {
  color: #8888a0 !important;
}
.db-footer a:hover {
  color: #d4a017 !important;
}

/* Responsive pricing grid */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
  .pricing-card.featured {
    transform: scale(1) !important;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ═══ REDESIGN 3.0 — Astra Critical Overrides ═══ */

/* Full-width homepage layout */
.home .ast-container,
.home .ast-inner-width,
.home #primary,
.home #content,
.home .entry-content,
.home .post-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hide page title on homepage */
.home .entry-header,
.home .page-header,
.home .ast-page-title-wrap {
  display: none !important;
}

/* Sticky header */
.main-header-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(10, 10, 15, 0.92) !important;
  border-bottom: 1px solid rgba(212, 160, 23, 0.15) !important;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 80px !important;
}

/* Nav links */
.main-navigation a,
.main-navigation .menu-link {
  color: #9090aa !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  transition: color 0.2s !important;
}
.main-navigation a:hover,
.main-navigation .menu-link:hover,
.main-navigation .current-menu-item > a {
  color: #d4a017 !important;
}

/* Header layout */
.ast-site-identity {
  padding: 0 !important;
}
.main-header-bar .ast-container {
  max-width: 1240px !important;
  padding: 0 24px !important;
}

/* No padding on page content wrapper */
.home .ast-article-single,
.home article,
.home .hentry {
  padding: 0 !important;
  margin: 0 !important;
}

/* Button text color fix */
a.btn-prim,
.entry-content a.btn-prim,
.btn-prim {
  color: #0a0a0f !important;
}
a.btn-ghost,
.entry-content a.btn-ghost,
.btn-ghost {
  color: #d4a017 !important;
}

/* Remove Astra default link color from content */
.entry-content a:not([class]) {
  color: #d4a017;
}

/* Body background */
body {
  background-color: #0a0a0f !important;
}
