/* === ZMIENNE === */
:root {
  --primary: #2c8c8c;
  --primary-dark: #1e6060;
  --primary-light: #3aa8a8;
  --secondary: #ffffff;
  --background: #f6f6f6;
  --text: #333333;
  --gray-light: #e8e8e8;
  --gray: #bebebe;
  --gray-dark: #6c6c6c;
  --accent: #ff7e33;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --transition: all 0.3s ease;
}

/* === RESET I PODSTAWOWE STYLE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--background);
}

img {
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0.5rem auto 1.5rem;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* === PRZYCISKI === */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn i {
  margin-right: 8px;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* === HEADER I NAWIGACJA === */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(44, 140, 140, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo img {
  height: 120px;
  width: 160px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--secondary);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-list a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 100vh;
  background: var(--gradient);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--secondary);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-logo {
  width: 320px;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* === STREAM SECTION === */
.stream-section {
  padding: 6rem 0;
  background: var(--secondary);
}

.stream-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.twitch-embed {
  flex: 1 1 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stream-info {
  flex: 1 1 300px;
  padding: 1.5rem;
  background: var(--background);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.now-playing {
  margin-bottom: 2rem;
}

.now-playing h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.animation-container {
  display: flex;
  align-items: center;
  background: var(--primary);
  padding: 1rem;
  border-radius: 8px;
  color: var(--secondary);
}

.equalizer {
  display: flex;
  align-items: flex-end;
  height: 20px;
  gap: 3px;
  margin-right: 1rem;
}

.equalizer .bar {
  width: 4px;
  height: 10px;
  background: var(--secondary);
  border-radius: 2px;
  transition: height 0.2s ease;
}

#stream-status {
  font-weight: 600;
}

.stream-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--secondary);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat i {
  font-size: 1.5rem;
  color: var(--primary);
}

/* === ABOUT SECTION === */
.about-section {
  padding: 6rem 0;
  background: var(--background);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 1 1 500px;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.image-frame {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.3;
  animation: pulse-ring 2s infinite;
}

.image-frame img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary);
  padding: 2rem;
  position: relative;
  z-index: 1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  80%, 100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* === GENRES SECTION === */
.genres-section {
  padding: 6rem 0;
  background: var(--secondary);
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.genre-card {
  background: var(--background);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.genre-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.genre-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--secondary);
  font-size: 1.8rem;
}

.genre-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* === SCHEDULE SECTION === */
.schedule-section {
  padding: 6rem 0;
  background: var(--background);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.schedule-item {
  background: var(--secondary);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.schedule-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.schedule-item:hover {
  transform: translateY(-5px);
}

.day {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.time {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
}

.show {
  font-size: 1.1rem;
}

/* === CONTACT SECTION === */
.contact-section {
  padding: 6rem 0;
  background: var(--secondary);
}

.contact-content {
  display: flex;
  justify-content: center; /* Center horizontally */
  flex-wrap: wrap;
}

.contact-info {
  text-align: center; /* Center text */
  max-width: 600px; /* Control width */
  margin: 0 auto; /* Center the box */
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center; /* Center social icons */
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-action {
  display: flex;
  justify-content: center; /* Center button */
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-5px);
}

.twitch {
  background: #6441a5;
}

.discord {
  background: #7289da;
}

.instagram {
  background: #e1306c;
}

.youtube {
  background: #ff0000;
}

.newsletter {
  flex: 1 1 300px;
  background: var(--background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.newsletter h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 1.5rem;
}

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

.newsletter-form input {
  padding: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

/* === FOOTER === */
.main-footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 4rem 0 2rem;
}

.main-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo img {
  height: 100px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--secondary);
  font-weight: 600;
}

.footer-info {
  text-align: center;
  margin-top: 1rem;
}

.footer-info p {
  margin-bottom: 0.5rem;
}

.footer-info a {
  color: var(--secondary);
  text-decoration: underline;
}

/* === MEDIA QUERIES === */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--primary);
    padding: 1rem 0;
    gap: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-list.active {
    transform: scaleY(1);
  }
  
  .nav-list li {
    width: 100%;
  }
  
  .nav-list a {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
  }
  
  .nav-list a::after {
    display: none;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .stream-container {
    flex-direction: column;
  }
  
  .about-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .about-text .btn {
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* === ANIMACJE === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header,
.stream-container,
.about-content,
.genres-grid,
.schedule-grid,
.contact-content {
  animation: fadeIn 1s ease-out;
}

/* === DODATKOWE EFEKTY === */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 400px;
  height: 400px;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}