/**
 * HTG International Summer School Platform
 * Premium Shared Styles
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Colors - Sophisticated Palette */
  --color-primary: #0a1628;
  --color-primary-light: #1a2d4a;
  --color-accent: #c9a962;
  --color-accent-light: #dfc89a;
  --color-bg: #fafaf8;
  --color-bg-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-text-muted: #9a9a9a;
  --color-border: #e8e6e1;
  --color-success: #2d6a4f;
  --color-error: #9b2c2c;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 96px;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 600; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

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

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn-accent:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--color-text);
  color: white;
}

/* Cards */
.card {
  background: var(--color-bg-white);
  border-radius: 4px;
  padding: var(--spacing-md);
  transition: all var(--transition-smooth);
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0;
}

/* Form Elements */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 52px;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.form-textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.3px;
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp var(--transition-slow) ease forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Utility */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .section {
    padding: var(--spacing-lg) 0;
  }
}
