/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #34d399, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Search Section */
.search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
  position: relative;
}

.search-square {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.search-square:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.search-square i {
  color: white;
  font-size: 1.2rem;
}

.search-input {
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  color: #e2e8f0;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: rgba(30, 41, 59, 0.95);
}

.search-input::placeholder {
  color: #94a3b8;
}

/* Grid Section */
.src-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Styles */
.src-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.src-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 16px 16px 0 0;
}

.src-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.1);
}

.src-card:hover::before {
  height: 6px;
}

.src-title {
  margin-bottom: 1rem;
}

.src-title a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}

.src-title a:hover {
  color: #60a5fa;
}

.src-title a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  transition: width 0.3s ease;
}

.src-title a:hover::after {
  width: 100%;
}

.src-description {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.src-description code {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* GitHub Section */
.src-github {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.src-github .src-square {
  background: linear-gradient(135deg, #374151, #4b5563);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.src-github:hover .src-square {
  background: linear-gradient(135deg, #4b5563, #6b7280);
  transform: scale(1.1);
}

.src-github .src-square i {
  color: #e5e7eb;
  font-size: 1rem;
}

.src-github h3 a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.src-github h3 a:hover {
  color: #e5e7eb;
}

/* Day Section */
.src-day,
.src-day p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Tags Section */
.src-data-tag ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.src-data-tag li {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.src-data-tag li:hover {
  background: rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer i {
  color: #60a5fa;
  font-size: 1.1rem;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #60a5fa;
}

.copyleft {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.copyleft a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copyleft a:hover {
  color: #fbbf24;
}

.copyleft i {
  color: #fbbf24;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .src-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .src-card {
    padding: 1.5rem;
  }
  
  .search {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-input {
    max-width: 300px;
  }
  
  .footer ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .src-grid {
    grid-template-columns: 1fr;
  }
  
  .src-card {
    padding: 1rem;
  }
  
  .src-data-tag ul {
    justify-content: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}