/* RV Generator Calculator Styles */

.rv-calc-wrapper {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1a202c;
  line-height: 1.6;
}

.rv-calc-container {
  margin-bottom: 2rem;
}

/* Header */
.rv-calc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.rv-calc-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.rv-calc-subtitle {
  font-size: 1.125rem;
  color: #718096;
  margin: 0;
}

/* Form Styles */
.rv-calc-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.rv-form-group {
  margin-bottom: 1.25rem;
}

.rv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rv-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.rv-input,
.rv-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #ffffff;
  color: #2d3748;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rv-input:focus,
.rv-select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.rv-select {
  cursor: pointer;
}

.rv-select optgroup {
  font-weight: 600;
  color: #2d3748;
  background: #f7fafc;
}

.rv-select option {
  padding: 0.5rem;
  font-weight: 400;
}

/* Buttons */
.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.rv-btn-icon {
  flex-shrink: 0;
}

.rv-btn-primary {
  background: #4299e1;
  color: #ffffff;
}

.rv-btn-primary:hover {
  background: #3182ce;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.rv-btn-secondary {
  background: #edf2f7;
  color: #2d3748;
}

.rv-btn-secondary:hover {
  background: #e2e8f0;
}

.rv-btn-danger {
  background: #fc8181;
  color: #ffffff;
}

.rv-btn-danger:hover {
  background: #f56565;
}

.rv-btn-full {
  width: 100%;
}

/* Appliances List */
.rv-appliances-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rv-appliance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.rv-appliance-info {
  flex: 1;
}

.rv-appliance-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
}

.rv-appliance-details {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #718096;
}

/* Results Section */
.rv-results-section {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rv-results-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.rv-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.rv-results-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.rv-results-actions {
  display: flex;
  gap: 0.75rem;
}

/* Power Stats */
.rv-power-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.rv-stat-card {
  padding: 1.25rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
}

.rv-stat-highlight {
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
  border-color: #4299e1;
}

.rv-stat-label {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.rv-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #2d3748;
}

/* Generator Categories Grid */
.rv-generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.rv-generator-category {
  padding: 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
}

.rv-generator-category:hover {
  border-color: #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rv-generator-category.rv-recommended {
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
  border-color: #4299e1;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.rv-category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  padding: 0.75rem;
  background: #4299e1;
  color: #ffffff;
  border-radius: 8px;
}

.rv-recommended .rv-category-icon {
  background: #3182ce;
}

.rv-category-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.25rem;
}

.rv-category-range {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 0.75rem;
}

.rv-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #48bb78;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
}

/* Chart Container */
.rv-chart-container {
  padding: 1rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rv-chart-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.rv-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rv-chart-bar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rv-chart-label {
  min-width: 120px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3748;
}

.rv-chart-bar-wrapper {
  flex: 1;
  position: relative;
}

.rv-chart-bar {
  height: 32px;
  background: #4299e1;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.rv-chart-value {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3748;
}

/* Comparison Table */
.rv-table-wrapper {
  overflow-x: auto;
}

.rv-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rv-comparison-table thead {
  background: #f7fafc;
}

.rv-comparison-table th {
  padding: 0.875rem;
  text-align: left;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.rv-comparison-table td {
  padding: 0.875rem;
  border-bottom: 1px solid #e2e8f0;
}

.rv-comparison-table tbody tr:hover {
  background: #f7fafc;
}

.rv-table-match-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
}

.rv-table-match-perfect {
  background: #48bb78;
  color: #ffffff;
}

.rv-table-match-good {
  background: #4299e1;
  color: #ffffff;
}

.rv-table-match-low {
  background: #edf2f7;
  color: #718096;
}

/* Product Card */
.rv-product-card {
  background: linear-gradient(135deg, #ebf8ff 0%, #f0f9ff 100%);
  border: 2px solid #4299e1;
}

.rv-product-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.rv-product-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4299e1;
  color: #ffffff;
  border-radius: 8px;
}

.rv-product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.rv-product-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rv-product-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  line-height: 1.4;
}

.rv-product-description {
  font-size: 0.875rem;
  color: #4a5568;
  margin: 0;
}

.rv-product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rv-feature-badge {
  padding: 0.375rem 0.75rem;
  background: rgba(66, 153, 225, 0.1);
  color: #2c5282;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
}

.rv-product-note {
  font-size: 0.75rem;
  color: #718096;
  text-align: center;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rv-calc-title {
    font-size: 1.5rem;
  }

  .rv-calc-subtitle {
    font-size: 1rem;
  }

  .rv-form-row {
    grid-template-columns: 1fr;
  }

  .rv-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rv-results-actions {
    width: 100%;
  }

  .rv-results-actions .rv-btn {
    flex: 1;
  }

  .rv-power-stats {
    grid-template-columns: 1fr;
  }

  .rv-generator-grid {
    grid-template-columns: 1fr;
  }

  .rv-appliance-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .rv-appliance-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .rv-comparison-table {
    font-size: 0.75rem;
  }

  .rv-comparison-table th,
  .rv-comparison-table td {
    padding: 0.5rem;
  }
}

@media print {
  .rv-btn,
  .rv-calc-form {
    display: none !important;
  }

  .rv-results-section {
    display: block !important;
  }

  .rv-results-card {
    page-break-inside: avoid;
  }
}

