/**
 * CodeArena - Sorry Project Styles
 * Matching the original CodeArena branding and design system
 */

:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #3a0ca3;
  --accent-color: #4cc9f0;
  --text-color: #2b2d42;
  --text-light: #6c757d;
  --text-muted: #adb5bd;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --text-dark: #f8f9fa;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Navigation Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  text-decoration: none;
}

.brand-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.brand-accent {
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  animation: pulse 2s infinite;
}

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

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
  background-color: var(--bg-light);
}

/* Content Cards */
.content-card {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  padding: 2rem 2rem 1rem;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(58, 12, 163, 0.05));
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 0 auto;
  border-radius: 2px;
}

.card-body {
  padding: 2rem;
}

/* Thank You Section */
.gratitude-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  height: 100%;
}

.gratitude-item:hover {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(76, 201, 240, 0.05));
  transform: translateY(-5px);
}

.gratitude-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.gratitude-item h4 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.gratitude-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Apology Section */
.apology-section {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.02), rgba(58, 12, 163, 0.02));
}

.apology-card {
  border-left: 4px solid var(--primary-color);
}

.apology-content {
  text-align: center;
}

.apology-icon {
  font-size: 3rem;
  color: #ff6b6b;
  margin-bottom: 1.5rem;
}

.explanation-box {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
  text-align: left;
  border-left: 4px solid var(--accent-color);
}

.explanation-box h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.explanation-box p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Legacy Section */
.legacy-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.legacy-card .section-title {
  color: white;
}

.legacy-card .title-underline {
  background: linear-gradient(90deg, var(--accent-color), white);
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Final Message Section */
.final-message {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--accent-color);
}

.final-message h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.signature {
  font-style: italic;
  color: var(--text-light);
  margin-top: 2rem;
}

.signature strong {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-brand .brand-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.footer-tagline {
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-links h5 {
  color: white;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

.copyright {
  color: var(--text-muted);
  margin: 0;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

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

.fade-up {
  animation: fadeUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .gratitude-item {
    margin-bottom: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .final-message {
    padding: 2rem 1rem;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-icon {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .card-header {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .explanation-box {
    padding: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .content-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}