/* einvoicing.css - Custom styles for E-Invoicing article */

/* Article Hero Section */
.article-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

.article-category {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Quick Navigation */
.quick-nav {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.quick-nav h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  color: #2c3e50;
  text-decoration: none;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: #3498db;
}

.nav-card i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.nav-card span {
  font-weight: 500;
}

/* Content Sections */
.content-section {
  margin: 3rem 0;
}

.content-section h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.point-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.point-icon {
  width: 60px;
  height: 60px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.point-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.expert-tip {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
}

.expert-tip h3 {
  color: #2196f3;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ERP Ranking Cards */
.erp-ranking {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.erp-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.erp-header {
  background: #2c3e50;
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.erp-rank {
  background: #3498db;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.erp-header h3 {
  color: white;
  margin: 0;
}

.erp-body {
  padding: 1.5rem;
}

.erp-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pros h4, .cons h4 {
  margin-bottom: 0.75rem;
  color: #2c3e50;
}

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
}

.pros li, .cons li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pros i {
  color: #28a745;
}

.cons i {
  color: #dc3545;
}

.erp-details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.detail-row {
  display: flex;
  margin-bottom: 0.5rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 600;
  min-width: 120px;
  color: #2c3e50;
}

.detail-value {
  color: #495057;
}

.erp-verdict {
  background: #e3f2fd;
  border-radius: 8px;
  padding: 1rem;
  font-style: italic;
}

.erp-verdict p {
  margin: 0;
}

/* Comparison Table */
.comparison-table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.comparison-table th {
  background: #2c3e50;
  color: white;
  padding: 1rem;
  text-align: left;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.comparison-table tr:nth-child(even) {
  background: #f8f9fa;
}

.comparison-table tr:hover {
  background: #e9ecef;
}

/* Recommendations */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.recommendation-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.rec-icon {
  width: 60px;
  height: 60px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.recommendation-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.recommendation-card ul {
  text-align: left;
  list-style: none;
  padding: 0;
}

.recommendation-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.recommendation-card li:before {
  content: "•";
  color: #3498db;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.key-takeaways {
  background: #e3f2fd;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.key-takeaways h3 {
  color: #2196f3;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key-takeaways ul {
  list-style: none;
  padding: 0;
}

.key-takeaways li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.key-takeaways li:before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Final Word */
.final-word {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
}

.final-ranking {
  margin: 2rem 0;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rank-item:last-child {
  margin-bottom: 0;
}

.rank-number {
  background: #3498db;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.rank-content h3 {
  margin: 0 0 0.25rem;
  color: #2c3e50;
}

.rank-content p {
  margin: 0;
  color: #6c757d;
}

.cta-box {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Disclaimer */
.disclaimer {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 2rem;
}

.disclaimer h2 {
  color: #856404;
}

.disclaimer-content {
  color: #856404;
}

/* Related Articles */
.related-articles {
  margin: 3rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.related-card {
  display: block;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-card h3 {
  padding: 1rem;
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.read-more {
  display: block;
  padding: 0 1rem 1rem;
  color: #3498db;
  font-weight: 500;
}

/* Sidebar Widgets */
.toc-widget {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.toc-widget h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: #495057;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.2s ease;
}

.toc-list a:hover {
  color: #3498db;
  padding-left: 0.5rem;
}

.toc-list li:last-child a {
  border-bottom: none;
}

.subscribe-widget, .consultation-widget {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.subscribe-widget h3, .consultation-widget h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscribe-form input {
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
}

.subscribe-form button {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-form button:hover {
  background: #2980b9;
}

.consultation-widget .btn {
  width: 100%;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }
  
  .erp-pros-cons {
    grid-template-columns: 1fr;
  }
  
  .content-wrapper {
    flex-direction: column;
  }
  
  .sidebar {
    order: -1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .key-points {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }
}