/* 
 * Sytnaya-Zeleni - Gry planszowe dla seniorów
 * Main Stylesheet
 * Vaporwave aesthetic with neon effects
 */

/* === Base Styles and Variables === */
:root {
  /* Primary Colors - Vaporwave Palette */
  --primary-dark: #0b032d;
  --primary: #2e086b;
  --primary-light: #5b0fa8;
  --secondary: #ff00ff;
  --accent: #00ffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-neon: linear-gradient(to right, var(--accent), var(--secondary));
  
  /* Text Colors */
  --text-light: #ffffff;
  --text-dark: #0b032d;
  --text-muted: #b3b3cc;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-normal: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-neon: 0 0 10px var(--accent), 0 0 20px var(--accent);
  --shadow-neon-pink: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 3rem;
}

/* === Reset & Normalization === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

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

ul, ol {
  list-style-position: inside;
}

button {
  cursor: pointer;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--space-md);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-md);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-neon);
  border-radius: 2px;
}

/* Neon Text Effect */
.neon-text {
  color: var(--text-light);
  text-shadow: 0 0 5px var(--accent), 
               0 0 10px var(--accent), 
               0 0 20px var(--accent), 
               0 0 40px var(--primary-light);
  animation: neon-pulse 2s infinite alternate;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* Grid & Flex Layouts */
.services-grid,
.blog-grid,
.games-carousel,
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

/* === Components === */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-normal);
  border: none;
  font-size: var(--text-md);
  cursor: pointer;
}

.neon-btn {
  background: var(--primary);
  color: var(--text-light);
  border: 2px solid var(--accent);
  box-shadow: 0 0 5px var(--accent);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.neon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
  z-index: -1;
}

.neon-btn:hover {
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  color: var(--text-light);
}

.neon-btn:hover::before {
  left: 100%;
}

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

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

.text-btn {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem;
}

.text-btn:hover {
  text-decoration: underline;
}

/* Cards */
.service-card,
.game-card,
.blog-card,
.testimonial {
  background: rgba(46, 8, 107, 0.8);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(255, 0, 255, 0.2);
  box-shadow: var(--shadow-normal);
  height: 100%;
}

.service-card:hover,
.game-card:hover,
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-elevated), 0 0 15px rgba(0, 255, 255, 0.3);
}

.service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-icon img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 5px var(--accent));
}

.blog-image,
.game-image,
.article-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.blog-image img,
.game-image img,
.article-image img {
  width: 100%;
  transition: transform var(--transition-normal);
}

.blog-card:hover .blog-image img,
.game-card:hover .game-image img {
  transform: scale(1.05);
}

.blog-content h3,
.game-card h3 {
  margin-top: var(--space-sm);
}

.read-more {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 600;
  position: relative;
}

.read-more::after {
  content: '→';
  margin-left: var(--space-xs);
  transition: transform var(--transition-fast);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* === Header & Navigation === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 3, 45, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: var(--space-sm);
}

.logo span {
  font-size: var(--text-lg);
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: var(--space-lg);
}

.nav-links a {
  color: var(--text-light);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-neon);
  transition: width var(--transition-normal);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

/* === Hero Section === */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(91, 15, 168, 0.2) 0%, rgba(11, 3, 45, 0.9) 70%);
  z-index: -1;
}

.hero-grid-overlay,
.about-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(43, 8, 107, 0.8), rgba(11, 3, 45, 0.8)),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M0 0h1v100H0zm99 0h1v100h-1zM0 0v1h100V0zm0 99v1h100v-1z' fill='rgba(255, 0, 255, 0.1)'/%3E%3Cpath d='M10 0v100M20 0v100M30 0v100M40 0v100M50 0v100M60 0v100M70 0v100M80 0v100M90 0v100M0 10h100M0 20h100M0 30h100M0 40h100M0 50h100M0 60h100M0 70h100M0 80h100M0 90h100' stroke='rgba(0, 255, 255, 0.05)' stroke-width='0.5'/%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

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

.hero-content h1 {
  margin-bottom: var(--space-sm);
}

.hero-content h2 {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero-image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 45%;
  animation: float 6s ease-in-out infinite;
}

/* === Features Sections === */
.services {
  background-color: var(--primary-dark);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(91, 15, 168, 0.1) 0%, rgba(11, 3, 45, 0.1) 100%);
  z-index: -1;
}

