/* assets/style/blocks.css - Style dla własnych bloków Gutenberg */

/* Hero Section Block */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section .hero-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

.hero-section .hero-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Testimonial Block */
.testimonial-block {
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-quote::before {
  content: "";
  font-size: 2rem;
  color: #d1d5db;
  position: absolute;
  left: -10px;
  top: -10px;
}

.testimonial-quote::after {
  content: "";
  font-size: 2rem;
  color: #d1d5db;
}

/* CTA Box */
.cta-box {
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.cta-box:hover::before {
  left: 100%;
}

.cta-buttons a {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-box.flex {
    flex-direction: column;
    text-align: center;
  }

  .cta-box .flex-1 {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }

  .hero-section {
    min-height: 300px;
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 2rem !important;
  }

  .testimonial-block {
    padding: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons a {
    display: block;
    text-align: center;
  }
}

/* Editor specific styles */
.wp-block-putka2025-hero-section {
  margin: 20px 0;
}

.wp-block-putka2025-testimonial {
  margin: 20px 0;
}

.wp-block-putka2025-cta-box {
  margin: 20px 0;
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}
