/*
=================================================================
  CUSTOM FOOTER STYLES
  Versioon: 2.3
  Kirjeldus: Dünaamilised teemad jaluse jaoks. Lisatud uued gradient-valikud.
=================================================================
*/

/*
-----------------------------------------------------------------
  1. OLEMASOLEVAD TEEMAD
-----------------------------------------------------------------
*/
/* VAIKIMISI TEEMA (TUME GRADIENT) */
.cs-footer-content.footer-theme-dark-gradient {
  --footer-bg-start: #184158;
  --footer-bg-end: #493ca9;
  --footer-text-primary: #ffffff;
  --footer-text-secondary: #c7b8b8;
  --footer-link-hover: #aad4ff;
  --footer-border-color: rgba(255, 255, 255, 0.25);
  
  background: linear-gradient(to bottom, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
  color: var(--footer-text-primary);
}

/* AUTORITE LEHE ERIKUJUNDUS */
.cs-footer-content.footer-theme-author {
  --footer-bg-start: #2c3279;
  --footer-bg-end: #493ca9;
  --footer-text-primary: #ffffff;
  --footer-text-secondary: #c7b8b8;
  --footer-link-hover: #aad4ff;
  --footer-border-color: rgba(255, 255, 255, 0.25);

  background: linear-gradient(to bottom, var(--footer-bg-start), var(--footer-bg-end));
  color: var(--footer-text-primary);
}

/*
-----------------------------------------------------------------
  2. UUED GRADIENDI VALIKUD
-----------------------------------------------------------------
*/
/* PÄIKESELOOJANG */
.cs-footer-content.footer-theme-sunset {
  --footer-bg-start: #ff7e5f;
  --footer-bg-end: #feb47b;
  --footer-text-primary: #ffffff;
  --footer-text-secondary: #fbeee1;
  --footer-link-hover: #4a2c2c;
  --footer-border-color: rgba(255, 255, 255, 0.4);

  background: linear-gradient(to right, var(--footer-bg-start), var(--footer-bg-end));
  color: var(--footer-text-primary);
}

/* SÜGAV KOSMOS */
.cs-footer-content.footer-theme-deep-space {
  --footer-bg-start: #000000;
  --footer-bg-end: #434343;
  --footer-text-primary: #ffffff;
  --footer-text-secondary: #bbbbbb;
  --footer-link-hover: #00c6ff;
  --footer-border-color: rgba(255, 255, 255, 0.2);

  background: linear-gradient(to right, var(--footer-bg-start), var(--footer-bg-end));
  color: var(--footer-text-primary);
}

/* MÜNDIROHELINE */
.cs-footer-content.footer-theme-minty {
  --footer-bg-start: #16a085;
  --footer-bg-end: #f4d03f;
  --footer-text-primary: #ffffff;
  --footer-text-secondary: #f0f8f6;
  --footer-link-hover: #0d5e4d;
  --footer-border-color: rgba(255, 255, 255, 0.4);

  background: linear-gradient(to right, var(--footer-bg-start), var(--footer-bg-end));
  color: var(--footer-text-primary);
}


/*
-----------------------------------------------------------------
  3. ÜLDISED JALUSE STIILID (kehtivad kõikidele teemadele)
-----------------------------------------------------------------
*/
.cs-footer-content {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 2rem !important;
  text-align: center; /* Vaikimisi joondus mobiilis */
}

.cs-footer-content .wp-block-separator.is-style-wide {
  border: none;
  border-top: 1px solid var(--footer-border-color);
  opacity: 1;
}

.cs-footer-nav-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center; /* Vaikimisi (mobiil) */
}

.cs-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.cs-footer-nav-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--footer-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cs-footer-nav-list a:hover {
  color: var(--footer-link-hover);
}

.cs-menu-icon-image {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.cs-hide-on-mobile {
  display: none;
}

.footer-contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}

.footer-contact-wrapper p.has-small-font-size {
    margin-bottom: 0.2em;
    line-height: 1.3;
}

.cs-footer-card-payment-logos {
  background: radial-gradient(ellipse at center, aliceblue 0%, #3D3D91 75%);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 25px;
  text-align: center;
}

.cs-footer-card-payment-logos > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.cs-footer-card-payment-logos > div:first-child {
  margin-bottom: 5px;
}

.payment-logo-mastercard { width: auto; height: 33px; }
.payment-logo-visa { width: 42px; height: auto; }
.payment-logo-gpay { width: auto; height: 25px; }
.payment-logo-applepay { width: auto; height: 25px; }

.cs-footer-content figure {
  margin: 0;
}

.footer-contact-us {
  margin-top: 1rem;
}

.business-contact-wrapper p {
margin-top: 5px;
}

.business-contact-wrapper p {
margin-top: 5px;
}

.cs-footer-powered-by {
  margin-top: 0;
}

/*
-----------------------------------------------------------------
  4. ALUMINE OSA (LOGO, SAIDI NIMI, COPYRIGHT)
-----------------------------------------------------------------
*/

.site-logo-footer-title-wrapper {
display: flex; /* Muudab selle flex konteineriks, et elemendid oleksid ühel real */
align-items: center; /* Joondab logo ja pealkirja vertikaalselt keskele */
gap: 5px; /* Annab logo ja pealkirja vahele veidi ruumi */
justify-content: center;
margin-top: 3rem;
}

.cs-footer-copyright-link {
    display: block; 
    text-align: center;
    color: var(--footer-text-secondary);
    text-decoration: none;
    margin-top: 0.5rem;
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

.cs-footer-copyright-link:hover {
  color: var(--footer-text-primary);
  text-decoration: underline;
}

/*
-----------------------------------------------------------------
  5. RESPONSIVE STYLES (Desktop)
-----------------------------------------------------------------
*/
@media (min-width: 768px) {
  .cs-footer-content {
    font-size: 1rem;
    text-align: left;
  }

  .cs-hide-on-mobile {
    display: flex;
  }

  .cs-footer-nav-wrapper,
  .cs-footer-nav {
    justify-content: flex-end;
  }
  
  .cs-footer-nav {
    gap: 24px;
  }

  .footer-contact-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
  }

  .cs-footer-powered-by {
  margin-top: 1rem;
}

.site-logo-footer-title-wrapper {
margin-top: 2rem;
}

}
