/* Modern Poetry App - Africa-Inspired Theme */

:root {
  /* Africa-inspired warm earth tones */
  --primary-light: #F5E6D3;
  --primary-pale: #FBF6F0;
  --primary-accent: #E8D7C3;
  --secondary-accent: #D4C5B5;
  
  /* Africa-inspired gradients: warm ochre to rich gold */
  --gradient-primary: linear-gradient(135deg, #F5E6D3 0%, #FBF6F0 50%, #E8D7C3 100%);
  --gradient-soft: linear-gradient(135deg, #FFF9F5 0%, #F5E6D3 50%, #E8D7C3 100%);
  --gradient-accent: linear-gradient(135deg, #D4941E 0%, #C88C00 100%);
  
  /* Africa-inspired text colors: deep browns */
  --text-dark: #3E2723;
  --text-secondary: #5D4037;
  --text-light: #795548;
  
  /* Africa-inspired accent colors: terracotta, gold, warm tones */
  --accent-purple: #B8731B;
  --accent-pink: #D87D5E;
  --accent-teal: #8B6914;
  --accent-coral: #E8936B;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 55, 72, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 55, 72, 0.12);
  --shadow-lg: 0 8px 24px rgba(45, 55, 72, 0.15);
  --shadow-soft: 0 4px 12px rgba(102, 126, 234, 0.1);
  
  /* Rounded corners */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* Base styles */
html {
  height: 100%;
}

body {
  background-image: linear-gradient(rgba(11, 22, 30, 0.684), rgba(11, 22, 30, 0.704)), url('../img/Baobab.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-color: var(--primary-light);
  background-attachment: fixed;
  color: var(--text-dark);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Modern Navbar */
.navbar-modern {
  /* Background image with semi-transparent overlay for readability */
  background-image: linear-gradient(rgba(11, 22, 30, 0.659), rgba(97, 102, 106, 0.755)), url('../img/tradition.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(102, 126, 234, 0.12);
  padding: 0.75rem 0 !important;
  backdrop-filter: blur(6px);
  color: #ffffff;
}

.navbar-modern .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  margin-right: 2rem;
}

.navbar-modern .nav-link {
  color: rgba(255,255,255,0.95) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.navbar-modern .nav-link:hover {
  color: var(--accent-purple) !important;
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-2px);
}

.navbar-modern .nav-link.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 244, 249, 0.1));
  color: var(--accent-purple) !important;
  border-radius: var(--radius-md);
}

/* Navbar dropdown */
.navbar-modern .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(102, 126, 234, 0.15);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
}

.navbar-modern .dropdown-item {
  color: var(--text-secondary);
  transition: all 0.2s ease;
  padding: 0.75rem 1.25rem;
}

.navbar-modern .dropdown-item:hover {
  background: rgba(102, 126, 234, 0.08);
  color: var(--accent-purple);
  padding-left: 1.5rem;
}

/* Auth buttons in navbar */
.navbar-auth-btn {
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  margin-left: 0.5rem;
}

.navbar-auth-btn.btn-login {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.navbar-auth-btn.btn-login:hover {
  background: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.navbar-auth-btn.btn-profile {
  background: linear-gradient(135deg, #48B6C4 0%, #38A3B0 100%);
  color: white;
}

.navbar-auth-btn.btn-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 182, 196, 0.3);
}

.navbar-auth-btn.btn-dashboard {
  background: linear-gradient(135deg, #F687B3 0%, #E55E99 100%);
  color: white;
}

.navbar-auth-btn.btn-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 135, 179, 0.3);
}

.navbar-auth-btn.btn-logout {
  background: linear-gradient(135deg, #F78E8A 0%, #F05050 100%);
  color: white;
}

.navbar-auth-btn.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 142, 138, 0.3);
}

/* Cards and containers - Modern Africa-inspired dark theme with glassmorphism */
.card-modern {
  background: linear-gradient(135deg, rgba(62, 39, 35, 0.75) 0%, rgba(93, 64, 55, 0.72) 100%);
  border: 1px solid rgba(212, 148, 30, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FBF6F0;
}

.card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(212, 148, 30, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border-color: rgba(212, 148, 30, 0.5);
  background: linear-gradient(135deg, rgba(62, 39, 35, 0.85) 0%, rgba(93, 64, 55, 0.82) 100%);
}

/* Poem cards - Modern dark glassmorphism */
.poem-card {
  background: linear-gradient(135deg, rgba(62, 39, 35, 0.78) 0%, rgba(78, 46, 36, 0.75) 100%);
  border: 1px solid rgba(212, 148, 30, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(212, 148, 30, 0.12);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #FBF6F0;
}

.poem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.poem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(212, 148, 30, 0.25), inset 0 1px 1px rgba(212, 148, 30, 0.2);
  border-color: rgba(212, 148, 30, 0.45);
  background: linear-gradient(135deg, rgba(62, 39, 35, 0.88) 0%, rgba(78, 46, 36, 0.85) 100%);
}

.poem-card:hover::before {
  transform: translateX(0);
}

/* Buttons */
.btn-modern {
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary-modern {
  background: var(--gradient-accent);
  color: white;
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, #5568D3 0%, #6D3A94 100%);
  color: white;
  text-decoration: none;
}

.btn-secondary-modern {
  background: linear-gradient(135deg, #E8D7C3 0%, #D4C5B5 100%);
  color: var(--accent-purple);
  border: 1px solid rgba(184, 115, 27, 0.2);
}

.btn-secondary-modern:hover {
  background: linear-gradient(135deg, #D4C5B5 0%, #C5B5A5 100%);
  color: var(--accent-purple);
  border-color: rgba(184, 115, 27, 0.3);
  text-decoration: none;
}

.btn-outline-modern {
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
  background: transparent;
}

.btn-outline-modern:hover {
  background: rgba(184, 115, 27, 0.08);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  text-decoration: none;
}

/* Input fields - Modern dark glassmorphism */
.form-control-modern {
  background: rgba(62, 39, 35, 0.65);
  border: 1px solid rgba(212, 148, 30, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #FBF6F0;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-control-modern:focus {
  background: rgba(62, 39, 35, 0.8);
  border-color: rgba(212, 148, 30, 0.6);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0.2rem rgba(212, 148, 30, 0.2);
  outline: none;
  color: #FBF6F0;
}

.form-control-modern::placeholder {
  color: rgba(251, 246, 240, 0.5);
}

/* Badges and tags */
.badge-modern {
  background: linear-gradient(135deg, rgba(212, 148, 30, 0.12), rgba(232, 143, 107, 0.12));
  color: var(--accent-purple);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(212, 148, 30, 0.25);
}

/* Section headings */
.section-title {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
}

/* Footer */
.footer-modern {
  /* Use same hero image as navbar with a darker overlay for contrast */
  background-image: linear-gradient(rgba(14, 15, 16, 0.745), rgb(6, 10, 15)), url('../img/tradition.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: rgba(255,255,255,0.92);
  padding: 2rem 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-modern a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-modern a:hover {
  color: var(--accent-teal);
  text-decoration: underline;
  transform: translateY(-2px);
}

/* Links */
a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-teal);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar-modern .nav-link {
    padding: 1rem 0 !important;
    margin: 0.5rem 0;
  }
  
  .navbar-modern .navbar-brand {
    margin-right: 1rem;
  }

  .navbar-auth-btn.btn-profile {
  background: linear-gradient(135deg, #48B6C4 0%, #38A3B0 100%);
  color: white;
  padding: 10px;
  }

  .profile-content {
    margin-left: auto;
    margin-right: auto;
  }

}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softGlow {
  0%, 100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-lg);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility classes */
.bg-gradient-light {
  background: var(--gradient-primary) !important;
}

.text-primary-dark {
  color: var(--text-dark) !important;
}

.text-secondary-dark {
  color: var(--text-secondary) !important;
}

.border-soft {
  border: 1px solid rgba(102, 126, 234, 0.15) !important;
}

.shadow-soft {
  box-shadow: var(--shadow-md) !important;
}

/* Override Bootstrap defaults for consistency - Africa-inspired dark theme */
.card {
  border: 1px solid rgba(212, 148, 30, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(62, 39, 35, 0.75) 0%, rgba(93, 64, 55, 0.72) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #FBF6F0;
}

.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control {
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 148, 30, 0.25);
  background: rgba(62, 39, 35, 0.65);
  color: #FBF6F0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-control:focus {
  border-color: rgba(212, 148, 30, 0.6);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0.2rem rgba(212, 148, 30, 0.2);
  background: rgba(62, 39, 35, 0.8);
  color: #FBF6F0;
}

/* Main content area */
main {
  padding-top: 100px;
  padding-bottom: 3rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(240, 244, 249, 0.5);
}

/* FAQ Accordion Styling - Modern dark Africa-inspired */
.privacy-policy-container {
  background: linear-gradient(135deg, rgba(62, 39, 35, 0.8) 0%, rgba(78, 46, 36, 0.78) 100%);
  border: 1px solid rgba(212, 148, 30, 0.28);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(212, 148, 30, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-left: auto;
  margin-right: auto;
  color: #FBF6F0;
}

.privacy-policy-container h1 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-policy-container h2 {
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.15);
  padding-bottom: 0.75rem;
}

.privacy-policy-container section {
  margin-bottom: 2.5rem;
}

.privacy-policy-container ul {
  list-style: none;
  padding-left: 0;
}

.privacy-policy-container li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: rgba(251, 246, 240, 0.88);
  line-height: 1.6;
}

.privacy-policy-container li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
  font-size: 1.1rem;
}

/* FAQ Section */
.FAQ-dropdown {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(72, 182, 196, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.FAQ-dropdown h2 {
  color: var(--accent-purple);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  border-bottom: none;
  padding-bottom: 0;
  position: relative;
}

.FAQ-dropdown h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Accordion Items */
.accordion {
  border: none;
}

.accordion-item {
  background: rgba(62, 39, 35, 0.6);
  border: 1px solid rgba(212, 148, 30, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.accordion-item:hover {
  border-color: rgba(212, 148, 30, 0.5);
  box-shadow: 0 4px 12px rgba(212, 148, 30, 0.15), inset 0 1px 1px rgba(212, 148, 30, 0.08);
  transform: translateY(-2px);
  background: rgba(62, 39, 35, 0.7);
}

.accordion-button {
  background: transparent;
  color: #FBF6F0;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(212, 148, 30, 0.15) 0%, rgba(184, 115, 27, 0.12) 100%);
  color: rgba(212, 148, 30, 0.95);
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D4941E'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: none;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(0deg);
}

.accordion-button:focus {
  border-color: rgba(212, 148, 30, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(212, 148, 30, 0.15);
  background: transparent;
}

.accordion-body {
  padding: 1.25rem 1.5rem;
  color: rgba(251, 246, 240, 0.92);
  line-height: 1.7;
  border-top: 1px solid rgba(212, 148, 30, 0.15);
  font-size: 0.95rem;
}
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .privacy-policy-container {
    padding: 2rem 1.5rem;
  }
  
  .FAQ-dropdown {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .accordion-button {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 1rem 1.25rem;
  }
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667EEA 0%, #764BA2 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5568D3 0%, #6D3A94 100%);
}