/* Article Content Styles */
.rv-article-wrapper {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
}

.rv-article-content {
  color: #1a202c;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.rv-article-content p {
  margin: 0 0 1.25rem 0;
}

.rv-article-intro {
  margin-bottom: 2.5rem;
}

.rv-lead-text {
  font-size: 1.25rem;
  color: #2d3748;
  line-height: 1.7;
}

.rv-article-section {
  margin-bottom: 3rem;
}

.rv-article-after {
  margin-top: 3rem;
}

.rv-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #4299e1;
}

/* Benefits Grid */
.rv-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.rv-benefit-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rv-benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rv-benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ebf8ff;
  color: #4299e1;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.rv-benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.rv-benefit-card p {
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
}

/* Watts Comparison */
.rv-watts-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.rv-watts-card {
  border-radius: 8px;
  padding: 1.5rem;
}

.rv-watts-running {
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
  border: 2px solid #4299e1;
}

.rv-watts-starting {
  background: linear-gradient(135deg, #fef5e7 0%, #fbd38d 100%);
  border: 2px solid #ed8936;
}

.rv-watts-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.75rem 0;
}

.rv-watts-card p {
  margin: 0 0 1rem 0;
}

.rv-watts-example {
  background: rgba(255, 255, 255, 0.7);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9375rem;
}

/* Info Box */
.rv-info-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #ebf8ff;
  border-left: 4px solid #4299e1;
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.rv-info-box svg {
  flex-shrink: 0;
  color: #4299e1;
}

.rv-info-box div {
  font-size: 0.9375rem;
  color: #2d3748;
}

/* Steps List */
.rv-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.rv-step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.rv-step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4299e1;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.rv-step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.rv-step-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.375rem 0;
}

.rv-step-content p {
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0;
}

/* Formula Box */
.rv-formula-box {
  background: #2d3748;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.rv-formula-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.rv-formula {
  background: #1a202c;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.rv-formula code {
  color: #68d391;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 1rem;
  white-space: nowrap;
}

.rv-formula-explanation {
  color: #e2e8f0;
}

.rv-formula-explanation p {
  font-size: 0.9375rem;
  margin: 0 0 0.5rem 0;
  color: #e2e8f0;
}

.rv-formula-explanation p:last-child {
  margin-bottom: 0;
}

/* Example Calculation */
.rv-example-calculation {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.rv-example-calculation h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 1rem 0;
}

.rv-example-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.rv-example-table th,
.rv-example-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.rv-example-table th {
  background: #edf2f7;
  font-weight: 600;
  color: #2d3748;
}

.rv-example-total {
  background: #ebf8ff;
}

.rv-example-result {
  background: #ebf8ff;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0 0 0;
}

/* Size Guide */
.rv-size-guide {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.rv-size-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.rv-size-header {
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.rv-size-small {
  background: #48bb78;
}

.rv-size-medium {
  background: #4299e1;
}

.rv-size-large {
  background: #ed8936;
}

.rv-size-xlarge {
  background: #e53e3e;
}

.rv-size-body {
  padding: 1.25rem;
}

.rv-size-body p {
  font-size: 0.9375rem;
  margin: 0 0 0.625rem 0;
}

.rv-size-body p:last-child {
  margin-bottom: 0;
}

/* Tips Grid */
.rv-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.rv-tip-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border-top: 4px solid #4299e1;
}

.rv-tip-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.75rem 0;
}

.rv-tip-card p {
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
}

/* Mistakes List */
.rv-mistakes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.rv-mistake-item {
  display: flex;
  gap: 1rem;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 1.25rem;
}

.rv-mistake-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fc8181;
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.rv-mistake-content h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #c53030;
  margin: 0 0 0.375rem 0;
}

.rv-mistake-content p {
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0;
}

/* FAQ Section */
.rv-faq-section {
  background: #f7fafc;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.rv-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rv-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.rv-faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.75rem 0;
  cursor: pointer;
}

.rv-faq-answer {
  font-size: 0.9375rem;
  color: #4a5568;
}

.rv-faq-answer p {
  margin: 0 0 0.75rem 0;
}

.rv-faq-answer p:last-child {
  margin-bottom: 0;
}

.rv-faq-answer code {
  background: #edf2f7;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
}

/* Links */
.rv-article-content a {
  color: #4299e1;
  text-decoration: underline;
  transition: color 0.2s;
}

.rv-article-content a:hover {
  color: #2b6cb0;
}

/* Responsive Article Styles */
@media (max-width: 768px) {
  .rv-section-title {
    font-size: 1.375rem;
  }

  .rv-lead-text {
    font-size: 1.0625rem;
  }

  .rv-benefits-grid,
  .rv-watts-comparison,
  .rv-tips-grid {
    grid-template-columns: 1fr;
  }

  .rv-formula code {
    font-size: 0.75rem;
  }

  .rv-faq-section {
    padding: 1.25rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 0;
  }

  .rv-step-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .rv-step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .rv-example-table {
    font-size: 0.8125rem;
  }

  .rv-example-table th,
  .rv-example-table td {
    padding: 0.5rem;
  }
}