/*
Theme Name: dapps.co Theme
Theme URI: https://dapps.co
Author: Antigravity
Author URI: https://dapps.co
Description: A premium Web3 theme matching roar-communities design.
Version: 3.0.0
*/

:root {
  /* Repo Authenticated Colors (Dark Mode) */
  --background: 222.2 84% 4.9%;
  /* #020817 */
  --foreground: 210 40% 98%;
  /* #f8fafc */
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --primary: 191 91% 36%;
  /* #0891b2 (Cyan) */
  --primary-foreground: 222.2 84% 4.9%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 191 91% 36%;
  --radius: 0.5rem;

  /* Helper hexes for gradients */
  --hex-primary: #0891b2;
  --hex-cyber: #06b6d4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'SF Pro Display', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

a {
  color: inherit;
  text-decoration: none;
  transition: colors 0.2s;
}

a:hover {
  color: hsl(var(--primary));
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #0891b2, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-navigation a {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.main-navigation a:hover {
  color: hsl(var(--foreground));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 15px -3px rgba(8, 145, 178, 0.4);
}

.btn-primary:hover {
  background-color: #0e7490;
  /* Darker cyan */
  transform: translateY(-1px);
}

/* Page Header / Hero */
.page-header {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

/* Glow Effect */
.glow-effect {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.section-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.2rem;
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  margin: 0 auto;
}

/* Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding-bottom: 6rem;
}

.post-card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.post-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 30px -10px rgba(8, 145, 178, 0.15);
  transform: translateY(-2px);
}

.post-thumbnail {
  aspect-ratio: 16/9;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-excerpt {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.btn-link {
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}