/* Geld Planner - Shared Styles */

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #11111B 0%, #0f0f19 50%, #11111B 100%);
  min-height: 100vh;
  color: rgba(235, 241, 255, 0.8);
  line-height: 1.6;
}

/* === Layout === */
body.page-centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === Links === */
a {
  color: #00A0FF;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #33b5ff;
  text-decoration: underline;
}

/* === Card Container (centered pages like home, 404) === */
.card {
  text-align: center;
  max-width: 500px;
  padding: 48px;
  background: rgba(40, 40, 55, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(0, 160, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* === Content Container (long-form pages like privacy, terms) === */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* === Logo === */
.logo-container {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow:
    0 8px 24px rgba(0, 160, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: logoGlow 3s ease-in-out infinite alternate;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
}

@keyframes logoGlow {
  0% {
    box-shadow:
      0 8px 24px rgba(0, 160, 255, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow:
      0 12px 32px rgba(0, 160, 255, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 25px rgba(255, 165, 0, 0.5),
      0 0 35px rgba(255, 20, 147, 0.4);
  }
}

/* === Typography === */
h1 {
  font-size: 2.5rem;
  margin: 0 0 24px 0;
  font-weight: 500;
  color: rgba(235, 241, 255, 0.95);
  letter-spacing: -0.02em;
}

h2 {
  color: #00A0FF;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 160, 255, 0.15);
}

p {
  margin-bottom: 14px;
  color: rgba(235, 241, 255, 0.7);
}

ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
  color: rgba(235, 241, 255, 0.65);
}

li strong {
  color: rgba(235, 241, 255, 0.85);
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 16px;
  line-height: 1.5;
  color: rgba(235, 241, 255, 0.7);
  font-weight: 400;
}

.description {
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: rgba(235, 241, 255, 0.6);
}

.last-updated {
  color: rgba(235, 241, 255, 0.4);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* === Page Header (content pages) === */
.page-header {
  text-align: center;
  padding: 48px 24px 32px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header .app-name {
  color: #00A0FF;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === Content Card (sections in content pages) === */
.content-card {
  background: rgba(40, 40, 55, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(235, 241, 255, 0.08);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* === CTA Button === */
.cta {
  background: linear-gradient(135deg, #00A0FF 0%, rgba(0, 160, 255, 0.8) 100%);
  border: none;
  color: white;
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 32px;
  box-shadow:
    0 4px 16px rgba(0, 160, 255, 0.3),
    0 0 0 1px rgba(0, 160, 255, 0.2);
}

.cta:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(0, 160, 255, 0.4),
    0 0 0 1px rgba(0, 160, 255, 0.3);
}

/* === Features Grid === */
.features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  opacity: 0.8;
}

.feature {
  padding: 12px;
  background: rgba(40, 40, 55, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(235, 241, 255, 0.1);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.9rem;
  color: rgba(235, 241, 255, 0.7);
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(235, 241, 255, 0.08);
  margin-top: 48px;
}

.footer a {
  color: rgba(235, 241, 255, 0.5);
  margin: 0 16px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #00A0FF;
  text-decoration: none;
}

/* === 404 Specific === */
.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: rgba(0, 160, 255, 0.3);
  line-height: 1;
  margin-bottom: 16px;
}

/* === Cookie Banner === */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 24px;
  background: rgba(25, 25, 40, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 160, 255, 0.2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  animation: cookieSlideUp 0.4s ease-out;
}

#cookie-banner.cookie-hidden {
  animation: cookieSlideDown 0.3s ease-in forwards;
}

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

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

.cookie-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.cookie-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(235, 241, 255, 0.7);
  line-height: 1.5;
}

.cookie-text a {
  color: #00A0FF;
  text-decoration: underline;
}

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

.cookie-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #00A0FF 0%, rgba(0, 160, 255, 0.8) 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 160, 255, 0.3);
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 160, 255, 0.4);
}

.cookie-btn-reject {
  background: rgba(235, 241, 255, 0.08);
  color: rgba(235, 241, 255, 0.6);
  border: 1px solid rgba(235, 241, 255, 0.15);
}

.cookie-btn-reject:hover {
  background: rgba(235, 241, 255, 0.12);
  color: rgba(235, 241, 255, 0.8);
}
