@import url('./auth.css');
@import url('./loader.css');
@import url('./modals.css');
@import url('./admin.css');

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

:root {
  /* Colors */
  --bg-dark: #0f111a;
  --bg-card: rgba(30, 33, 46, 0.6);
  --bg-card-hover: rgba(45, 50, 70, 0.8);
  --primary: #9d4edd;
  --primary-hover: #c77dff;
  --text-main: #f8f9fa;
  --text-muted: #adb5bd;
  --border-light: rgba(255, 255, 255, 0.1);
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  /* Geometry & Glassmorphism */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --glass-blur: blur(12px);
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(157, 78, 221, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(199, 125, 255, 0.1), transparent 25%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

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

a:hover {
  color: var(--primary-hover);
}

/* Glass Container Base */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
}

/* Layout Elements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  flex: 1;
  padding: 40px 0;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  background: rgba(15, 17, 26, 0.8);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  background: linear-gradient(to right, var(--primary-hover), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-hover);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(157, 78, 221, 0.6);
  color: #fff;
}

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

.btn-outline:hover {
  background: rgba(157, 78, 221, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-main);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* Grid & Cards (Mangas) */
.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 30px;
  background: var(--primary);
  border-radius: 5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}

.manga-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg-card);
}

.manga-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.manga-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.manga-info {
  padding: 15px;
}

.manga-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manga-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-manga {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-success);
}

.badge-manhwa {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-warning);
}

.badge-manhua {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-danger);
}

.badge-novela {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

/* Footer */
footer {
  background: rgba(15, 17, 26, 0.9);
  padding: 40px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  width: 100%;
}

/* Fix for horizontal scroll and Navbar/Footer width */
.navbar {
  width: 100%;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-image {
    width: 100%;
    height: 250px;
  }
}
