/* Modern Tech Article Styles - 2024 */

/* CSS Variables for consistent theming */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
  --shadow-medium: 0 15px 35px rgba(31, 38, 135, 0.2);
  --shadow-heavy: 0 25px 50px rgba(31, 38, 135, 0.3);
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg-primary: #f7fafc;
  --bg-secondary: #edf2f7;
  --border-color: rgba(226, 232, 240, 0.8);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding-top: 0;
  margin: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Article Container */
.article-container {
  margin-top: 100px;
  min-height: calc(100vh - 100px);
  padding-top: 20px;
}

/* Article Content */
.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.article-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

/* Article Header */
.article-header {
  position: static;
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  z-index: auto;
  float: none;
  clear: both;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.category {
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-light);
}

.date,
.read-time {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date::before {
  content: '📅';
}

.read-time::before {
  content: '⏱️';
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0;
  background: var(--dark-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.article-image {
  margin: 2rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  position: relative;
}

.article-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.article-image:hover img {
  transform: scale(1.05);
}

/* Article Body */
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.article-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  position: relative;
}

.article-body ul li::marker {
  content: '▶';
  color: #667eea;
}

.article-body strong {
  font-weight: 700;
  color: var(--text-primary);
}

.article-body code {
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  color: #e53e3e;
  border: 1px solid var(--border-color);
}

/* Special Content Blocks */
.highlight-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
}

.highlight-box h3 {
  margin-top: 0;
  color: #667eea;
}

.process-overview {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.process-overview h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.process-overview ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.process-overview ol li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
}

.process-overview ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Exchange Review Cards */
.exchange-review {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.exchange-review:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.exchange-review::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.rating {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f6ad55;
  margin-bottom: 1rem;
}

.referral-code {
  background: var(--primary-gradient);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  text-align: center;
}

.referral-code code {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
}

/* Tables */
.comparison-table {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table th {
  background: var(--primary-gradient);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.comparison-table tr:hover {
  background: var(--bg-primary);
}

/* Step Guides */
.registration-guide,
.security-guide,
.kyc-preparation,
.kyc-process,
.funding-guide,
.basic-trading,
.step-guide {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
  border-left: 4px solid #667eea;
}

.pro-tip,
.security-warning,
.kyc-tips,
.p2p-safety {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
  border: 1px solid rgba(72, 187, 120, 0.2);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.security-warning {
  background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(229, 62, 62, 0.1) 100%);
  border-color: rgba(245, 101, 101, 0.2);
}

/* Payment Methods */
.payment-method {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

/* Pros and Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.pros,
.cons {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
}

.pros {
  border-left: 4px solid #48bb78;
}

.cons {
  border-left: 4px solid #f56565;
}

.pros h4 {
  color: #48bb78;
  margin-top: 0;
}

.cons h4 {
  color: #f56565;
  margin-top: 0;
}

/* Trading Types */
.trading-types {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
}

/* Advanced Security */
.advanced-security {
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.05) 0%, rgba(74, 85, 104, 0.05) 100%);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

/* Card Funding */
.card-funding {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

/* Bank Transfer */
.bank-transfer {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.share-label {
  font-weight: 600;
  color: var(--text-primary);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-content {
  animation: slideInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .article-content {
    margin: 0 15px 2rem;
    padding: 1.5rem;
  }
  
  .pros-cons {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .article-container {
    margin-top: 70px;
  }
  
  .article-content {
    margin: 0 10px 2rem;
    padding: 1rem;
  }
  
  .article-header h1 {
    font-size: 1.75rem;
  }
  
  .article-excerpt {
    font-size: 1rem;
  }
  
  .article-body {
    font-size: 1rem;
  }
  
  .article-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }
  
  .article-body h3 {
    font-size: 1.25rem;
  }
  
  .article-image img {
    height: 250px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .social-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .exchange-review,
  .registration-guide,
  .security-guide,
  .kyc-preparation,
  .kyc-process,
  .funding-guide,
  .basic-trading,
  .step-guide {
    padding: 1.5rem;
  }
  
  .highlight-box,
  .process-overview {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-content {
    margin: 0 5px 1rem;
    padding: 1rem;
  }
  
  .article-header h1 {
    font-size: 1.5rem;
  }
  
  .article-body h2 {
    font-size: 1.25rem;
  }
  
  .article-image img {
    height: 200px;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .exchange-review,
  .highlight-box,
  .process-overview {
    padding: 1rem;
  }
  
  .referral-code {
    padding: 1rem;
  }
  
  .referral-code code {
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --border-color: rgba(255, 255, 255, 0.1);
  }
  
  .article-content {
    background: #2d3748;
    color: var(--text-primary);
  }
  
  .exchange-review,
  .registration-guide,
  .security-guide,
  .kyc-preparation,
  .kyc-process,
  .funding-guide,
  .basic-trading,
  .step-guide,
  .payment-method,
  .pros,
  .cons,
  .card-funding,
  .bank-transfer {
    background: #2d3748;
    color: var(--text-primary);
  }
  
  .comparison-table table {
    background: #2d3748;
  }
  
  header {
    background: rgba(45, 55, 72, 0.95);
  }
}

/* Print styles */
@media print {
  .nav-toggle,
  .social-share,
  .referral-code {
    display: none !important;
  }
  
  .article-content {
    box-shadow: none;
    margin: 0;
  }
  
  .article-body {
    font-size: 12pt;
    line-height: 1.6;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.share-btn:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-gradient: linear-gradient(135deg, #000080 0%, #000040 100%);
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #000000;
  }
  
  .article-content {
    border: 2px solid #000000;
  }
}

/* Footer Styles */
footer {
  background: #1a202c;
  color: white;
  padding: 40px 0 20px;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-section p {
  color: #a0aec0;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-section strong {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
  text-align: center;
  color: #a0aec0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Footer responsive design */
@media (max-width: 768px) {
  footer {
    padding: 30px 0 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 0 10px;
  }
  
  .footer-bottom {
    padding-left: 10px;
    padding-right: 10px;
  }
}