/* Landing Page SEO Sections Styling */

/* ═══════════════════════════════════════════════════════════════ */
/* KALKULATOR BUDŻETU DOMOWEGO */
/* ═══════════════════════════════════════════════════════════════ */

.landing-budget-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
  border-radius: 12px;
  border-left: 4px solid #1565C0;
}

.landing-budget-section h2 {
  color: #0D47A1;
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  text-align: center;
}

.budget-calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.budget-calc-form {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.budget-calc-form h3 {
  color: #1565C0;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.calc-form-group {
  margin-bottom: 1rem;
}

.calc-form-group label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.calc-form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.calc-form-group input:focus {
  outline: none;
  border-color: #1565C0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.calc-form-group input::placeholder {
  color: #999;
}

.budget-calc-results {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.calc-result-label {
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
}

.calc-result-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1565C0;
}

.calc-result-value.negative {
  color: #d32f2f;
}

.calc-result-value.positive {
  color: #2e7d32;
}

.budget-chart-container {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

#calc-chart {
  max-width: 300px;
}

.calc-button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.calc-btn-reset {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.calc-btn-reset:hover {
  background: #eee;
  border-color: #1565C0;
}

.calc-cta {
  text-align: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.calc-cta p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.calc-cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.calc-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

/* ═══════════════════════════════════════════════════════════════ */
/* SEO CONTENT SECTION */
/* ═══════════════════════════════════════════════════════════════ */

.seo-content-section {
  margin: 2rem 0;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  border-top: 3px solid #1565C0;
}

.seo-content-section h2 {
  color: #0D47A1;
  font-size: 1.6rem;
  margin: 0 0 1rem 0;
}

.seo-content-section p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.seo-content-section ul {
  margin: 1rem 0 1rem 1.5rem;
  color: #555;
}

.seo-content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════ */
/* TABELA WYDATKÓW */
/* ═══════════════════════════════════════════════════════════════ */

.expense-table-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border-radius: 8px;
}

.expense-table-section h3 {
  color: #0D47A1;
  font-size: 1.3rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.expense-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.expense-table th {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.expense-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.expense-table tbody tr:hover {
  background-color: #f9fbff;
}

.expense-table td:last-child {
  color: #1565C0;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════ */
/* FAQ SECTION */
/* ═══════════════════════════════════════════════════════════════ */

.faq-section {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
  border-radius: 12px;
  border-left: 4px solid #1565C0;
}

.faq-section h2 {
  color: #0D47A1;
  font-size: 1.6rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.faq-items {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.1);
}

.faq-item-header {
  padding: 1.25rem;
  background: white;
  border-left: 3px solid #1565C0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.3s;
}

.faq-item-header:hover {
  background: #f9fbff;
}

.faq-item-question {
  color: #0D47A1;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  flex: 1;
}

.faq-item-toggle {
  color: #1565C0;
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-item-toggle {
  transform: rotate(180deg);
}

.faq-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-item-body {
  max-height: 500px;
}

.faq-item-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════ */
/* INTERNAL LINKING - PROFIL SECTION */
/* ═══════════════════════════════════════════════════════════════ */

.profile-linking-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f9fbff 0%, #f0f7ff 100%);
  border-radius: 12px;
  border-top: 3px solid #1565C0;
}

.profile-linking-section h2 {
  color: #0D47A1;
  font-size: 1.6rem;
  margin: 0 0 1rem 0;
  text-align: center;
}

.profile-linking-section > p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.profile-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.profile-card:hover {
  border-color: #1565C0;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15);
  transform: translateY(-4px);
}

.profile-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.profile-card-title {
  color: #0D47A1;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.profile-card-desc {
  color: #777;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .landing-budget-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .landing-budget-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .budget-calc-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .budget-calc-form,
  .budget-calc-results {
    padding: 1.25rem;
  }

  .budget-chart-container {
    min-height: 250px;
    padding: 1rem;
  }

  .seo-content-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .seo-content-section h2 {
    font-size: 1.3rem;
  }

  .seo-content-section p {
    font-size: 0.95rem;
  }

  .expense-table-section {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .expense-table th,
  .expense-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .faq-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .faq-section h2 {
    font-size: 1.3rem;
  }

  .faq-item-header {
    padding: 1rem;
  }

  .faq-item-question {
    font-size: 0.95rem;
  }

  .profile-linking-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .profile-linking-section h2 {
    font-size: 1.3rem;
  }

  .profile-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .profile-card {
    padding: 1rem;
  }

  .profile-card-icon {
    font-size: 2rem;
  }

  .profile-card-title {
    font-size: 0.95rem;
  }

  .profile-card-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .budget-calc-container {
    grid-template-columns: 1fr;
  }

  .calc-form-group input {
    padding: 0.65rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .profile-cards-grid {
    grid-template-columns: 1fr;
  }

  .expense-table th,
  .expense-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .calc-button-group {
    flex-direction: column;
  }

  .calc-btn-reset {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* FAQ GRID LAYOUT */
/* ═══════════════════════════════════════════════════════════════ */

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

.faq-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.1);
}

.faq-toggle {
  width: 100%;
  padding: 1.25rem;
  background: white;
  border: none;
  border-left: 3px solid #1565C0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.3s;
  font-size: 1rem;
  font-weight: 600;
  color: #0D47A1;
  text-align: left;
}

.faq-toggle:hover {
  background: #f9fbff;
}

.faq-toggle-icon {
  color: #1565C0;
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.faq-item.faq-open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.25rem;
}

.faq-item.faq-open .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem 1.25rem;
}

.faq-answer p {
  color: #555;
  line-height: 1.6;
  margin: 1rem 0;
}

.faq-answer p:first-child {
  margin-top: 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════ */
/* pSEO VARIANTS SECTION */
/* ═══════════════════════════════════════════════════════════════ */

.pseo-variants-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f9fbff 0%, #f0f7ff 100%);
  border-radius: 12px;
  border-top: 3px solid #1565C0;
}

.pseo-variants-section .section-title {
  color: #0D47A1;
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.pseo-variants-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.05rem;
  margin: 0 auto 2rem;
  max-width: 600px;
}

.pseo-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pseo-variant-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.pseo-variant-card:hover {
  border-color: #1565C0;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15);
  transform: translateY(-4px);
}

.variant-icon {
  font-size: 3rem;
  line-height: 1;
}

.pseo-variant-card h3 {
  color: #0D47A1;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.pseo-variant-card p {
  color: #777;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════ */
/* DARK MODE */
/* ═══════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  .landing-budget-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-left-color: #64b5f6;
  }

  .landing-budget-section h2 {
    color: #64b5f6;
  }

  .budget-calc-form,
  .budget-calc-results,
  .budget-chart-container {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .budget-calc-form h3 {
    color: #64b5f6;
  }

  .calc-form-group label {
    color: #e0e0e0;
  }

  .calc-form-group input {
    background: #1a1a1a;
    border-color: #424242;
    color: #e0e0e0;
  }

  .calc-form-group input:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
  }

  .calc-result-item {
    border-bottom-color: #424242;
    color: #e0e0e0;
  }

  .calc-result-label {
    color: #b0b0b0;
  }

  .seo-content-section {
    background: #1a1a1a;
    border-top-color: #64b5f6;
  }

  .seo-content-section h2 {
    color: #64b5f6;
  }

  .seo-content-section p,
  .seo-content-section li {
    color: #c0c0c0;
  }

  .expense-table-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  }

  .expense-table {
    background: #1a1a1a;
  }

  .expense-table th {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  }

  .expense-table td {
    border-bottom-color: #424242;
    color: #e0e0e0;
  }

  .expense-table tbody tr:hover {
    background-color: #2a2a2a;
  }

  .faq-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-left-color: #64b5f6;
  }

  .faq-section h2 {
    color: #64b5f6;
  }

  .faq-item {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .faq-item:hover {
    box-shadow: 0 4px 16px rgba(100, 181, 246, 0.1);
  }

  .faq-item-header {
    background: #2a2a2a;
    border-left-color: #64b5f6;
  }

  .faq-item-header:hover {
    background: #333;
  }

  .faq-item-question {
    color: #64b5f6;
  }

  .faq-item-toggle {
    color: #64b5f6;
  }

  .faq-item-answer {
    color: #c0c0c0;
  }

  .profile-linking-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top-color: #64b5f6;
  }

  .profile-linking-section h2 {
    color: #64b5f6;
  }

  .profile-linking-section > p {
    color: #b0b0b0;
  }

  .profile-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .profile-card:hover {
    border-color: #64b5f6;
    box-shadow: 0 4px 16px rgba(100, 181, 246, 0.15);
  }

  .profile-card-title {
    color: #64b5f6;
  }

  .profile-card-desc {
    color: #a0a0a0;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* PRINT */
/* ═══════════════════════════════════════════════════════════════ */

@media print {
  .landing-budget-section,
  .seo-content-section,
  .expense-table-section,
  .faq-section,
  .profile-linking-section {
    background: white;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .budget-calc-container {
    grid-template-columns: 1fr;
  }

  .faq-item-body {
    max-height: none;
    display: block;
  }

  .calc-cta {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ACCESSIBILITY */
/* ═══════════════════════════════════════════════════════════════ */

.landing-budget-section:focus-within {
  outline: 2px solid #1565C0;
  outline-offset: 4px;
}

.faq-item-header:focus {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}

.profile-card:focus {
  outline: 2px solid #1565C0;
  outline-offset: 4px;
}

.calc-cta-button:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}
