/* Global Styles - TLDS Events */
/* This file contains common styles and CSS variables used across all pages */

:root {
  --bg: #131414;
  --card: #1C1C1E;
  --accent: #A280FF;
  --text: #fff;
  --muted: #aaa;
  --gradient: linear-gradient(135deg, #A280FF 0%, #7B68EE 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* Smooth page transitions */
body {
  opacity: 0;
  animation: pageLoad 0.5s ease forwards;
}

@keyframes pageLoad {
  to {
    opacity: 1;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s;
}

/* Base Section Styles */
section {
  padding: 80px 30px;
  max-width: 1400px;
  margin: auto;
}

/* Card Styles */
.card {
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(162, 128, 255, 0.2);
  border-color: rgba(162, 128, 255, 0.3);
}

.card h2 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

p {
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 15px;
  font-size: 15px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  text-decoration: underline;
}

/* Buttons */
button, .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(162, 128, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(162, 128, 255, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Form Elements */
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: white;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(162, 128, 255, 0.2);
}

/* Footer Styles */
footer {
  background: #0d0d0d;
  padding: 50px 30px 30px;
  margin-top: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-section p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.footer-section a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: 0.3s;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1400px;
  margin: auto;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 15px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 22px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Loading States */
.loading {
  text-align: center;
  padding: 50px;
  color: var(--muted);
}

.error {
  text-align: center;
  padding: 50px;
  color: #ff6b6b;
}

/* Smooth transitions for all interactive elements */
a, button, .btn, input, select, textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #7B68EE;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Selection styling */
::selection {
  background: var(--accent);
  color: white;
}

::-moz-selection {
  background: var(--accent);
  color: white;
}
