/**
 * WIP (Work in Progress) Page Styles
 * 
 * Styles for the placeholder page with falling leaves animation
 */

/* Main WIP Section */
.wip-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 30%, #f8fafc 70%, #f1f5f9 100%);
  color: var(--gray-800);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Clean background */
.wip-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
}

/* Falling Leaves Animation */
.falling-leaves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.leaf {
  position: absolute;
  width: 16px;
  height: 20px;
  background: linear-gradient(135deg, #7ce09a 0%, #5cb877 100%);
  border-radius: 0 100% 0 100%;
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  transform-origin: bottom center;
  top: -150px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Leaf vein - centered through the leaf */
.leaf::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5px;
  height: 70%;
  background: linear-gradient(to bottom, rgba(74, 156, 99, 0.4) 0%, rgba(61, 122, 78, 0.2) 100%);
  transform: translate(-50%, -50%);
  border-radius: 1px;
  z-index: 0;
}

/* Different leaf varieties */
.leaf:nth-child(odd) {
  background: linear-gradient(135deg, #b6ec8e 0%, #7ce09a 100%);
  width: 14px;
  height: 18px;
  border-radius: 50% 0 50% 0;
}

.leaf:nth-child(3n) {
  background: linear-gradient(135deg, #5cb877 0%, #4a9c63 100%);
  width: 12px;
  height: 16px;
  border-radius: 0 80% 0 80%;
  transform: rotate(15deg);
}

.leaf:nth-child(4n) {
  background: linear-gradient(135deg, #a3d977 0%, #7ce09a 100%);
  width: 18px;
  height: 22px;
  border-radius: 20% 80% 20% 80%;
}

.leaf:nth-child(5n) {
  background: linear-gradient(135deg, #8fcc5b 0%, #6ba04a 100%);
  width: 15px;
  height: 19px;
  border-radius: 10% 90% 10% 90%;
  transform: rotate(-10deg);
}

/* Autumn leaf colors for variety */
.leaf:nth-child(7n) {
  background: linear-gradient(135deg, #e6a85c 0%, #d4932b 100%);
  width: 13px;
  height: 17px;
}

.leaf:nth-child(7n)::after {
  background: linear-gradient(to bottom, rgba(184, 118, 31, 0.4) 0%, rgba(156, 94, 26, 0.2) 100%);
}

.leaf:nth-child(9n) {
  background: linear-gradient(135deg, #d4932b 0%, #b8761f 100%);
  width: 14px;
  height: 18px;
  border-radius: 30% 70% 30% 70%;
}

/* Simplified falling animation */
@keyframes fallDown {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.7;
  }
  95% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) rotate(360deg);
    opacity: 0;
  }
}

/* Individual leaf animations */
.leaf:nth-child(1) {
  left: 10%;
  animation: fallDown 6s linear infinite;
  animation-delay: 0s;
}

.leaf:nth-child(2) {
  left: 20%;
  animation: fallDown 8s linear infinite;
  animation-delay: 2s;
}

.leaf:nth-child(3) {
  left: 30%;
  animation: fallDown 7s linear infinite;
  animation-delay: 4s;
}

.leaf:nth-child(4) {
  left: 40%;
  animation: fallDown 9s linear infinite;
  animation-delay: 1s;
}

.leaf:nth-child(5) {
  left: 50%;
  animation: fallDown 5s linear infinite;
  animation-delay: 6s;
}

.leaf:nth-child(6) {
  left: 60%;
  animation: fallDown 7.5s linear infinite;
  animation-delay: 3s;
}

.leaf:nth-child(7) {
  left: 70%;
  animation: fallDown 8.5s linear infinite;
  animation-delay: 5s;
}

.leaf:nth-child(8) {
  left: 80%;
  animation: fallDown 6.5s linear infinite;
  animation-delay: 7s;
}

.leaf:nth-child(9) {
  left: 90%;
  animation: fallDown 9.5s linear infinite;
  animation-delay: 2.5s;
}

.leaf:nth-child(10) {
  left: 15%;
  animation: fallDown 8s linear infinite;
  animation-delay: 4.5s;
}

/* Dark mode leaf colors */
[data-theme="dark"] .leaf {
  filter: brightness(0.8) contrast(1.1);
}

[data-theme="dark"] .leaf:nth-child(odd) {
  background: linear-gradient(135deg, rgba(182, 236, 142, 0.7) 0%, rgba(124, 224, 154, 0.7) 100%);
}

[data-theme="dark"] .leaf:nth-child(3n) {
  background: linear-gradient(135deg, rgba(92, 184, 119, 0.6) 0%, rgba(74, 156, 99, 0.6) 100%);
}

[data-theme="dark"] .leaf:nth-child(4n) {
  background: linear-gradient(135deg, rgba(163, 217, 119, 0.6) 0%, rgba(124, 224, 154, 0.6) 100%);
}

[data-theme="dark"] .leaf:nth-child(5n) {
  background: linear-gradient(135deg, rgba(143, 204, 91, 0.6) 0%, rgba(107, 160, 74, 0.6) 100%);
}

[data-theme="dark"] .leaf:nth-child(7n) {
  background: linear-gradient(135deg, rgba(230, 168, 92, 0.6) 0%, rgba(212, 147, 43, 0.6) 100%);
}

[data-theme="dark"] .leaf:nth-child(9n) {
  background: linear-gradient(135deg, rgba(212, 147, 43, 0.6) 0%, rgba(184, 118, 31, 0.6) 100%);
}

/* WIP Container */
.wip-container {
  position: relative;
  z-index: 2;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 2rem;
  padding: 3.5rem 2.5rem;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.12),
    0 12px 30px -8px rgba(34, 197, 94, 0.08),
    0 8px 25px -8px rgba(124, 224, 154, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 520px;
  width: 100%;
  animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.3s ease;
}

.wip-container:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 35px 70px -12px rgba(0, 0, 0, 0.15),
    0 16px 45px -8px rgba(34, 197, 94, 0.12),
    0 12px 40px -8px rgba(124, 224, 154, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .wip-container {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(71, 85, 105, 0.3);
  box-shadow: 
    0 20px 40px -12px rgba(0, 0, 0, 0.3),
    0 8px 25px -8px rgba(124, 224, 154, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wip-container:hover {
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.4),
    0 12px 40px -8px rgba(124, 224, 154, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.wip-section .logo {
  width: 90px;
  height: 90px;
  margin-bottom: 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #f8fafc 100%);
  padding: 1rem;
  border: 2px solid rgba(34, 197, 94, 0.15);
  box-shadow: 
    0 12px 40px -8px rgba(34, 197, 94, 0.2),
    0 8px 32px -8px rgba(124, 224, 154, 0.15),
    0 4px 16px -4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.wip-section .logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.wip-section .logo:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 20px 60px -8px rgba(34, 197, 94, 0.25),
    0 16px 48px -8px rgba(124, 224, 154, 0.2),
    0 8px 24px -4px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .wip-section .logo {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: rgba(124, 224, 154, 0.3);
  box-shadow: 
    0 8px 32px -8px rgba(124, 224, 154, 0.2),
    0 4px 16px -4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wip-section .logo:hover {
  box-shadow: 
    0 16px 48px -8px rgba(124, 224, 154, 0.3),
    0 8px 24px -4px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(124, 224, 154, 0.4);
}

.wip-section .logo:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateX(200%);
}

/* Title */
.wip-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--gray-800);
  animation: titleSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: relative;
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

[data-theme="dark"] .wip-title {
  color: #ffffff;
}

/* Description */
.wip-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  max-width: 420px;
  line-height: 1.6;
  font-weight: 400;
  animation: descriptionSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
  position: relative;
}

@keyframes descriptionSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

[data-theme="dark"] .wip-description {
  color: var(--gray-400);
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  box-shadow: 
    0 8px 24px -8px rgba(124, 224, 154, 0.4),
    0 4px 12px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: buttonSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-back:hover {
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green-darker) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 16px 40px -8px rgba(124, 224, 154, 0.5),
    0 8px 20px -4px rgba(0, 0, 0, 0.15);
}

.btn-back:hover::before {
  left: 100%;
}

.btn-back:active {
  transform: translateY(-1px) scale(0.98);
}

@keyframes buttonSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Theme Toggle for WIP Page */
.wip-theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.4);
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 12px 30px -8px rgba(0, 0, 0, 0.08),
    0 8px 24px -8px rgba(34, 197, 94, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  animation: themeToggleFadeIn 0.4s ease-out 0.1s both;
}

.wip-theme-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 18px 40px -8px rgba(0, 0, 0, 0.12),
    0 12px 30px -8px rgba(34, 197, 94, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .wip-theme-toggle {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(71, 85, 105, 0.3);
  box-shadow: 
    0 8px 24px -8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wip-theme-toggle:hover {
  box-shadow: 
    0 16px 32px -8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes themeToggleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wip-theme-toggle i {
  font-size: 1.2rem;
  position: absolute;
  transition: all var(--transition-normal);
}

.wip-theme-toggle .fa-moon {
  color: var(--gray-600);
  opacity: 1;
  transform: rotate(0deg);
}

.wip-theme-toggle .fa-sun {
  color: #f59e0b;
  opacity: 0;
  transform: rotate(-30deg);
}

[data-theme="dark"] .wip-theme-toggle .fa-moon {
  opacity: 0;
  transform: rotate(30deg);
}

[data-theme="dark"] .wip-theme-toggle .fa-sun {
  opacity: 1;
  transform: rotate(0deg);
}

/* Dark mode adjustments for wip-section */
[data-theme="dark"] .wip-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--gray-100);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .wip-section {
    padding: 1.5rem;
  }
  
  .wip-container {
    padding: 2rem 1.5rem;
    max-width: 400px;
  }
  
  .wip-title {
    font-size: 2rem;
  }
  
  .wip-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .wip-theme-toggle {
    width: 40px;
    height: 40px;
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .wip-theme-toggle i {
    font-size: 1rem;
  }
}
