/* Cookie Consent Banner Styles */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 3px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  animation: slideUp 0.5s ease-out;
}

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

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

.cookie-consent-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent-text h3 {
  margin: 0 0 10px 0;
  font-size: 1.3em;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cookie-consent-text p {
  margin: 0 0 8px 0;
  font-size: 0.95em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.cookie-policy-link a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s ease;
}

.cookie-policy-link a:hover {
  color: #ffed4e;
}

.cookie-consent-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.accept-cookies-btn,
.upgrade-premium-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 140px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.accept-cookies-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.accept-cookies-btn:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.upgrade-premium-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.upgrade-premium-btn:hover {
  background: linear-gradient(135deg, #ffed4e, #fff176);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.accept-cookies-btn small,
.upgrade-premium-btn small {
  font-size: 0.75em;
  font-weight: normal;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 15px;
  }

  .cookie-consent-text h3 {
    font-size: 1.2em;
  }

  .cookie-consent-text p {
    font-size: 0.9em;
  }

  .cookie-consent-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .accept-cookies-btn,
  .upgrade-premium-btn {
    padding: 14px 20px;
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-consent-content {
    padding: 12px;
  }

  .cookie-consent-text h3 {
    font-size: 1.1em;
  }

  .cookie-consent-text p {
    font-size: 0.85em;
  }

  .accept-cookies-btn,
  .upgrade-premium-btn {
    padding: 12px 16px;
  }
}

/* Animation for hiding */
.cookie-consent-banner.hiding {
  animation: slideDown 0.3s ease-in forwards;
}

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

/* Ensure banner appears above other elements */
.cookie-consent-banner {
  position: fixed !important;
  z-index: 10000 !important;
}

/* Style for consent management button (for settings page) */
.consent-management-btn {
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}

.consent-management-btn:hover {
  background: #5a6268;
}

/* Premium user indicator */
.cookie-consent-premium-user {
  display: none;
}