/* vocab-practice.css - Specific Styles for Vocabulary Practice Page */

/* Overriding or extending primary theme variables for vocab page if needed */
/* Note: These will override variables from style.css. If you want a consistent Azure Blue theme,
   you should define Azure Blue in style.css and ensure these don't conflict or are removed. */
:root {
  --primary: #4361ee; /* Azure Blue theme's primary color [cite: 2025-07-24] */
  --secondary: #3f37c9;
  --accent: #4895ef;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --warning: #f72585;
  --card-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Body Background for Vocab Page */
/* This specific gradient might need adjustment to align with the overall Azure Blue theme */
body {
  background: linear-gradient(135deg, #e0f7fa, #bbdefb);
  padding: 20px; /* Note: This might interfere with global body padding/margins */
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1497636577773-f1231844b336?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920') center/cover no-repeat;
  opacity: 0.05;
  z-index: -1;
}

/* Container for Vocab Page */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* User Status Badge (specific to vocab page's initial layout) */
.user-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 10;
}
.user-status a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.user-status a:hover {
    text-decoration: underline;
}

/* Header (Nested) - This was from the original vocab file, review its need with main header */
header {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
}

/* Logo (Nested) - This was from the original vocab file, review its need with main header */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}

.logo i {
  font-size: 40px;
  color: white;
}

/* Stats Section (for vocab page's initial layout) */
.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 15px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  min-width: 120px;
  flex: 1;
  max-width: 160px;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* New stamp styling (for vocab page's 'NEW' badge) */
.new-stamp {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff4d4d; /* Red color */
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  transform: rotate(15deg);
  transform-origin: center;
  animation: bounce 1s infinite alternate;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
  0% {
    transform: scale(1) rotate(15deg);
  }
  100% {
    transform: scale(1.05) rotate(15deg);
  }
}

/* Support Card (vocab page specific) */
.support-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  margin: 25px auto 40px;
  max-width: 600px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.support-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.support-card .icon {
  font-size: 3.5rem;
  color: #ff6b9d; /* This might need to align with Azure theme's accent color */
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

.support-card .text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

/* Content Grid (for collections/tests) */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

/* Collection Card Styles */
.collection-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(67, 97, 238, 0.1); /* Uses a primary-related color */
}

.collection-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.collection-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.collection-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.collection-icon i {
  font-size: 24px;
}

.collection-title {
  font-size: 1.4rem;
  font-weight: 600;
  flex-grow: 1;
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.collection-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.collection-card.active .collection-content {
  max-height: 1000px; /* Sufficiently large value */
}

.collection-card.active .toggle-icon {
  transform: rotate(180deg);
}

/* Test Item Styles */
.test-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.test-item:last-child {
  border-bottom: none;
}

.test-item:hover {
  background: rgba(67, 97, 238, 0.05); /* Uses primary color */
  padding-left: 10px;
}

.test-icon {
  width: 35px;
  height: 35px;
  background: rgba(67, 97, 238, 0.1); /* Uses primary color */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.test-icon i {
  color: var(--primary);
  font-size: 14px;
}

.test-title {
  font-weight: 500;
  font-size: 1.1rem;
}

.passage-list {
  padding-left: 20px;
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.test-item.active .passage-list {
  max-height: 500px; /* Sufficiently large value */
}

.passage-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  transition: var(--transition);
}

.passage-item:hover {
  background: rgba(72, 149, 239, 0.05); /* Uses accent color */
  padding-left: 5px;
}

.passage-icon {
  width: 26px;
  height: 26px;
  background: rgba(72, 149, 239, 0.1); /* Uses accent color */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.passage-icon i {
  color: var(--accent);
  font-size: 12px;
}

.passage-link {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  flex-grow: 1;
  transition: var(--transition);
}

.passage-link:hover {
  color: var(--primary);
}

.passage-link i {
  margin-left: auto;
  color: var(--accent);
  transition: var(--transition);
}

.passage-link:hover i {
  transform: translateX(5px);
}

/* Footer specific to vocab page (motivation quote) */
.footer {
  text-align: center;
  padding: 30px 0;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 20px;
}

.motivation {
  font-style: italic;
  margin-top: 10px;
  color: var(--primary);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Media Queries for Vocab Page Elements */
@media (max-width: 768px) {
  .stats {
    gap: 10px;
  }

  .stat-card {
    min-width: 100px;
    padding: 12px 15px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stat-card {
    min-width: 90px;
    padding: 10px;
  }

  .stat-value {
    font-size: 1.6rem;
  }
}