/* Modern Design System for Clubul de Box Timișoara */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Modern Color Palette */
  --primary-900: #b71c1c;
  --primary-800: #c62828;
  --primary-700: #d32f2f;
  --primary-600: #e53935;
  --primary-500: #f44336;
  --primary-400: #ef5350;
  --primary-300: #e57373;
  --primary-200: #ffcdd2;
  --primary-100: #ffebee;
  --primary-50: #fef5f5;

  /* Neutral Colors */
  --neutral-900: #1a1a1a;
  --neutral-800: #2d2d2d;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;

  /* Semantic Colors */
  --background: #ffffff;
  --surface: var(--neutral-50);
  --surface-elevated: #ffffff;
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-tertiary: var(--neutral-500);
  --border: var(--neutral-200);
  --border-subtle: var(--neutral-100);

  /* Typography Scale */
  --font-family-primary: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  --font-family-heading: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Container Sizes */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Modern Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* Container System */
.container {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-4);
  width: 100%;
}

/* Prevent horizontal scroll on very small screens */
@media (max-width: 320px) {
  .container {
    padding-inline: var(--space-3);
  }
}

@media (min-width: 480px) {
  .container {
    padding-inline: var(--space-5);
  }
}

@media (min-width: 640px) {
  .container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* Modern Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

/* Small screens (480px+) */
@media (min-width: 480px) {
  h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-5);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
  }
  
  p {
    font-size: var(--font-size-base);
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-6);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-5xl);
  }
  
  h2 {
    font-size: var(--font-size-4xl);
  }
  
  h3 {
    font-size: var(--font-size-3xl);
  }
}

/* Modern Header */
header.hero {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: white;
  text-align: center;
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
}

header.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
  opacity: 0.8;
}

.title-with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
  flex-direction: column;
}

.title-with-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 0;
  margin-bottom: var(--space-2);
  transition: transform 0.3s ease;
}

/* Touch-friendly hover for mobile */
@media (hover: hover) {
  .title-with-logo img:hover {
    transform: scale(1.05) rotate(5deg);
  }
}

header h1 {
  font-size: var(--font-size-lg);
  margin-bottom: 0;
  color: var(--text-inverse);
  text-align: center;
  line-height: var(--line-height-tight);
}

/* Mobile landscape and small tablets */
@media (min-width: 480px) {
  header {
    padding: var(--space-6) 0;
  }
  
  .title-with-logo {
    flex-direction: row;
    gap: var(--space-4);
  }
  
  .title-with-logo img {
    width: 70px;
    height: 70px;
    margin-right: var(--space-3);
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  header {
    padding: var(--space-8) 0;
  }
  
  .title-with-logo {
    gap: var(--space-6);
  }
  
  .title-with-logo img {
    width: 120px;
    height: 120px;
    margin-right: var(--space-4);
  }
  
  header h1 {
    font-size: var(--font-size-2xl);
    text-align: left;
  }
}

/* Modern Hero Section */
.hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--neutral-100) 100%);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/sala.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(20%) blur(0.5px) brightness(0.4);
  opacity: 0.25;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  font-weight: var(--font-weight-bold);
}

.hero p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-inline: auto;
}

/* Modern Button System */
.cta-button {
  background: var(--primary-600);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-block;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-6);
}

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

/* Only apply hover effects on devices that support hover */
@media (hover: hover) {
  .cta-button:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
}

/* Touch feedback for mobile */
.cta-button:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 480px) {
  .cta-button {
    width: auto;
    padding: var(--space-4) var(--space-8);
    margin-top: var(--space-6);
  }
}

@media (min-width: 640px) {
  .cta-button {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-lg);
  }
}

/* Modern Services Section */
.services {
  padding: var(--space-8) 0;
  background: var(--surface-primary);
}

.services h2 {
  text-align: center;
  margin-bottom: var(--space-8);
  color: var(--text-primary);
  padding: 0 var(--space-4);
}

.services ul {
  list-style: none;
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  align-items: start;
}

/* Small screens optimization */
@media (min-width: 480px) {
  .services {
    padding: var(--space-12) 0;
  }
  
  .services h2 {
    margin-bottom: var(--space-10);
    padding: 0;
  }
}

@media (min-width: 768px) {
  .services {
    padding: var(--space-16) 0;
  }
  
  .services ul {
    gap: var(--space-6);
  }
  
  .services h2 {
    margin-bottom: var(--space-12);
  }
}

.services li {
  background: var(--surface-elevated);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
  padding-left: var(--space-10);
  min-height: auto;
  display: block;
}

.services li::before {
  content: "⚡";
  position: absolute;
  left: var(--space-4);
  top: var(--space-5);
  font-size: var(--font-size-base);
  color: var(--primary-600);
  line-height: 1;
  flex-shrink: 0;
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) {
  .services li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
  }
}

/* Touch feedback for mobile */
.services li:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 480px) {
  .services li {
    padding: var(--space-5);
    padding-left: var(--space-11);
    border-radius: var(--radius-xl);
  }
  
  .services li::before {
    left: var(--space-5);
    top: var(--space-5);
  }
}

@media (min-width: 768px) {
  .services li {
    padding: var(--space-6);
    padding-left: var(--space-12);
  }
  
  .services li::before {
    top: var(--space-6);
  }
  
  @media (hover: hover) {
    .services li:hover {
      transform: translateY(-4px);
    }
  }
}

.services li strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
}

