/* Import Components */
@import 'components/header.css';
@import 'components/slot-sites.css';
@import 'components/slot-guide.css';
@import 'components/slot-odds.css';
@import 'components/slot-dictionary.css';

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: #1e293b;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
  color: #2563eb;
}

h5 {
  font-size: 1.25rem;
  color: #3b82f6;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1em;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* Main Content */
main {
  min-height: calc(100vh - 70px);
  padding: 2rem 0;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 2.5rem;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #4f46e5, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Decorative Elements for Hero */
.hero::before, .hero::after {
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(79, 70, 229, 0.1) 0%, transparent 35%);
  animation: rotate 30s linear infinite;
}

/* Glowing dot animations */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.3) 0%, transparent 5%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 5%),
    radial-gradient(circle at 30% 90%, rgba(124, 58, 237, 0.3) 0%, transparent 5%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.3) 0%, transparent 5%);
  pointer-events: none;
  z-index: 1;
}

/* Features Section */
.features {
  margin-bottom: 5rem;
  padding: 0 1rem;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #1e293b;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #3b82f6);
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 3rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s ease;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #4f46e5 0%, #3b82f6 100%);
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 90% 10%, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
  z-index: -1;
}

.feature-card h3 {
  font-size: 1.6rem;
  color: #1e293b;
  margin-bottom: 1.2rem;
  text-align: left;
  position: relative;
  display: inline-block;
}

.feature-card h3::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 12px;
  z-index: -1;
  transform: rotate(10deg);
}

.feature-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1.05rem;
  text-align: left;
  margin-bottom: 0;
}

/* Recommended Sites Section */
.recommended-sites {
  margin-bottom: 4rem;
}

.recommended-sites h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.recommended-sites > p {
  text-align: center;
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 3rem;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Keyboard Navigation Enhancement */
.keyboard-navigation *:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Form Error States */
.error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Lazy Loading Images */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Footer Styles - 개선됨 */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  margin-top: 4rem;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

/* Footer Top Section */
.footer-top {
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Footer About Section */
.footer-about {
  padding-right: 2rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1.2rem;
  display: inline-block;
  position: relative;
}

.footer-logo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #3b82f6);
  border-radius: 3px;
}

.footer-description {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Footer Links Columns */
.footer-links h3,
.footer-categories h3,
.footer-support h3 {
  color: #f8fafc;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h3::after,
.footer-categories h3::after,
.footer-support h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #3b82f6;
}

.footer-links ul,
.footer-categories ul,
.footer-support ul {
  list-style: none;
}

.footer-links li,
.footer-categories li,
.footer-support li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-categories a,
.footer-support a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 1rem;
}

.footer-links a:hover,
.footer-categories a:hover,
.footer-support a:hover {
  color: #60a5fa;
  text-decoration: none;
  transform: translateX(5px);
}

.footer-links a::before,
.footer-categories a::before,
.footer-support a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #3b82f6;
  opacity: 0.7;
}

/* Responsible Gaming Section */
.footer-responsible-gaming {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.2);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.safety-badge {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-responsible-gaming p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #cbd5e1;
  text-decoration: none;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-about {
    grid-column: span 2;
    padding-right: 0;
    margin-bottom: 1rem;
  }
  
  .footer-responsible-gaming {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }
  
  .safety-badge {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .footer-top {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-about {
    grid-column: span 1;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-top {
    padding: 2.5rem 0 1.5rem;
  }
  
  .footer-grid {
    gap: 1.5rem;
  }
  
  .footer-logo {
    font-size: 1.5rem;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1.5rem;
    margin-bottom: 3rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.15rem;
  }
  
  .features h2,
  .recommended-sites h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  
  .feature-card h3 {
    font-size: 1.5rem;
  }
  
  .sites-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
    margin-bottom: 2.5rem;
  }
  
  .hero h1 {
    font-size: 2.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .features h2,
  .recommended-sites h2 {
    font-size: 1.75rem;
  }
  
  .feature-card {
    padding: 2.5rem 1.25rem 1.25rem;
  }
  
  .feature-card h3 {
    font-size: 1.4rem;
  }
  
  .features {
    margin-bottom: 3rem;
  }
  
  .recommended-sites {
    margin-bottom: 3rem;
  }
}
