/*
 * AINudeGeneratorLV.pw - CSS Stili
 * Tēma: Latvijas karoga krāsas
 * Datums: Augusts 2025
 */

:root {
  /* Latvijas karoga krāsas */
  --sarkans: #A4343A;
  --balts: #FFFFFF;
  
  /* Papildu krāsas */
  --tumss: #222222;
  --peleks-gaiss: #F5F5F5;
  --peleks: #E0E0E0;
  --peleks-tumss: #777777;
  --sarkans-gaiss: #D45A5F;
  --sarkans-tumss: #7A2429;
  
  /* Efekti */
  --ena-sm: 0 3px 10px rgba(0, 0, 0, 0.06);
  --ena-md: 0 6px 18px rgba(0, 0, 0, 0.1);
  --ena-lg: 0 12px 30px rgba(0, 0, 0, 0.15);
  --pāreja: all 0.3s ease;
  --radius: 12px;
  --radius-lg: 24px;
  --gradients: linear-gradient(145deg, var(--sarkans) 0%, var(--sarkans-tumss) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--tumss);
  line-height: 1.6;
  background-color: var(--balts);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.6rem;
  color: var(--tumss);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 2.2rem;
  color: var(--tumss);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: "";
  position: absolute;
  width: 70px;
  height: 4px;
  background: var(--sarkans);
  bottom: -10px;
  left: 0;
}

.section-header h2:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.4rem;
  color: var(--tumss);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--peleks-tumss);
}

a {
  text-decoration: none;
  color: var(--sarkans);
  transition: var(--pāreja);
}

a:hover {
  color: var(--sarkans-tumss);
}

section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-header p {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

/* Pogu stili */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--pāreja);
  box-shadow: var(--ena-sm);
}

.primary {
  background-color: var(--sarkans);
  color: var(--balts);
  border: none;
}

.primary:hover {
  background-color: var(--sarkans-tumss);
  transform: translateY(-3px);
  box-shadow: var(--ena-md);
}

.secondary {
  background-color: transparent;
  color: var(--sarkans);
  border: 2px solid var(--sarkans);
}

.secondary:hover {
  background-color: rgba(164, 52, 58, 0.1);
  transform: translateY(-3px);
}

.large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* Galvene */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--balts);
  box-shadow: var(--ena-sm);
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tumss);
}

.logo span {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo svg {
  transition: transform 0.4s ease;
}

.logo:hover svg {
  transform: rotate(15deg);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu li a {
  font-weight: 600;
  color: var(--tumss);
  position: relative;
  padding: 5px 0;
  font-size: 1.05rem;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--sarkans);
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--sarkans);
}

.nav-menu li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--tumss);
  transition: var(--pāreja);
}

/* Hero sekcija */
.hero {
  background: linear-gradient(170deg, var(--balts) 65%, var(--peleks-gaiss) 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
  max-width: 550px;
}

.age-badge {
  display: inline-block;
  background-color: var(--sarkans);
  color: var(--balts);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.warning-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 15px 20px;
  background-color: rgba(164, 52, 58, 0.08);
  border-radius: var(--radius);
  border-left: 4px solid var(--sarkans);
}

.warning-note svg {
  color: var(--sarkans);
  flex-shrink: 0;
}

.warning-note p {
  margin: 0;
  font-size: 0.9rem;
}

.hero-visual {
  flex: 1;
  max-width: 500px;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

/* Funkciju sekcija */
.features {
  background-color: var(--peleks-gaiss);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 35px;
}

.feature-card {
  background-color: var(--balts);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--ena-sm);
  transition: var(--pāreja);
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--sarkans);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--ena-md);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  color: var(--sarkans);
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background-color: rgba(164, 52, 58, 0.1);
  border-radius: 50%;
  line-height: 0;
}

/* Lietošanas sekcija */
.how-to-use {
  background-color: var(--balts);
}

.steps-container {
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 60px;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 60px;
  height: calc(100% + 30px);
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--sarkans) 0,
    var(--sarkans) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 1;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--sarkans);
  color: var(--balts);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: var(--ena-sm);
}

.step-content {
  background-color: var(--balts);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--ena-sm);
  border: 1px solid var(--peleks);
  flex: 1;
}

.action-center {
  text-align: center;
  margin-top: 60px;
}

/* Statistika */
.stats {
  background: var(--sarkans);
  color: var(--balts);
  padding: 70px 0;
  background-image: linear-gradient(
      rgba(164, 52, 58, 0.92),
      rgba(164, 52, 58, 0.92)
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-card {
  padding: 30px 20px;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: var(--pāreja);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Roboto Slab', serif;
  color: var(--balts);
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* BUJ Sekcija */
.faq {
  background-color: var(--balts);
  position: relative;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ena-sm);
  transition: var(--pāreja);
}

.faq-item:hover {
  box-shadow: var(--ena-md);
}

.faq-question {
  padding: 20px 25px;
  background-color: var(--balts);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid transparent;
  transition: var(--pāreja);
}

.faq-item.active .faq-question {
  border-left-color: var(--sarkans);
}

.faq-question:hover {
  background-color: var(--peleks-gaiss);
}

.faq-icon {
  font-size: 1.8rem;
  color: var(--sarkans);
  transition: var(--pāreja);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--peleks-gaiss);
}

.faq-answer p {
  padding: 20px 25px;
  border-left: 4px solid var(--sarkans);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* CTA Sekcija */
.cta {
  background: linear-gradient(to right, var(--sarkans-tumss), var(--sarkans));
  text-align: center;
  color: var(--balts);
  padding: 80px 0;
}

.cta h2 {
  color: var(--balts);
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.cta h2:after {
  display: none;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta .btn.primary {
  background-color: var(--balts);
  color: var(--sarkans);
  padding: 18px 40px;
  font-size: 1.1rem;
}

.cta .btn.primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--sarkans-tumss);
}

.disclaimer-small {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 20px;
}

/* Kājene */
.footer {
  background-color: var(--tumss);
  color: var(--balts);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 450px;
}

.footer-brand .logo {
  margin-bottom: 25px;
}

.footer-brand .logo span {
  color: var(--balts);
}

.footer-brand p {
  color: var(--peleks);
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.link-column h4 {
  color: var(--balts);
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 15px;
}

.link-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--sarkans);
}

.link-column ul {
  list-style: none;
}

.link-column li {
  margin-bottom: 15px;
}

.link-column a {
  color: var(--peleks);
  transition: var(--pāreja);
  font-size: 0.95rem;
}

.link-column a:hover {
  color: var(--balts);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

.keywords {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 800px;
  margin: 0 auto;
}

/* Responsīvais dizains */
@media screen and (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.9rem;
  }
  
  section {
    padding: 70px 0;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
    order: 2;
  }
  
  .hero-visual {
    max-width: 100%;
    order: 1;
    margin-bottom: 40px;
  }
  
  .age-badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .warning-note {
    justify-content: center;
    text-align: left;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-brand .logo {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--balts);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--pāreja);
    box-shadow: var(--ena-lg);
    z-index: 99;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto 20px;
  }
  
  .step::after {
    display: none;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .link-column {
    text-align: center;
  }
  
  .link-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}