.services li .description {
  display: block;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* Why Different List Styling */
.why-different-list {
  list-style: none;
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  align-items: start;
}

.why-different-list li {
  background: var(--surface-elevated);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
  padding-left: var(--space-10);
  min-height: auto;
  display: block;
}

.why-different-list li::before {
  content: "⚡";
  position: absolute;
  left: var(--space-4);
  top: var(--space-5);
  font-size: var(--font-size-base);
  color: var(--primary-600);
  line-height: 1;
  flex-shrink: 0;
}

.why-different-list li strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
}

.why-different-list li .description {
  display: block;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

@media (hover: hover) {
  .why-different-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
  }
}

.why-different-list li:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 480px) {
  .why-different-list li {
    padding: var(--space-5);
    padding-left: var(--space-11);
    border-radius: var(--radius-xl);
  }
  
  .why-different-list li::before {
    left: var(--space-5);
    top: var(--space-5);
  }
}

@media (min-width: 768px) {
  .why-different-list {
    gap: var(--space-6);
  }
  
  .why-different-list li {
    padding: var(--space-6);
    padding-left: var(--space-12);
  }
  
  .why-different-list li::before {
    top: var(--space-6);
  }
  
  @media (hover: hover) {
    .why-different-list li:hover {
      transform: translateY(-4px);
    }
  }
}

/* Modern Photo Container - Mobile First */
.photo-container {
  margin: var(--space-8) 0;
  text-align: center;
  padding: 0 var(--space-2);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) {
  .photo-container img:hover {
    transform: scale(1.02);
  }
}

/* Photo Overlay Social Links - Exact Original Styling */
.photo-container .instagram-link {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(211, 47, 47, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s ease, background-color 0.3s ease;
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

.photo-container .tiktok-link {
  position: absolute;
  top: 60px;
  right: 10px;
  background: rgba(211, 47, 47, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s ease, background-color 0.3s ease;
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Hover effects for photo overlay social links - Original Behavior */
@media (hover: hover) {
  .photo-container .instagram-link:hover,
  .photo-container .tiktok-link:hover {
    transform: translateY(-2px);
    background: rgba(183, 28, 28, 1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
}

/* Touch feedback for mobile */
.photo-container .instagram-link:active,
.photo-container .tiktok-link:active {
  transform: translateY(1px);
  background: rgba(183, 28, 28, 1);
}

/* Trainer name styling */
.trainer-name {
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: var(--space-4) 0 var(--space-8) 0;
  letter-spacing: 0.025em;
  font-style: italic;
}

@media (min-width: 480px) {
  .photo-container {
    margin: var(--space-10) 0;
    padding: 0;
  }
  
  .photo-container img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
  }
  
  .photo-container .instagram-link,
  .photo-container .tiktok-link {
    padding: 10px 18px;
    font-size: var(--font-size-base);
  }
}

@media (min-width: 768px) {
  .photo-container {
    margin: var(--space-12) 0;
  }
  
  .photo-container img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
  }
  
  .photo-container .instagram-link {
    top: 15px;
    right: 15px;
  }
  
  .photo-container .tiktok-link {
    top: 70px;
    right: 15px;
  }
}

.photo-caption {
  color: var(--text-tertiary);
  margin-top: var(--space-4);
  font-style: italic;
  font-size: var(--font-size-sm);
}

/* Footer Social Media Icons - Mobile First & Touch Optimized */
footer .instagram-link,
footer .tiktok-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--surface-elevated);
  border-radius: var(--radius-full);
  margin: var(--space-2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  min-width: 44px;
  min-height: 44px;
}

/* Only apply hover effects on devices that support hover for footer social links */
@media (hover: hover) {
  footer .instagram-link:hover,
  footer .tiktok-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: var(--primary-50);
  }
}

/* Touch feedback for mobile footer social links */
footer .instagram-link:active,
footer .tiktok-link:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-sm);
  background: var(--primary-100);
}

@media (min-width: 480px) {
  footer .instagram-link,
  footer .tiktok-link {
    width: 48px;
    height: 48px;
    margin: 0 var(--space-2);
  }
}

/* Modern Contact Section */
.contact {
  background: linear-gradient(135deg, var(--surface) 0%, var(--neutral-100) 100%);
  padding: var(--space-12) 0;
  text-align: center;
}

.contact h2 {
  margin-bottom: var(--space-8);
  padding: 0 var(--space-4);
}

.contact-info {
  background: var(--surface-elevated);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  max-width: 600px;
  margin-inline: auto;
}

@media (min-width: 480px) {
  .contact {
    padding: var(--space-16) 0;
  }
  
  .contact h2 {
    margin-bottom: var(--space-10);
    padding: 0;
  }
  
  .contact-info {
    padding: var(--space-7);
  }
}

@media (min-width: 768px) {
  .contact {
    padding: var(--space-20) 0;
  }
  
  .contact h2 {
    margin-bottom: var(--space-12);
  }
  
  .contact-info {
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
  }
}

.contact-info p {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.contact-info a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
  display: inline-block;
  padding: var(--space-2) var(--space-1);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* Touch-friendly hover for mobile */
@media (hover: hover) {
  .contact-info a:hover {
    color: var(--primary-700);
    text-decoration: underline;
    background: var(--primary-50);
  }
}

.contact-info a:active {
  background: var(--primary-100);
  transform: scale(0.98);
}

.contact-info h3 {
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
}

.contact-info h4 {
  color: var(--primary-600);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

/* Modern Footer */
footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-16) 0;
  text-align: center;
}

footer p {
  margin: var(--space-2) 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--neutral-400);
}

/* Enhanced Logo Animation */
.title-with-logo img:hover {
  transform: rotate(360deg) !important;
  transition: transform 0.6s ease;
}

/* Smooth scrolling improvements */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  
  * {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Print Styles */
@media print {
  .instagram-link,
  .tiktok-link,
  .cta-button {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}
