/* =========================================================
   d20-index.css
   Homepage-specific styles for Docentes 2.0 OJS
   Extracted from indexJournal.tpl inline <style> block
   Scope: #revista-component-wrapper, .indexaciones-section
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   Design tokens (scoped to #revista-component-wrapper)
   ───────────────────────────────────────────────────────── */
#revista-component-wrapper {
  --font-base: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --size-base: 16px;
  --line-height: 1.6;

  --c-primary: var(--d20-purple, #3f264d);
  --c-primary-h: var(--d20-purple-700, #2f1b39);
  --c-accent: #FFC107;
  --c-white: #ffffff;
  --c-dark: #212529;
  --c-gray-100: #f5f5f5;
  --c-gray-200: #e0e0e0;
  --c-gray-600: #6c757d;
  --c-success: #198754;
  --c-danger: #dc3545;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 50px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);

  font-family: var(--font-base);
  color: #333;
  background: #fff;
}

/* ─────────────────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────────────────── */
@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
  70%  { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* ─────────────────────────────────────────────────────────
   Animated background
   ───────────────────────────────────────────────────────── */
.revista-limitless-bg {
  background: linear-gradient(-45deg, #ffffff, #f7f7f7, #fff8e1, #ffffff);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: relative;
  overflow: hidden;
  padding: var(--sp-5) 0;
}

/* ─────────────────────────────────────────────────────────
   Glass card
   ───────────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--r-md);
}

/* ─────────────────────────────────────────────────────────
   Editorial process step cards
   ───────────────────────────────────────────────────────── */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #fff;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.step-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Accordion details (transition-based) */
.step-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  width: 100%;
  padding-left: 50px;
  transition: all 0.4s ease-in-out;
}

.step-card.active .step-details {
  max-height: 500px;
  opacity: 1;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.step-details ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.step-details li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--c-gray-600);
}

.step-details li::before {
  content: "\2022";
  color: var(--c-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.step-toggle-icon {
  color: var(--c-gray-600);
  transition: transform 0.3s ease;
  margin-left: 10px;
  margin-top: 5px;
}

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

/* ─────────────────────────────────────────────────────────
   Step number circle + header layout
   ───────────────────────────────────────────────────────── */
.step-number {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.step-header {
  display: flex;
  align-items: flex-start;
  width: 100%;
  justify-content: space-between;
}

.step-header-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.step-header-content strong {
  margin-top: 0;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────
   Utility overrides for OJS container
   ───────────────────────────────────────────────────────── */
#revista-component-wrapper .text-center { text-align: center; }

#revista-component-wrapper .container-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  #revista-component-wrapper .container-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Reset headings inside this component */
#revista-component-wrapper h1,
#revista-component-wrapper h2,
#revista-component-wrapper h4,
#revista-component-wrapper h5 {
  color: var(--c-dark);
  margin-top: 0;
}

/* Links */
.footer-social-row a { text-decoration: none; }
.text-link { text-decoration: none; color: var(--c-primary); transition: color 0.3s; }
.text-link:hover { color: var(--c-primary-h); }

/* ─────────────────────────────────────────────────────────
   Homepage section containers (replace inline style= attrs)
   ───────────────────────────────────────────────────────── */
.d20-revista-header {
  margin-bottom: var(--sp-6);
}

.d20-revista-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.d20-revista-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-gray-600);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.d20-revista-desc {
  margin: 0 auto;
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--c-gray-600);
}

.d20-revista-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.d20-glass-body {
  padding: var(--sp-5);
}

.d20-glass-heading {
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
  font-weight: 700;
}

.d20-review-callout {
  background: linear-gradient(to right, #fff8e1, #fff);
  border-left: 4px solid var(--c-accent);
  padding: var(--sp-3);
  border-radius: 4px;
  margin-bottom: var(--sp-4);
}

.d20-review-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: #856404;
}

.d20-quicklinks-title {
  margin-bottom: var(--sp-3);
  font-weight: 600;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.d20-quicklinks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.d20-quicklinks a {
  display: flex;
  align-items: center;
}

.d20-quicklinks i {
  color: var(--c-primary);
  margin-right: 10px;
  width: 16px;
}

.d20-process-title {
  margin-bottom: var(--sp-4);
  color: var(--c-dark);
  font-weight: 700;
  text-align: center;
}

.d20-process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.d20-step-label {
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.d20-step-desc {
  font-size: 0.9rem;
  margin: 0;
  color: var(--c-gray-600);
}

.d20-cta-footer {
  margin-top: var(--sp-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.d20-cta-submit {
  font-size: 1.2rem;
  padding: 1rem 3rem;
  animation: pulse-glow 2s infinite;
  margin-bottom: var(--sp-5);
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-dark) !important;
}

/* ─────────────────────────────────────────────────────────
   CURRENT ISSUE — Premium section header
   (Phase 6: replaces legacy W3CSS inline span)
   ───────────────────────────────────────────────────────── */
.d20-section-header {
  display: block;
  margin: 0;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--d20-purple, #3f264d) 0%, var(--d20-purple-700, #2f1b39) 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.3;
  border-bottom: 3px solid var(--d20-gold, #c9a227);
  border-radius: 12px 12px 0 0;
}

/* ─────────────────────────────────────────────────────────
   INDEXACIONES — Static logo grid (Phase 5)
   Replaces the Bootstrap 3 carousel with always-visible logos
   ───────────────────────────────────────────────────────── */
.d20-section-header--index {
  display: block;
  margin: 0 0 1.5rem;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--d20-purple, #3f264d) 0%, var(--d20-purple-700, #2f1b39) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--d20-gold, #c9a227);
  border-radius: 12px 12px 0 0;
}

.d20-index-desc {
  margin: 0 auto 1.5rem;
  max-width: 900px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #6c757d;
  text-align: center;
}

.d20-index-desc a {
  color: var(--d20-purple, #3f264d);
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
}

.d20-index-desc a:hover {
  color: var(--d20-gold, #c9a227);
  text-decoration: underline;
}

.d20-index-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
  padding: 24px 16px 28px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-md, 0 4px 6px rgba(50, 50, 93, 0.11));
}

.d20-index-logos a {
  display: inline-flex;
  align-items: center;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.d20-index-logos img {
  max-height: 48px;
  width: auto;
  filter: grayscale(25%);
  opacity: 0.88;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.d20-index-logos a:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .d20-index-logos {
    gap: 18px 20px;
    padding: 18px 12px 22px;
  }

  .d20-index-logos img {
    max-height: 40px;
  }
}
