/*
 * Homepage compatibility stylesheet.
 *
 * This file intentionally retains the ORIGINAL selectors and declaration order.
 * It is a safe first migration: markup and inline attributes remain unchanged.
 */

/* Galeria malutka */
.dransky-tabs {
    padding: 60px 20px;
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #fff;
    text-align: center;
  }

  .dransky-tabs-inner {
    max-width: 1500px;
    margin: 0 auto;
  }

  .dransky-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0 auto 30px auto;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    flex-wrap: wrap;
    max-width: 1000px;
  }

  .dransky-tab-buttons button {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 300;
    color: #ccc;
    cursor: pointer;
    padding: 12px 24px;
    position: relative;
    transition: all 0.3s ease;
  }

  .dransky-tab-buttons button.active {
    color: #fff;
  }

  .dransky-tab-buttons button.active::after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    margin-top: 6px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    position: absolute;
    bottom: -2px;
    left: 0;
  }

  .dransky-tab-content {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
  }

  .dransky-tab-content.active {
    display: block;
  }

  .dransky-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .dransky-gallery-featured {
    grid-row: span 2;
    width: 100%;
    height: 96%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }

  .small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .small-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
  }

  .small-grid img:hover {
    transform: scale(1.03);
  }

  @media (max-width: 768px) {
    .dransky-gallery-grid {
      grid-template-columns: 1fr;
    }

    .small-grid {
      grid-template-columns: 1fr;
    }
  }

  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }

  #dransky-dynamic-button svg {
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
  }

  #dransky-dynamic-button:hover svg {
    transform: translateX(6px);
  }

  #dransky-dynamic-button:active {
    filter: brightness(0.9);
    transform: scale(0.98);
  }



    .dransky-hero-video-container {
    position: relative;
    width: 100%;
    height: 60vh; /* dynamiczna wysokość zależna od wysokości ekranu */
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
  }

  .dransky-hero-video-container video {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    z-index: 1;
  }

  .dransky-hero-video-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
    z-index: 2;
  }

  @media (max-width: 768px) {
    .dransky-hero-video-container {
      height: 50vh;
      min-height: 300px;
    }
  }
  
 /* nagłówek ANIMATED BATTLEMAPS i zwykły tekst  */
  .dransky-heading-section {
    text-align: center;
    color: #f5f5f5;
    padding: 100px 20px 60px;
  }

  .dransky-heading-section h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f8f8f8;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
  }

  .dransky-separator {
    display: inline-block;
    height: 2px;
    width: 200px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    margin: 10px auto 20px auto;
  }

  .dransky-heading-section p {
    font-size: 18px;
    font-weight: 300;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
  }

/* Original inline styles moved from home-page-tales.php */
.dransky-carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-left-loop 80s linear infinite;
  }

  .carousel-row {
    display: flex;
    gap: 20px;
  }

.carousel-row img,
.carousel-row video {
  height: 400px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.carousel-row img:hover,
.carousel-row video:hover {
  transform: scale(1.05);
  z-index: 999;
}
  .dransky-separator {
    display: inline-block;
    height: 2px;
    width: 200px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    margin: 10px auto 30px auto;
  }
  .dransky-carousel-wrapper:hover .dransky-carousel-track {
    animation-play-state: paused;
  }

  @keyframes scroll-left-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

/* Original inline styles moved from home-page-tales.php */
@media (max-width: 1024px) {
    .carousel-row img {
      height: 300px;
    }
  }

  @media (max-width: 768px) {
    .carousel-row img {
      height: 220px;
    }

    .dransky-carousel-track {
      animation-duration: 60s; /* Szybciej przewija na małych ekranach */
    }
  }

  @media (max-width: 480px) {
    .carousel-row img {
      height: 180px;
    }

    .dransky-carousel-track {
      animation-duration: 50s;
    }
  }

/* Original inline styles moved from home-page-vtts.php */
.dransky-separator {
    display: inline-block;
    height: 2px;
    width: 200px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
  }

  @media (max-width: 480px) {
    .vtt-icons {
      flex-wrap: wrap;
      justify-content: flex-start;
    }
  }

  .tooltip-container {
    position: relative;
    display: inline-block;
  }

  .tooltip-container .tooltip-text {
    visibility: hidden;
    background-color: rgba(20, 20, 20, 0.9);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

  .tooltip-container img {
    transition: transform 0.3s ease, filter 0.3s ease;
  }

  .tooltip-container img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
  }

  /* ✅ Safari iOS fix */
  @supports (-webkit-touch-callout: none) {
    .dransky-vtt-section {
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
      background-color: rgba(0,0,0,0.85) !important;
    }
  }

/* Original inline styles moved from home-page-feedbacks.php */
@supports (-webkit-touch-callout: none) {
    .dransky-feedback-section {
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
      background-color: rgba(0,0,0,0.85) !important;
    }
  }

/* Original inline styles moved from home-page-cta.php */
.dransky-separator {
    display: inline-block;
    height: 2px;
    width: 200px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    margin: 10px auto 20px auto;
  }
/* Hero: pełna szerokość mimo wrappera Text Blocka WPBakery */
.dransky-hero-video-container--full-bleed {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
}
/* Homepage: sekcje wychodzące poza wrapper Text Blocka WPBakery */
.dransky-home-full-bleed {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
}
/* =========================================================
   Homepage gallery — dynamic parent-pack cards
   ========================================================= */
.dransky-tabs .dransky-home-gallery-card {
  position: relative;
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.dransky-tabs .dransky-home-gallery-card--featured {
  grid-row: span 2;
  height: 100%;
}

.dransky-tabs .dransky-home-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dransky-tabs .dransky-home-gallery-card--featured img {
  height: 96%;
}

.dransky-tabs .dransky-home-gallery-title {
  position: absolute;
  bottom: 8px;
  left: 10px;
  z-index: 2;
  color: #ccc;
  font-size: 15px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.dransky-tabs .dransky-home-gallery-title--featured {
  bottom: 25px;
  left: 12px;
  color: #ddd;
  font-size: 22px;
}

.dransky-home-gallery-empty {
  margin: 30px 0 0;
  color: #ccc;
}