/*
Theme Name: Hello Elementor Child - Pacanica Pro
Theme URI: https://pacanica.ro
Description: Professional redesign child theme for Pacanica gambling blog
Author: Pacanica Team
Author URI: https://pacanica.ro
Template: hello-elementor
Version: 4.0.0
Text Domain: hello-elementor-child
*/

/* ============================================
   PACANICA PRO v4 — GREEN TRUST PALETTE
   
   Core styling in Elementor element data.
   This CSS only handles effects Elementor
   cannot set: transitions, pseudo-elements,
   scrollbar, selection, plugins, content areas.
   ============================================ */

/* === SMOOTH SCROLL + FONT SMOOTHING === */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* === TRANSITIONS === */
.elementor-nav-menu--main .elementor-item {
  transition: color 0.3s ease;
  white-space: nowrap;
}

.elementor-button {
  transition: all 0.3s ease;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 122, 66, 0.2);
}

.elementor-widget-call-to-action .elementor-cta {
  transition: all 0.35s ease;
}

.elementor-widget-call-to-action .elementor-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(26, 122, 66, 0.12);
}

.elementor-widget-call-to-action .elementor-cta__button {
  transition: all 0.3s ease;
}

.elementor-post {
  transition: all 0.3s ease;
}

.elementor-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 122, 66, 0.1);
}

.elementor-post__thumbnail img {
  transition: transform 0.4s ease;
}

.elementor-post:hover .elementor-post__thumbnail img {
  transform: scale(1.05);
}

.elementor-icon-list-item a {
  transition: color 0.3s ease;
}

.elementor-social-icon {
  transition: all 0.3s ease;
}

.elementor-social-icon:hover {
  transform: translateY(-2px);
}

/* === STICKY HEADER SHADOW === */
.elementor-sticky--effects {
  box-shadow: 0 4px 20px rgba(21, 43, 30, 0.08) !important;
}

/* === CTA OVERLAY GRADIENT === */
.elementor-cta__bg-overlay {
  background: linear-gradient(180deg, rgba(21,43,30,0.15) 0%, rgba(21,43,30,0.75) 100%) !important;
}

/* === SLIDE TEXT SHADOWS === */
.elementor-slides .elementor-slide-heading {
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.elementor-slides .elementor-slide-description {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.elementor-slides .elementor-slide-button:hover {
  background: #22995A !important;
}

/* === SLIDE OVERLAY GRADIENT === */
.elementor-slides .elementor-background-overlay {
  background: linear-gradient(180deg, rgba(21,43,30,0.3) 0%, rgba(21,43,30,0.65) 100%) !important;
}

/* === PAGINATION === */
.elementor-pagination .page-numbers {
  background: #FFFFFF;
  color: #3D5347;
  border: 1px solid #D1DDD6;
  border-radius: 8px;
  padding: 8px 14px;
  transition: all 0.3s ease;
}

.elementor-pagination .page-numbers:hover,
.elementor-pagination .page-numbers.current {
  background: #1A7A42;
  color: #FFFFFF;
  border-color: #1A7A42;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #EEF3EF; }
::-webkit-scrollbar-thumb { background: #D1DDD6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1A7A42; }

/* === SELECTION === */
::selection { background: rgba(26, 122, 66, 0.2); color: #152B1E; }

/* === FOCUS VISIBLE === */
*:focus-visible { outline: 2px solid #1A7A42; outline-offset: 2px; }

/* === CONTENT AREAS (single posts) === */
.entry-content { color: #3D5347; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 { color: #152B1E; }

/* === BREADCRUMBS === */
.elementor-widget-breadcrumbs { color: #6B7F73; }
.elementor-widget-breadcrumbs a { color: #3D5347; transition: color 0.3s ease; }
.elementor-widget-breadcrumbs a:hover { color: #1A7A42; }

/* === SEARCH FORM === */
.elementor-search-form input[type="search"] {
  background: #FFFFFF;
  border: 1px solid #D1DDD6;
  color: #3D5347;
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

.elementor-search-form input[type="search"]:focus {
  border-color: #1A7A42;
  box-shadow: 0 0 0 3px rgba(26, 122, 66, 0.1);
}

/* === TABLEPRESS PLUGIN === */
.tablepress { background: #FFFFFF; border: 1px solid #D1DDD6; border-radius: 10px; overflow: hidden; border-collapse: separate !important; }
.tablepress th { background: #1A7A42; color: #FFFFFF; font-weight: 700; padding: 12px 16px; border: none; }
.tablepress td { color: #3D5347; padding: 10px 16px; border-bottom: 1px solid #EEF3EF; }
.tablepress tr:nth-child(even) td { background: #F7FAF8; }
.tablepress tr:hover td { background: rgba(26, 122, 66, 0.04); }

/* === SINGLE POST LAYOUT === */
body.single-post {
  overflow-x: hidden;
}

body.single-post .site-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Force ALL images to be responsive */
body.single-post img {
  max-width: 100% !important;
  height: auto !important;
  width: auto;
}

body.single-post figure {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}

body.single-post .entry-content figure {
  margin: 1.5em 0;
}

body.single-post .post-thumbnail,
body.single-post .post-thumbnail img,
body.single-post .attachment-post-thumbnail {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

/* Prevent any element from causing overflow */
body.single-post * {
  max-width: 100%;
  box-sizing: border-box;
}

/* === UTILITY CLASSES === */
.pac-fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.pac-fade-in.visible { opacity: 1; transform: translateY(0); }
