/*
Theme Name: Bachata Pro
Theme URI: https://bachata-pro.local
Author: Dawid / Antigravity AI
Author URI: https://bachata-pro.local
Description: Profesjonalny motyw WordPress dla instruktora Bachaty.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bachata-pro
*/

:root {
  --bg-color: #0f0f11;
  --bg-secondary: #1a1a1d;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --accent-primary: #e63946; /* Passionate red */
  --accent-glow: rgba(230, 57, 70, 0.4);
  --accent-secondary: #f4a261; /* Gold/Orange */
  --glass-bg: rgba(26, 26, 29, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.accent {
  color: var(--accent-primary);
  font-style: italic;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #d62839;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-secondary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
}

.btn-secondary:hover {
  color: var(--accent-primary);
}

.shadow-glow {
  box-shadow: 0 4px 15px var(--accent-glow);
}

.full-width {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-primary);
  font-style: italic;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.5rem;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--text-primary);
  transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 15, 17, 0.9) 0%, rgba(15, 15, 17, 0.7) 50%, rgba(15, 15, 17, 0.2) 100%), linear-gradient(to top, var(--bg-color) 0%, transparent 20%);
}

.hero-content {
  max-width: 650px;
}

.hero .subtitle {
  color: var(--accent-primary);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.hero .title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}

.hero .description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-secondary);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
  0% { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

.scroll-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.img-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: 1;
  filter: blur(40px);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 15px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.experience-badge .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-primary);
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text .section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-text .lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 300;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.features-list {
  margin-top: 2rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.features-list span {
  color: var(--accent-primary);
}

/* Packages */
.relative {
  position: relative;
}

.glow-bg-left {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 4rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}

.package-card.popular {
  border-color: var(--accent-primary);
  background: linear-gradient(145deg, rgba(26,26,29,0.8) 0%, rgba(230,57,70,0.05) 100%);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 15px;
  border-radius: 20px;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.card-header h3 {
  font-family: var(--font-main);
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-header .price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-header .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  vertical-align: top;
}

.card-header .duration {
  font-size: 0.85rem;
  color: var(--accent-primary);
}

.card-body {
  flex-grow: 1;
  margin-bottom: 2.5rem;
}

.card-body ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-body ul li:before {
  content: '✦';
  color: var(--accent-primary);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Blog */
.wp-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15,15,17,0.8);
  backdrop-filter: blur(5px);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  z-index: 10;
}

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: var(--font-main);
  line-height: 1.4;
}

.post-title a:hover {
  color: var(--accent-primary);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.read-more span {
  transition: transform 0.3s ease;
}

.read-more:hover span {
  transform: translateX(5px);
}

/* CTA Section */
.cta-container {
  padding: 4rem;
  text-align: center;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

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

.input-group {
  display: flex;
  gap: 1rem;
}

.cta-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition-normal);
}

.cta-form input:focus {
  border-color: var(--accent-primary);
  background: rgba(255,255,255,0.06);
}

.cta-floating-elements .circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
  opacity: 0.5;
}

.circle-1 {
  width: 200px;
  height: 200px;
  background: var(--accent-primary);
  top: -50px;
  left: -50px;
}

.circle-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  bottom: -100px;
  right: -100px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding-top: 5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 1.5rem 0;
  max-width: 400px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li, .footer-contact ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--accent-primary);
}

.footer-contact ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.opacity-50 {
  opacity: 0.5;
}

.text-small {
  font-size: 0.8rem;
}

/* Animations (Scroll Reveal) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
  .hero .title { font-size: 3.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrapper { max-width: 600px; margin: 0 auto; }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: block; z-index: 101; position: relative; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 17, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    z-index: 100;
  }
  
  .nav.active { left: 0; }
  .nav-list { flex-direction: column; gap: 2rem; align-items: center; }
  .nav-link { font-size: 1.5rem; }
  
  .hero .title { font-size: 2.8rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .packages-grid, .wp-post-grid, .footer-grid { grid-template-columns: 1fr; }
  .input-group { flex-direction: column; }
  .cta-container { padding: 3rem 1.5rem; }
}
