/* === src/index.css === */
:root {
  --primary: #9b1958; /* Rich Raspberry */
  --primary-hover: #b81d68;
  --secondary: #ff8a65; /* Soft Orange/Peach accent */
  --bg-color: #fcf9f9; /* Off-white with a hint of warmth */
  --text-dark: #2C2C2C;
  --text-light: #6e6b6c;
  --white: #FFFFFF;
  --shadow: 0 10px 40px rgba(155, 25, 88, 0.08);
  --shadow-hover: 0 20px 50px rgba(155, 25, 88, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --font-script: 'Dancing Script', cursive;
  --font-heading: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --radius: 16px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, hsla(339, 72%, 95%, 1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(28, 100%, 94%, 1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-dark);
}

.brand-text {
  font-family: var(--font-script);
  background: linear-gradient(135deg, var(--primary), #FF4D85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 15px 20px 15px 0;
  display: inline-block;
}

/* UI Elements */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #FF4D85);
  color: var(--white);
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 77, 133, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 77, 133, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(155, 25, 88, 0.2);
}

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

/* Navbar */
.navbar-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:not(.btn-secondary) {
  position: relative;
}

.nav-links a:not(.btn-secondary):hover {
  color: var(--primary);
}

.nav-links a:not(.btn-secondary)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:not(.btn-secondary):hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  padding: 40px 0;
}
.hero-content {
  flex: 1;
  max-width: 600px;
}
.hero-title {
  font-size: 4.5rem;
  margin-bottom: 25px;
  line-height: 1.1;
  background: linear-gradient(135deg, #1a1a1a, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 45px;
  line-height: 1.8;
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}
.hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffd1df, #ffe3d1);
  border-radius: 30px;
  transform: rotate(-4deg);
  z-index: -1;
  transition: var(--transition);
}
.hero-image img {
  max-width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: var(--transition);
  border: 8px solid var(--white);
}
.hero-image:hover::before {
  transform: rotate(0deg);
}
.hero-image:hover img {
  transform: rotate(0deg) scale(1.02);
}

/* Grid & Cards */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.02);
}
.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}
.card-img {
  height: 220px;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: var(--transition);
}
.card:hover .card-img::after {
  opacity: 1;
}
.card-body {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.card-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}
.card-footer {
  margin-top: auto;
}

/* Badge for Digital vs Physical */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}
.badge.digital {
  background: #E8F0FE;
  color: #1A73E8;
}
.badge.physical {
  background: #FCE8E6;
  color: #D93025;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(216, 30, 91, 0.1);
}

/* Auth Page */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #ffe6ee, var(--bg-color));
}
.auth-box {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  text-align: center;
}

/* Dashboard */
.dashboard {
  padding: 40px 0;
}
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 10px;
  margin-top: 15px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
}
/* Responsive Design */
@media (max-width: 768px) {
  /* Typography */
  .brand-text {
    font-size: 2.5rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }

  /* Layout */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  .hero-content {
    margin-bottom: 30px;
  }
  .hero-content > div {
    justify-content: center;
    flex-direction: column;
  }
  .hero-content > div > a {
    width: 100%;
    text-align: center;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .course-detail-grid {
    grid-template-columns: 1fr;
  }

  /* Components */
  .auth-box {
    padding: 30px 20px;
  }
  
  /* Utilities */
  .container {
    padding: 0 15px;
  }
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
.dashboard-card {
  display: flex;
  flex-direction: row;
  min-height: 200px;
}
.dashboard-card-img {
  width: 200px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .dashboard-card {
    flex-direction: column;
  }
  .dashboard-card-img {
    width: 100%;
    height: 200px;
  }
}


/* === src/components/Navbar.css === */
.navbar-container {
  /* Inherited from index.css glassmorphism */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.cart-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: var(--transition);
  padding: 5px;
}

.cart-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(155, 25, 88, 0.4);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 5px;
  border-radius: 50%;
}

.icon-btn:hover {
  color: var(--primary);
  background: rgba(155, 25, 88, 0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 101;
  transition: var(--transition);
}
.mobile-menu-btn:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 30px;
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }
  
  .user-menu {
    flex-direction: column;
    gap: 20px;
  }
}


/* === src/components/Cart.css === */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

.cart-empty {
  text-align: center;
  color: var(--text-light);
  margin-top: 50px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  background: var(--white);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  align-items: center;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 0 0 5px 0;
}

.item-price {
  font-weight: bold;
  color: var(--primary);
  margin: 0 0 10px 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 20px;
  width: fit-content;
}

.quantity-controls button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-dark);
}

.remove-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  padding: 5px;
  transition: var(--transition);
}

.remove-btn:hover {
  transform: scale(1.1);
}

.cart-footer {
  padding: 25px;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.checkout-btn {
  width: 100%;
  text-align: center;
}
@media (max-width: 768px) {
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}


/* === src/components/Footer.css === */
.footer {
  background-color: var(--white);
  border-top: 1px solid rgba(138, 19, 82, 0.1);
  padding-top: 60px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.contact-list li svg {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: var(--text-dark);
  transition: var(--transition);
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-light);
  font-size: 0.9rem;
}


/* === src/pages/Home.css === */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1528372444006-1bc005391e4a?auto=format&fit=crop&q=80&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(155,25,88,0.6) 100%);
  z-index: 1;
}

/* Decorative elements */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,138,101,0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  animation: slideUp 1s ease-out forwards;
}

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

.hero-text {
  max-width: 650px;
  color: white;
}

.hero-title {
  color: white;
  margin-bottom: 20px;
  font-size: 3.5rem;
  letter-spacing: -1px;
}

.hero-brand {
  font-size: 5.5rem;
  display: block;
  margin-top: 5px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  background: linear-gradient(to right, #ffffff, #ffb3c6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.35rem;
  margin-bottom: 45px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-buttons .btn-primary {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.hero-btn-secondary {
  border-color: rgba(255,255,255,0.5);
  color: white;
  padding: 14px 32px;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}

.hero-btn-secondary:hover {
  background-color: white;
  color: var(--primary);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 75vh;
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-text {
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-brand {
    font-size: 4rem;
  }

  .hero-buttons {
    flex-direction: column;
    justify-content: center;
  }
  
  .hero-buttons > * {
    width: 100%;
    text-align: center;
  }
}
