/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


/* css solo stats */

/* --- 1. Variabili Globali del Tema Scuro --- */
:root {
    --theme-bg: #1c0030;
    --theme-card-bg: #2a0055;
    --theme-card-bg-alt: #31004f;
    --theme-border: #440070;
    --theme-text: #ffffff;
    --theme-highlight: #f2caff;
    --theme-accent: #ff9900;
    --shadow-base: 0 2px 5px rgba(0,0,0,0.35);
    --shadow-hover: 0 4px 10px rgba(0,0,0,0.45);
    --border-radius: 8px;
}

/* --- 2. Stili Globali del Contenitore --- */
.game-dashboard {
    padding: 30px;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: "Montserrat", sans-serif;
	border-radius: 8px;
}

.segment-card .segment-label .segment-icon, img.live-segment-icon {
    max-width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

/* --- 3. Tipografia --- */
.game-dashboard h2,
.game-dashboard h3 {
    color: var(--theme-highlight);
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px #000;
    font-weight: 700;
}

/* --- 4. Controlli (Menu a Tendina) --- */
.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    background: var(--theme-card-bg-alt);
    border: 1px solid var(--theme-border);
    padding: 12px;
}
.dashboard-controls label {
    font-weight: 600;
    white-space: nowrap;
}
.dashboard-controls select {
    width: 100%;
    padding: 8px 12px;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
}

/* --- 5. Layout e Stili Base delle Card (Comuni) --- */
.crazytime-section,
.monopoly-section,
.dreamcatcher-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.segment-card, .multiplier-card, .dealer-card, .bonus-card, .symbol-card, 
.win-card, .tsm-multiplier-item, .chance-card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-base);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    text-align: center;
    box-sizing: border-box;
    flex-grow: 1;
    flex-basis: calc(15% - 7.5px);
}
.segment-card:hover, .multiplier-card:hover, .dealer-card:hover, .bonus-card:hover, 
.symbol-card:hover, .win-card:hover, .tsm-multiplier-item:hover, .chance-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.dealer-card img {
    display: none;
}

/* --- 6. Stili Specifici delle Card --- */
.segment-card {
    background: var(--theme-card-bg-alt);
    border: 1px solid var(--theme-border);
    padding: 12px;
}
.segment-label { font-weight: bold; font-size: 14px; margin-bottom: 4px; }
.segment-value { font-size: 22px; font-weight: bold; margin-top: 5px; color: var(--theme-text); }
.segment-since, .segment-mult { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.multiplier-card, .dealer-card, .bonus-card, .win-card, .chance-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    padding: 10px;
}
.dealer-card img {
    width: 60px; height: 60px; border-radius: 50%;
    margin-bottom: 8px; border: 2px solid var(--theme-border);
}

