/**
 * White Papers Page Styles
 * Extracted from page-white-papers.php inline <style> block
 *
 * @package Teleworld_AI_Theme
 * @since 1.1.0
 */

/* White Papers Page Styles */
.white-papers-page {
  padding-top: calc(var(--header-height) + 20px);
}

/* White Papers Hero */
.white-papers-hero {
  background: linear-gradient(
    135deg,
    #1e1b4b 0%,
    #312e81 25%,
    #1e293b 75%,
    #0f172a 100%
  );
  padding: 80px 0;
  text-align: center;
}

.white-papers-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

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

/* Featured Research Section */
.featured-research-section {
  padding: 100px 0;
}

.featured-research-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  background: rgba(30, 41, 59, 0.6);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-top: 3rem;
  transition: all 0.3s ease;
}

.featured-research-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.research-visual {
  text-align: center;
  position: relative;
}

.research-cover {
  width: 200px;
  height: 280px;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cover-icon {
  font-size: 4rem;
  color: white;
}

.research-badge {
  background: rgba(245, 158, 11, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.research-content h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.research-content p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.research-meta {
  margin-bottom: 2rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
}

.meta-label {
  color: #94a3b8;
  font-size: 0.9rem;
}

.meta-value {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
}

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

.research-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.research-btn.primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.research-btn.secondary {
  background: transparent;
  color: #8b5cf6;
  border: 2px solid #8b5cf6;
}

.research-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.research-btn.secondary:hover {
  background: #8b5cf6;
  color: white;
}

/* Research Categories Section */
.research-categories-section {
  padding: 100px 0;
  background: rgba(30, 41, 59, 0.3);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.category-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: rgba(139, 92, 246, 0.1);
}

.category-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.category-header h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin: 0;
  flex: 1;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paper-count {
  background: rgba(139, 92, 246, 0.3);
  color: #a855f7;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-content {
  padding: 2rem;
}

.paper-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.paper-item h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paper-item p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.paper-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.paper-date {
  color: #94a3b8;
  font-size: 0.8rem;
}

.paper-link {
  color: #8b5cf6;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.paper-link:hover {
  color: #a855f7;
}

.category-btn {
  display: block;
  text-align: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  text-decoration: none;
  border-radius: 0 0 20px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 -1px -1px -1px;
}

.category-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: white;
}

/* Research Impact Section */
.research-impact-section {
  padding: 100px 0;
}

.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.impact-stat {
  background: rgba(30, 41, 59, 0.6);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.impact-stat:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-description {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Recent Publications Section */
.recent-publications-section {
  padding: 100px 0;
  background: rgba(30, 41, 59, 0.3);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.publication-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.publication-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(139, 92, 246, 0.1);
}

.publication-type {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.publication-type.technical {
  background: rgba(139, 92, 246, 0.2);
  color: #a855f7;
}

.publication-type.industry {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.publication-type.ethics {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.publication-date {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.publication-content {
  padding: 2rem;
}

.publication-content h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.publication-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.publication-authors {
  margin-bottom: 1.5rem;
}

.authors-label {
  color: #94a3b8;
  font-size: 0.9rem;
}

.authors-list {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
}

.publication-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  color: #94a3b8;
  font-size: 0.8rem;
}

.publication-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.publication-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  color: white;
}

/* Newsletter Section */
.newsletter-section {
  padding: 100px 0;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.newsletter-text h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.newsletter-text p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}

.subscription-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subscription-form input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.subscription-form input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.subscription-form input::placeholder {
  color: #64748b;
}

.subscribe-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.newsletter-note {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured-research-card {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .research-actions {
    flex-direction: column;
  }

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

  .subscription-form {
    flex-direction: column;
  }

  .publication-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .white-papers-hero {
    padding: 60px 0;
  }

  .featured-research-section,
  .research-categories-section,
  .research-impact-section,
  .recent-publications-section,
  .newsletter-section {
    padding: 80px 0;
  }

  .featured-research-card,
  .category-content,
  .publication-content {
    padding: 2rem 1.5rem;
  }

  .newsletter-text h2 {
    font-size: 2rem;
  }
}

/* ---------- 360px (Extra Small Mobile) ---------- */
@media (max-width: 360px) {
  .white-papers-page {
    padding-top: var(--header-height);
  }

  .white-papers-hero {
    padding: 30px 0;
  }

  .white-papers-hero h1 {
    font-size: 1.5rem;
  }

  .featured-research-section,
  .research-categories-section,
  .research-impact-section,
  .recent-publications-section,
  .newsletter-section {
    padding: 40px 0;
  }

  .featured-research-card,
  .category-content,
  .publication-content {
    padding: 1.25rem;
  }
}

/* ---------- Landscape ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .white-papers-page {
    padding-top: calc(var(--header-height) + 8px);
  }

  .white-papers-hero {
    padding: 25px 0;
  }

  .featured-research-section,
  .research-categories-section,
  .research-impact-section,
  .recent-publications-section,
  .newsletter-section {
    padding: 25px 0;
  }
}

/* ---------- Safe-area Insets ---------- */
@supports (padding: env(safe-area-inset-left)) {
  .featured-research-section,
  .research-categories-section,
  .research-impact-section,
  .recent-publications-section,
  .newsletter-section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  @media (max-width: 480px) {
    .featured-research-section,
    .research-categories-section,
    .research-impact-section,
    .recent-publications-section,
    .newsletter-section {
      padding-left: max(0.75rem, env(safe-area-inset-left));
      padding-right: max(0.75rem, env(safe-area-inset-right));
    }
  }
}
