/**
 * Components - Magic Cat Themes Showcase
 * Shared UI components (buttons, links, footer, etc.)
 */

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  
  width: 50px;
  height: 50px;
  border-radius: 50%;
  
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid var(--border-color);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  transition: all 0.3s ease;
  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 25px var(--glow-color);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-icon {
  font-size: 1.5rem;
  display: block;
  animation: twinkle 2s ease-in-out infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .theme-toggle-btn {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .theme-icon {
    font-size: 1.3rem;
  }
}

/* ===== ORACLE LINK ===== */
.oracle-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  
  transition: all 0.3s ease;
  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.oracle-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px var(--glow-color);
  background: linear-gradient(135deg, #7c85f0 0%, #8b5bb8 100%);
}

.oracle-link:active {
  transform: translateY(-1px) scale(1.02);
}

/* ===== COMING SOON BADGES ===== */
.coming-soon-badge-large {
  display: inline-block;
  padding: 1rem 2.5rem;
  
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border: 3px solid rgba(251, 191, 36, 0.5);
  border-radius: 50px;
  
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 2px;
  
  box-shadow: 
    0 4px 20px rgba(245, 158, 11, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  
  animation: glowPulse 2s ease-in-out infinite;
}

.coming-soon-hero {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(75, 50, 125, 0.2);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .coming-soon-badge-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
  }
  
  .coming-soon-hero {
    margin-top: 1.5rem;
    padding: 1.5rem 1rem;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .coming-soon-badge-large {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  .coming-soon-hero {
    padding: 1.25rem 0.75rem;
  }
  
  .coming-soon-hero p {
    font-size: 0.85rem;
  }
}

/* ===== FOOTER ===== */
.footer-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-color) 50%,
    transparent 100%
  );
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Mobile footer */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-links span {
    display: none; /* Hide bullets on mobile */
  }
  
  .footer-link {
    font-size: 0.95rem;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .footer-links {
    gap: 0.75rem;
  }
  
  .footer-link {
    font-size: 0.9rem;
  }
}

/* ===== PRIVACY POLICY PAGE ===== */
.privacy-content {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.privacy-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.privacy-section h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-section ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.privacy-section ul li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.privacy-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.privacy-section a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s ease;
}

.privacy-section a:hover {
  text-decoration-color: var(--accent-primary);
}

/* Mobile privacy page */
@media (max-width: 768px) {
  .privacy-content {
    padding: 1.5rem;
  }
  
  .privacy-section h2 {
    font-size: 1.25rem;
  }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7c85f0 0%, #8b5bb8 100%);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #764ba2 var(--bg-secondary);
}

/* ===== CONTACT MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 40px var(--glow-color);
  animation: modalSlideIn 0.3s ease;
}

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

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: bold;
  background: linear-gradient(to right, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-body {
  text-align: center;
}

.modal-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.email-container {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.email-container:hover {
  background: rgba(167, 139, 250, 0.15);
  box-shadow: 0 0 20px var(--glow-color);
}

.email-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.email-icon {
  font-size: 1.5rem;
}

.email-text {
  color: #a78bfa;
  font-size: 1.1rem;
  font-weight: 600;
  user-select: all;
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.copy-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--glow-color);
}

.copy-email-btn:active {
  transform: translateY(0);
}

.copy-email-btn.copied {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.copy-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.copy-hint.success {
  color: #10b981;
  opacity: 1;
  font-weight: 600;
}

/* Mobile modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-text {
    font-size: 0.95rem;
  }
  
  .email-text {
    font-size: 0.95rem;
  }
  
  .copy-email-btn {
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
  }
}
