:root {
  --primary-color: #00A04A;
  --primary-dark: #00803D;
  --apple-black: #000000;
  --apple-gray: #333333;
  --white: #ffffff;
  --black: #000000;
  --text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  --transition: all 0.3s ease;
  --border-radius: 25px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

body, html {
  height: 100%;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto; /* Schimbat din hidden în auto */
  background: transparent;
  color: var(--white);
  line-height: 1.6;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../bg.png') no-repeat center center;
  background-size: cover;
  z-index: -2;
  filter: blur(6px) brightness(0.5);
  animation: fadeIn 2s ease-in-out;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  animation: fadeIn 1.5s ease-in-out;
}

.content {
  text-align: center;
  z-index: 1;
  padding: 2rem;
  max-width: 90%;
  width: 100%;
  animation: slideUp 1s ease-in-out;
  margin-bottom: 80px; /* Spațiu pentru cookie banner */
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
  text-shadow: var(--text-shadow);
  font-weight: 700;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.button-link {
  text-decoration: none;
  color: var(--white);
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.1);
}

.button-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.google-play {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.google-play:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.apple-store {
  background-color: var(--apple-black);
  border-color: var(--apple-black);
}

.apple-store:hover {
  background-color: var(--apple-gray);
  border-color: var(--apple-gray);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.social-links .button-link {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.text-links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  animation: fadeIn 2.5s ease-in-out;
}

.text-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: var(--transition);
  font-weight: 500;
}

.text-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.email-contact {
  margin-top: 1rem;
  font-size: 0.9rem;
  animation: fadeIn 3s ease-in-out;
}

.email-contact a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.email-contact a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.feedback-section {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 1.5rem;
  border-radius: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.feedback-section h3 {
  margin-bottom: 1rem;
  text-shadow: var(--text-shadow);
}

.form-input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 160, 74, 0.3);
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.status-message {
  margin-top: 1rem;
  color: var(--white);
  font-size: 0.9rem;
}

/* Cookie Banner Styles */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  padding: 15px 20px;
  display: none;
  z-index: 1000;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideUp 0.5s ease-out;
  box-sizing: border-box;
}

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

.cookie-text {
  flex: 1;
  min-width: 250px;
  font-size: 14px;
  line-height: 1.5;
  text-shadow: var(--text-shadow);
  padding-right: 15px;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-text a:hover {
  color: var(--primary-dark);
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  border: none;
  min-width: 120px;
  text-align: center;
}

#accept-cookies {
  background-color: var(--primary-color);
  color: var(--white);
}

#accept-cookies:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

#reject-cookies {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

#reject-cookies:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments - Versiune îmbunătățită */
@media (min-width: 768px) {
  .button-group {
    flex-direction: row;
    justify-content: center;
  }

  .content {
    max-width: 800px;
  }
  
  .cookie-content {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  #cookie-banner {
    padding: 12px 15px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .cookie-text {
    padding-right: 0;
    text-align: center;
    margin-bottom: 8px;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: calc(50% - 10px);
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .cookie-btn {
    min-width: 100%;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}

/* Pull to refresh styles */
.pull-to-refresh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  text-align: center;
  background: rgba(0, 160, 74, 0.8);
  color: white;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.pull-to-refresh i {
  margin-right: 8px;
}

.fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}