/* Cowlsly Futuristic Dark Theme - Premium Marble & Gold Edition */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --color-midnight: #0a1428;
  --color-emerald: #10b981;
  --color-cyan: #22d3ee;
  --color-gold: #fbbf24;
  --color-purple: #a855f7;
  --color-pink: #ec4899;
  --color-green: #22c55e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-midnight);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(16, 185, 129, 0.08), transparent);
  background-attachment: fixed;
}

::selection {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
}

.logo-font {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* Premium marble/gold frame styling */
.marble-frame {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.marble-frame:hover {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

/* Animated frame overlay */
.animated-frame {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}

.marble-frame:hover .animated-frame {
  opacity: 0.85;
}

/* Premium card with gold accent */
.premium-card {
  background: linear-gradient(145deg, #111827 0%, #0f172a 100%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.premium-card:active {
  transform: scale(0.995);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Gold accent elements */
.gold-accent {
  color: #fbbf24;
}

/* Futuristic glow effects */
.glow-emerald {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transition: box-shadow 0.3s ease;
}
.glow-emerald:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transition: box-shadow 0.3s ease;
}
.glow-purple:hover {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
}

/* Card styles */
.card {
  background-color: #111827;
  border: 1px solid #1f2937;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card:active {
  transform: scale(0.985);
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #a855f7;
}
.nav-link.active {
  color: #fff;
  font-weight: 500;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #a855f7, #ec4899);
}

.nav-logo {
  transition: opacity 0.2s ease;
}
.nav-logo:hover {
  opacity: 0.85;
}

/* ========== PREMIUM WIDE BUTTONS ========== */
.premium-wide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  min-height: 68px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.25), 0 4px 6px -4px rgb(0 0 0 / 0.2);
  position: relative;
  overflow: hidden;
}

.premium-wide-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.premium-wide-btn:active {
  transform: scale(0.97);
  filter: brightness(0.92) saturate(0.95);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2), inset 0 2px 4px 0 rgb(0 0 0 / 0.3);
}

.btn-create-account {
  background: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  color: #0a1428;
}

.btn-collaborate {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
}

.btn-log-in {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
}

.btn-sign-in {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
}

.btn-i-agree {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.btn-verify {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #0a1428;
}

/* Allies & associates cards */
.category-card,
.rec-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.rec-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
}

/* News & reviews feed */
.news-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.source-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.source-badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.source-badge-cyan {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
}

.source-badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.feed-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.feed-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: feed-pulse 1.2s ease-in-out infinite;
}

.feed-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.feed-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes feed-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Section headers */
.section-header {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
}

/* Subtle section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #1f2937, transparent);
}

/* Placeholder for future images */
.placeholder-img {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 0.875rem;
  border: 1px dashed #374151;
  min-height: 200px;
}

/* Footer styling */
footer {
  border-top: 1px solid #1f2937;
}

/* Button enhancements with strong pressed states */
.btn-primary, .btn-purple {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover, .btn-purple:hover {
  transform: translateY(-1px);
}

.btn-primary:active, .btn-purple:active {
  transform: scale(0.96);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2), inset 0 2px 4px 0 rgb(0 0 0 / 0.3);
  filter: brightness(0.95);
}

/* Skip link — visible on keyboard focus */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #a855f7;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 0.75rem 0;
  text-decoration: none;
}

.skip-to-main:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Responsive nav */
@media (max-width: 768px) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: block;
  }
}