/* NetAdminAtlas - Main Stylesheet */

:root {
  --primary-color: #1e40af;
  --secondary-color: #0f766e;
  --accent-color: #dc2626;
  --background-light: #f9fafb;
  --text-dark: #111827;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
  font-weight: 800;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 0;
  opacity: 0.95;
  max-width: 600px;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #b91c1c;
}

/* Main Sections */
main {
  padding: 3rem 2rem;
}

section {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* About Section */
.about {
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Key Topics Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.topic-card {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.topic-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.topic-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step {
  padding: 2rem;
  background-color: var(--background-light);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.step-number {
  background-color: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Tutorials Section */
.tutorials {
  text-align: center;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.tutorial-card {
  background-color: var(--background-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.tutorial-image {
  width: 100%;
  height: 200px;
  background-color: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  object-fit: cover;
}

.tutorial-content {
  padding: 1.5rem;
}

.tutorial-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.tutorial-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Products Section */
.products {
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--background-light);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.product-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.product-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem !important;
}

.product-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-button:hover {
  background-color: #1e3a8a;
}

/* Stats Section */
.stats {
  text-align: center;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 8px;
}

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

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
  text-align: center;
}

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

.testimonial {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.testimonial p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  font-style: normal;
}

/* FAQ Section */
.faq {
  text-align: center;
}

.faq-items {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.faq-question {
  background-color: var(--background-light);
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  background-color: #f3f4f6;
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  padding: 0 1.25rem;
  transition: max-height 0.3s ease;
  color: var(--text-light);
  text-align: left;
}

.faq-answer.active {
  padding: 1.25rem;
  max-height: 500px;
}

/* Contacts Section */
.contacts {
  text-align: center;
  background-color: var(--background-light);
  padding: 3rem 2rem;
  border-radius: 8px;
}

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

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

.contact-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.contact-item a,
.contact-item p {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-message {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-message a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.cookie-message a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-accept,
.cookie-reject,
.cookie-customize {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.cookie-accept {
  background-color: var(--accent-color);
  color: var(--white);
}

.cookie-accept:hover {
  background-color: #b91c1c;
}

.cookie-reject {
  background-color: #4b5563;
  color: var(--white);
}

.cookie-reject:hover {
  background-color: #374151;
}

.cookie-customize {
  background-color: #6366f1;
  color: var(--white);
}

.cookie-customize:hover {
  background-color: #4f46e5;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.cookie-modal.hidden {
  display: none;
}

.cookie-modal-content {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cookie-modal-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cookie-options {
  margin-bottom: 1.5rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  background-color: var(--background-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-option:hover {
  background-color: #f3f4f6;
}

.cookie-option input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.cookie-option-label {
  flex: 1;
  cursor: pointer;
}

.cookie-option-label strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cookie-option-label span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
}

.cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-modal-actions button {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.cookie-modal-save {
  background-color: var(--accent-color);
  color: var(--white);
}

.cookie-modal-save:hover {
  background-color: #b91c1c;
}

.cookie-modal-close {
  background-color: #e5e7eb;
  color: var(--text-dark);
}

.cookie-modal-close:hover {
  background-color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .hero {
    padding: 3rem 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-content {
    gap: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .topics-grid,
  .steps-grid,
  .tutorials-grid,
  .products-grid,
  .testimonials-grid,
  .contacts-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-modal-content {
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .cookie-accept,
  .cookie-reject,
  .cookie-customize {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cookie-modal-content {
    padding: 1.5rem;
  }
}