.about {
  position: relative;
  background-color: var(--primary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.featured-games {
  background-color: var(--primary-dark);
}

.game-placeholder {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 1;
}

/* === Testimonials === */
.testimonials {
  background-color: var(--primary);
  position: relative;
}

.testimonial {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 6rem;
  color: rgba(0, 255, 255, 0.1);
  line-height: 1;
}

.quote {
  font-style: italic;
  margin-bottom: var(--space-md);
}

.author {
  color: var(--accent);
  font-weight: 600;
}

/* === Blog Sections === */
.blog-preview {
  background-color: var(--primary-dark);
}

.blog-more {
  text-align: center;
  margin-top: var(--space-xl);
}

.blog-hero {
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
  background-color: var(--primary);
}

.blog-hero h1 {
  margin-bottom: var(--space-sm);
}

.blog-articles {
  background-color: var(--primary-dark);
}

.blog-date {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

/* === Article Pages === */
.article-content {
  padding: var(--space-xl) 0;
  background-color: var(--primary-dark);
}

.article-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.article-meta {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.article-image {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body h2, 
.article-body h3, 
.article-body h4 {
  margin-top: var(--space-xl);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.article-body li {
  margin-bottom: var(--space-sm);
}

.article-footer {
  max-width: 800px;
  margin: var(--space-xl) auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding: var(--space-md) 0;
}

.article-tags a {
  display: inline-block;
  background: rgba(91, 15, 168, 0.3);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.article-tags a:hover {
  background: rgba(91, 15, 168, 0.6);
}

.share-article a {
  margin-left: var(--space-sm);
}

.more-articles {
  max-width: 800px;
  margin: 0 auto;
}

.more-articles h3 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.related-article {
  display: flex;
  flex-direction: column;
  background: rgba(46, 8, 107, 0.6);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.related-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated), 0 0 15px rgba(0, 255, 255, 0.3);
}

.related-article img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.related-article h4 {
  padding: var(--space-md);
  color: var(--text-light);
}

/* === Newsletter Section === */
.newsletter {
  background-color: var(--primary);
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  margin-top: var(--space-lg);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-fast);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.3);
}

.newsletter-form button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* === Subscription/Contact Form === */
.subscription {
  background-color: var(--primary-dark);
  position: relative;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(46, 8, 107, 0.8);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.3);
}

.checkbox {
  display: flex;
  align-items: flex-start;
}

.checkbox input {
  width: auto;
  margin-right: var(--space-sm);
  margin-top: 5px;
}

.checkbox label {
  font-weight: normal;
}

/* === Thank You Page === */
.thank-you {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.thank-you-content {
  max-width: 600px;
}

.thank-you-icon {
  display: block;
  margin: 0 auto var(--space-lg);
  animation: pulse 2s infinite;
}

/* === Footer === */
footer {
  background-color: var(--primary-dark);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-neon);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-sm);
}

.footer-logo h3 {
  margin-bottom: var(--space-xs);
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
}

.footer-links li,
.footer-legal li {
  margin-bottom: var(--space-sm);
}

.footer-contact address {
  font-style: normal;
}

.footer-contact p {
  margin-bottom: var(--space-sm);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(91, 15, 168, 0.3);
  transition: all var(--transition-normal);
}

.social-icons a:hover {
  background: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* === Legal Pages === */
.legal-content {
  padding: var(--space-xl) 0;
  background-color: var(--primary-dark);
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.legal-updated {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
}

.legal-body h2 {
  margin-top: var(--space-xl);
  color: var(--accent);
}

.legal-body h3 {
  margin-top: var(--space-lg);
}

.legal-body ul,
.legal-body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-body li {
  margin-bottom: var(--space-sm);
}

address {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: rgba(91, 15, 168, 0.2);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

/* === Cookie Banner & Modal === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 3, 45, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--space-lg);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.modal.visible {
  display: flex;
}

.modal-content {
  background: var(--primary);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  padding: var(--space-xl);
  position: relative;
  box-shadow: var(--shadow-elevated), 0 0 20px rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.close-modal {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--accent);
}

.cookie-option {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option label {
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.cookie-option p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-left: 24px;
}

.cookie-option input {
  margin-right: var(--space-sm);
}

/* === Responsive Styles === */
@media (max-width: 1024px) {
  .hero-image {
    max-width: 35%;
  }
}

@media (max-width: 768px) {
  :root {
    --text-3xl: 2.5rem;
    --text-2xl: 1.75rem;
    --text-xl: 1.25rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(11, 3, 45, 0.95);
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) 0;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: var(--space-sm) 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-image {
    position: static;
    transform: none;
    max-width: 80%;
    margin: var(--space-xl) auto 0;
  }
  
  .article-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
  }
  
  .newsletter-form button {
    border-radius: var(--radius-md);
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons button {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --text-3xl: 2rem;
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
    --space-xl: 2.5rem;
  }
  
  .services-grid,
  .blog-grid,
  .games-carousel,
  .testimonials-slider,
  .related-articles,
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: var(--space-lg);
  }
}
