/* Journal Subscription Page - Modern Design */
.journals-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Section */
.journals-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 20px;
  color: white;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.header-content {
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-title i {
  font-size: 2.5rem;
  color: #fbbf24;
}

.page-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Search and Filter Section */
.search-filter-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  color: #4b5563;
}

.filter-btn:hover {
  border-color: #3b82f6;
  background: #f8faff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Journal Stats */
.journal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #f3f4f6;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.stat-label {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* Category Sections */
.category-section {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-title i {
  color: #3b82f6;
  font-size: 1.8rem;
}

.category-description {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Journals Grid */
.journals-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.journal-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}

.journal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.journal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.journal-card:hover::before {
  transform: scaleX(1);
}

/* Journal Header */
.journal-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.journal-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.journal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-logo i {
  font-size: 1.5rem;
  color: #6b7280;
}

.journal-title-section {
  flex: 1;
}

.journal-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.journal-publisher {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

.journal-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.metric-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.if-badge {
  background: #fef3c7;
  color: #92400e;
}

.quartile-badge {
  color: white;
}

.q1 {
  background: #065f46;
}

.q2 {
  background: #059669;
}

.q3 {
  background: #d97706;
}

.q4 {
  background: #dc2626;
}

.metric-label {
  font-size: 0.7rem;
  opacity: 0.8;
}

.metric-value {
  font-weight: 700;
}

/* Journal Content */
.journal-content {
  margin-bottom: 2rem;
}

.journal-description {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.journal-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.keyword-tag {
  background: #eff6ff;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #bfdbfe;
}

/* Journal Footer */
.journal-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
}

.journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.meta-item i {
  font-size: 0.8rem;
}

.access-open {
  color: #059669;
  font-weight: 500;
}

.journal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.action-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.action-btn.secondary {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.action-btn.secondary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* Subscription Notice */
.subscription-notice {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  margin-top: 3rem;
}

.notice-content h3 {
  color: #1f2937;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.notice-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .journals-container {
    padding: 1rem;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .search-filter-section {
    padding: 1.5rem;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
  
  .journals-row {
    grid-template-columns: 1fr;
  }
  
  .journal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .journal-metrics {
    align-items: flex-start;
    flex-direction: row;
  }
  
  .journal-actions {
    flex-direction: column;
  }
  
  .action-btn {
    text-align: center;
    justify-content: center;
  }
}

/* Animation */
.journal-card {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .journals-container {
    background: #1a202c;
    color: #e2e8f0;
  }
  
  .journal-card,
  .stat-card,
  .search-filter-section,
  .subscription-notice {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .journal-title,
  .category-title,
  .notice-content h3 {
    color: #e2e8f0;
  }
  
  .journal-description,
  .category-description,
  .notice-content p {
    color: #a0aec0;
  }
  
  .search-input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }
  
  .filter-btn {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
  }
}