/* --- 7. Stili per Giochi Storici --- */
.segment-card.crazy_time { background-color: #ff4a4a; color: white; }
.segment-card.cash_hunt { background-color: #a6d867; color: #3d5c17; }
.segment-card.pachinko  { background-color: #e382ff; color: #501d5f; }
.segment-card.coin_flip { background-color: #61b3ff; color: #103c62; }
.symbol-card { padding: 8px 10px; background: #430070; min-width: 60px; font-weight: bold; font-size: 14px; flex-grow: 0; }
.tsm-multipliers-grid { display: flex; flex-wrap: wrap; gap: 15px; width: 100%; }
.tsm-multiplier-item { background: var(--theme-card-bg); border: 1px solid var(--theme-border); padding: 12px; flex-direction: column; align-items: center; justify-content: flex-start; flex-basis: calc(25% - 11.25px); }
.tsm-multiplier-item .tsm-multiplier-value { font-size: 30px; font-weight: bold; color: var(--theme-accent); margin-bottom: 8px; }
.tsm-multiplier-item.miss .tsm-multiplier-value { color: #ff4d4d; }
.tsm-multiplier-item .tsm-multiplier-stats { font-size: 12px; opacity: 0.85; line-height: 1.4; }
.coinflip-stats { display: flex; flex-direction: column; gap: 8px; background: var(--theme-card-bg); border: 1px solid var(--theme-border); padding: 12px; border-radius: var(--border-radius); }
#crazytime-ch-averages td { flex: 1 0 calc(10% - 2px); text-align: center; padding: 6px; background: var(--theme-card-bg-alt); border: 1px solid var(--theme-border); font-size: 12px; border-radius: 4px; font-weight: bold; }
.segment-card.monopoly-r2 { background-color: #3b8bbe; color: white; }
.segment-card.monopoly-r4 { background-color: #2a6f97; color: white; }
.segment-card.monopoly-chance { background-color: #c8b35a; color: #1c0030; }
#monopoly-dice-grid table { width: 100%; border-collapse: collapse; }
#monopoly-dice-grid td { border: 1px solid var(--theme-border); padding: 5px; text-align: center; background: var(--theme-card-bg-alt); }
.dice-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dice-combo { font-size: 0.8em; opacity: 0.8; }
.dice-count { font-weight: bold; font-size: 1.2em; }
.segment-card.dreamcatcher-n20 { background-color: #ff8c00; color: white; }
.segment-card.dreamcatcher-n40 { background-color: #b30000; color: white; }
.segment-card.dreamcatcher-x2 { background-color: #8a2be2; color: white; }
.segment-card.dreamcatcher-x7 { background-color: #de3163; color: white; }

/* --- 8. Stili per Live Feed --- */
.live-feed-container { display: flex; flex-direction: column; gap: 15px; }
.live-round-card { margin-bottom: 4px; background: var(--theme-card-bg); border: 1px solid var(--theme-border); border-left: 5px solid var(--theme-highlight); border-radius: var(--border-radius); padding: 15px; box-shadow: var(--shadow-base); }
.live-round-card.matched { border-left-color: var(--theme-accent); background: linear-gradient(90deg, rgba(255,153,0,0.1) 0%, var(--theme-card-bg) 20%); }
.live-round-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; color: var(--theme-highlight); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--theme-border); }
.live-round-time { font-weight: 500; opacity: 0.8; }
.live-round-body { display: flex; gap: 15px; text-align: center; }
.live-round-body.single-col { justify-content: center; }
.live-result-col { flex: 1; background: var(--theme-card-bg-alt); padding: 10px; border-radius: 6px; }
.live-result-col > div:first-child { font-size: 0.8em; font-weight: 600; opacity: 0.8; margin-bottom: 5px; }
.live-result-value { font-size: 1.5em; font-weight: 700; }
.live-result-value.final { color: var(--theme-accent); }
.live-result-value.small { font-size: 1.1em; }
.live-round-winners { margin-top: 15px; font-size: 0.9em; }
.live-round-winners h6 { margin: 0 0 5px 0; color: var(--theme-highlight); font-size: 1em; }
.live-round-winners ul { list-style: none; padding: 0; margin: 0; max-height: 100px; overflow-y: auto; }
.live-round-winners li { padding: 2px 0; }

/* --- 9. Tabelle Generali --- */
.tabelle_responsive_stats { overflow-x: auto; width: 100%; }
.crazytime-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.crazytime-table th, .crazytime-table td { padding: 8px 10px; border: 1px solid var(--theme-border); background: var(--theme-card-bg); }
.crazytime-table th { background: var(--theme-card-bg-alt); color: var(--theme-highlight); font-weight: bold; }
.crazytime-table tr:nth-child(even) td { background: #38005e; }

/* --- 10. Animazioni e Responsive --- */
.animate-fadeIn { animation: fadeIn 0.7s ease-in-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 992px) { .dashboard-controls { flex-direction: column; } .live-round-winners ul { flex-direction: column; } .live-round-body { flex-direction: column; } .tsm-multiplier-item { flex-basis: calc(33.333% - 10px); } #crazytime-ch-averages td { flex-basis: calc(12.5% - 2px); } }
@media (max-width: 768px) { .segment-card, .multiplier-card, .dealer-card, .bonus-card, .symbol-card, .win-card, .tsm-multiplier-item, .chance-card { flex-basis: calc(50% - 7.5px); min-width: 0; } #crazytime-ch-averages td { flex-basis: calc(20% - 2px); } }
@media (max-width: 480px) { .segment-card, .multiplier-card, .dealer-card, .bonus-card, .symbol-card, .win-card, .tsm-multiplier-item, .chance-card { flex-basis: 100%; } #crazytime-ch-averages td { flex-basis: calc(25% - 2px); } .crazytime-table { font-size: 12px; } }

/* --- 11. Overrides del Tema --- */
body:not(.woocommerce-cart) .main-content table { background: var(--theme-card-bg) !important; border-color: var(--theme-card-bg) !important; }
body:not(.woocommerce-cart) .main-content table tr:nth-child(2n+1) { background: var(--theme-card-bg) !important; }
body:not(.woocommerce-cart) .main-content th, body:not(.woocommerce-cart) .main-content td { border-color: #000000c9 !important; }


/* fix */

.game-dashboard h2 {
    display: none !important;
}

.live-round-winners ul {
    display: flex;
    gap: 12px;
    justify-content: center;
    list-style: unset;
    line-height: 1.25;
    font-size: 16px;
}

.live-round-winners ul li {
    list-style: none;
}


.crazytime-table .table-segment-icon {
    max-width: 45px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    vertical-align: middle;
}

.crazytime-table td {
    vertical-align: middle;
}

/*-- Stili Generali per le Icone delle Dashboard --*/

.segment-card .segment-label .segment-icon {
    max-width: 90px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.live-segment-icon {
    max-height: 40px;
    vertical-align: middle;
}

.live-result-value.final .live-segment-icon {
    max-height: 50px;
}

/* css comparatore */
.pagina_comparatore {
  --colore_base: #fff;
  --colore_box: #2c1a5c;
  --testo_box: #fff;
  --colore_testo: #fff;
  --colore_ombra: rgba(0, 0, 0, 0.25);
  --colore_ombra_accento: rgba(0, 0, 0, 0.44);
  --colore_accento: #fbde00;
  --colore_accento_testo: #000;
  --colore_speciale_bordo: #fbde00;
  --colore_etichetta_sfondo: #fc0;
  --colore_etichetta_testo: #000;
  --colore_bonus: #fc0;
  --colore_modal_sfondo: rgba(0, 0, 0, 0.5);
  --colore_modal_bordo: #888;
  --colore_modal_testo: #aaa;
  --colore_modal_testo_hover: #000;
  --colore_btn_sfondo: #090c1f;
  --colore_btn_testo: #fff;
}

body button.btn-tec {
  display: none !important;
}

/* ========================
   Hero Banner
======================== */
.pagina_comparatore section.hero-banner {
  padding-bottom: 20%;
  display: none;
}

/* ========================
   Comparatore
======================== */

.pagina_comparatore section.comparatore {
  padding-top: 24px;
}
.wpb_text_column.wpb_content_element.mail-fluttuante {
  position: absolute;
  top: 50%;
  background: transparent;
  left: 0;
  transform: translateY(-50%) rotate(270deg);
  z-index: 999;
  color: #54d0a0 !important;
}

.pagina_comparatore h1.pagina-bonus-title {
  color: var(--colore_accento) !important;
}

.pagina_comparatore h6.pagina-bonus-subtitle {
  color: var(--colore_testo) !important;
}
.pagina_comparatore .comparatore-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
}

.pagina_comparatore .comparatore-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  border-radius: 12px;
  background: var(--colore_box);
  color: var(--testo_box);
  box-shadow: 0px 6px 10px var(--colore_ombra);
  min-height: 150px;
  position: relative;
}

.pagina_comparatore .comparatore-item .logo {
  max-width: 20%;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagina_comparatore .comparatore-item .logo img {
  max-width: 100%;
  height: auto;
}

.pagina_comparatore .comparatore-item .description {
  max-width: 30%;
  width: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  font-weight: 400;
}

.pagina_comparatore .comparatore-item .description h3 {
  font-weight: 700;
  color: inherit;
  font-size: 24px;
  line-height: 1.25;
}

.pagina_comparatore .comparatore-item .description p {
  font-size: 16px;
  line-height: 1.25;
  padding: 0;
}

.pagina_comparatore .comparatore-item .bonus {
  max-width: 30%;
  width: 100%;
  padding: 15px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.pagina_comparatore .comparatore-item .cta {
  max-width: 20%;
  width: 100%;
  padding: 15px;
  display: flex;
  align-items: center;
}

.pagina_comparatore .cta a.btn {
  background: var(--colore_accento);
  border-radius: 15px;
  color: var(--colore_accento_testo);
  font-weight: 700;
  transition: all 500ms ease-in-out;
}

.pagina_comparatore .cta a.btn:hover {
  color: var(--colore_accento);
  background: var(--colore_accento_testo);
}

.pagina_comparatore .comparatore-item.bonus_speciale {
  border: 2px solid var(--colore_speciale_bordo);
}

.pagina_comparatore .comparatore-item.etichetta_nuovo:after {
  content: "Novità";
  background: var(--colore_etichetta_sfondo);
  display: inline-block;
  position: absolute;
  top: -16px;
  right: -16px;
  border-radius: 50rem;
  padding: 8px 24px;
  font-weight: 700;
  color: var(--colore_etichetta_testo);
  box-shadow: 2px 3px 6px var(--colore_ombra_accento);
}

.pagina_comparatore .bonus_stelline {
  font-size: 22px;
  font-weight: 600;
  color: var(--colore_bonus);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bonus_stelline h3 {
  color: var(--colore_base);
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.pagina_comparatore .bonus_soldi {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}

.pagina_comparatore button.btn-tec {
  background: var(--colore_btn_sfondo);
  border: 0;
  box-shadow: unset;
  color: var(--colore_btn_testo);
  border-radius: 50rem;
  padding: 6px 12px;
  font-weight: 700;
  display: flex;
  cursor: pointer;
}

/* ========================
   Modal
======================== */
.pagina_comparatore .bonus_tec_modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--colore_modal_sfondo);
}

.pagina_comparatore .bonus_tec_modal .modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--colore_modal_bordo);
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}

.pagina_comparatore .bonus_tec_modal .modal-content h3 {
  margin-top: 0;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.pagina_comparatore .bonus_tec_modal .modal-content .close {
  color: var(--colore_modal_testo);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.pagina_comparatore .bonus_tec_modal .modal-content .close:hover,
.pagina_comparatore .bonus_tec_modal .modal-content .close:focus {
  color: var(--colore_modal_testo_hover);
  text-decoration: none;
}

/* ========================
   SEO Section
======================== */
.pagina_comparatore .seo-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--colore_base);
  border-radius: 12px;
  box-shadow: 0px 6px 10px var(--colore_ombra);
  margin: 24px auto;
  color: var(--colore_testo) !important;
}

.pagina_comparatore .seo-wrapper h2 {
  max-width: 100%;
  width: 100%;
  color: var(--colore_testo);
}

.pagina_comparatore .seo-wrapper .text {
  padding: 15px;
  max-width: 100%;
  width: 100%;
}

/* ========================
   Media Queries
======================== */
@media all and (max-width: 1000px) {
  .pagina_comparatore .comparatore-item {
    flex-direction: column !important;
  }

  .pagina_comparatore .comparatore-item > div {
    max-width: 100% !important;
  }

  .pagina_comparatore .comparatore-item .cta {
    justify-content: center;
  }
  .description {
    align-items: center !important;
    justify-content: center;
}
}



/* registrazione */


.pmpro .pmpro_card, .pmpro .pmpro_card a {
    background: #00000014;
    color: #fff !important;
    border-color: transparent;
}

.pmpro_card_title, h2.pmpro_form_heading.pmpro_font-large {
    color: #fbde00 !important;
}

h2.pmpro_form_heading.pmpro_font-large {}

.pmpro_message {
    background: #ffffff;
}

/* altri fix */
.stats-section-wrapper {
    display: none;
    width: 100%;
    margin-bottom: 20px;
}


/* Stile per il messaggio di invito al login/registrazione */
.login-prompt {
    background-color: #2a0055;
    border: 1px solid #fbde00;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

.login-prompt h3 {
    margin-top: 0;
    color: #ffffff;
}

.login-prompt p {
    color: #b9bbbe;
    font-size: 16px;
    line-height: 1.6;
}

.login-prompt .button {
    margin: 10px 5px 0;
    display: inline-block;
    background-color: #fbde00;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.login-prompt .button:hover {
    background-color: #677bc4;
}

.login-prompt .button.secondary {
    background-color: transparent;
    border: 2px solid #fbde00;
    color: #ffffff;
}
.login-prompt .button.secondary:hover {
    background-color: #fbde00;
  color: #000;
}


/* ========================
   RIDUZIONE MENU HEADER
======================== */

/* Riduce altezza header */
#header-outer {
    height: 70px !important;
    min-height: 70px !important;
}

#header-outer[data-permanent-transparent="false"] {
    height: 70px !important;
}

/* Riduce padding del menu */
#top nav > ul > li > a {
    padding: 25px 15px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Riduce dimensione logo */
#header-outer #logo img {
    max-height: 45px !important;
}

/* Riduce spazio generale dell'header */
#header-space {
    height: 70px !important;
}

/* Rende il background dell'header più trasparente/meno evidente */
#header-outer {
    background-color: rgba(28, 0, 48, 0.85) !important;
    box-shadow: none !important;
}

/* Mobile: menu STATICO (non fixed) - scompare quando scrolli giù */
@media (max-width: 999px) {
    #header-outer {
        position: absolute !important;
    }
    
    #header-outer[data-permanent-transparent="false"] {
        position: absolute !important;
    }
    
    body.mobile #header-outer {
        position: absolute !important;
    }
    
    /* Rimuove lo spazio riservato per l'header fisso */
    body #header-space {
        display: none !important;
    }
}

/* Desktop: menu rimane fisso in alto */
@media (min-width: 1000px) {
    #header-outer {
        position: fixed !important;
    }
}