/* WronAI Agents Platform Glassmorphism CSS */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --glass-bg: rgba(15, 23, 42, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(99, 102, 241, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #f43f5e;
  --accent-secondary: #a855f7;
  --gradient-primary: linear-gradient(135deg, #f43f5e 0%, #a855f7 100%);
  --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-body); line-height: 1.6; min-height: 100vh; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
a { color: var(--accent-primary); text-decoration: none; }

.navbar { position: sticky; top: 0; z-index: 100; background: var(--glass-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; }
.brand-icon { width: 38px; height: 38px; background: var(--gradient-primary); border-radius: var(--border-radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }

.search-box { position: relative; flex: 1; max-width: 450px; }
.search-input { width: 100%; padding: 0.65rem 1rem 0.65rem 2.6rem; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--glass-border); border-radius: 30px; color: #fff; outline: none; }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.cache-status-widget { display: flex; align-items: center; gap: 0.75rem; background: rgba(30, 41, 59, 0.6); border: 1px solid var(--glass-border); padding: 0.4rem 0.9rem; border-radius: 30px; font-size: 0.82rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border-radius: 30px; font-weight: 600; font-size: 0.88rem; cursor: pointer; border: none; }
.btn-primary { background: var(--gradient-primary); color: #fff; }
.btn-secondary { background: rgba(30, 41, 59, 0.8); color: #fff; border: 1px solid var(--glass-border); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

.container { max-width: 1440px; margin: 0 auto; padding: 2rem; }
.hero-card { position: relative; background: var(--gradient-card); border: 1px solid var(--glass-border); border-radius: var(--border-radius-xl); padding: 3rem; margin-bottom: 2.5rem; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: url('assets/hero_banner.jpg') no-repeat center right / cover; opacity: 0.25; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 750px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 20px; color: var(--accent-primary); font-size: 0.82rem; font-weight: 600; margin-bottom: 1rem; }
.hero-title { font-size: 2.8rem; margin-bottom: 1rem; }
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.metric-card { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--glass-border); border-radius: var(--border-radius-md); padding: 1.25rem; }
.metric-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }
.metric-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; margin-top: 0.25rem; }

.section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.view-switcher { display: flex; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--glass-border); padding: 0.25rem; border-radius: 30px; }
.view-btn { padding: 0.5rem 1.2rem; border-radius: 20px; background: transparent; border: none; color: var(--text-secondary); font-weight: 600; cursor: pointer; }
.view-btn.active { background: var(--accent-primary); color: #fff; }

.tags-section { background: rgba(15, 23, 42, 0.5); border: 1px solid var(--glass-border); border-radius: var(--border-radius-lg); padding: 1.5rem; margin-bottom: 2rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag-pill { padding: 0.4rem 0.85rem; background: rgba(30, 41, 59, 0.6); border: 1px solid var(--glass-border); border-radius: 20px; font-size: 0.82rem; font-family: var(--font-code); color: var(--text-secondary); cursor: pointer; }
.tag-pill.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }
.tag-count { background: rgba(0, 0, 0, 0.25); padding: 0.1rem 0.4rem; border-radius: 10px; font-size: 0.75rem; margin-left: 0.3rem; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.5rem; }
.project-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--border-radius-lg); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s ease; position: relative; overflow: hidden; }
.project-card:hover { border-color: var(--accent-primary); transform: translateY(-4px); }
.project-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-primary); }

.category-badge { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: var(--accent-primary); }
.status-badge { font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 10px; background: rgba(16, 185, 129, 0.15); color: #10b981; }
.project-title { font-size: 1.3rem; margin: 0.5rem 0; }

.task-box { background: rgba(15, 23, 42, 0.7); border-left: 3px solid var(--accent-primary); border-radius: 0 8px 8px 0; padding: 0.75rem; margin-bottom: 1rem; font-size: 0.88rem; }
.task-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--accent-primary); margin-bottom: 0.25rem; display: block; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.card-tag { font-size: 0.75rem; font-family: var(--font-code); padding: 0.15rem 0.5rem; background: rgba(30, 41, 59, 0.6); border-radius: 6px; color: var(--text-secondary); }

.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--glass-border); margin-top: auto; }
.github-stats { display: flex; gap: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }

.graph-container { background: rgba(15, 23, 42, 0.9); border: 1px solid var(--glass-border); border-radius: var(--border-radius-xl); padding: 1.5rem; position: relative; height: 700px; overflow: hidden; }
#cy { width: 100%; height: 100%; }
.graph-toolbar { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10; display: flex; gap: 0.5rem; background: rgba(15, 23, 42, 0.85); padding: 0.4rem; border-radius: 30px; border: 1px solid var(--glass-border); }
.graph-legend { position: absolute; bottom: 1.5rem; left: 1.5rem; z-index: 10; background: rgba(15, 23, 42, 0.9); border: 1px solid var(--glass-border); border-radius: var(--border-radius-md); padding: 0.9rem 1.2rem; font-size: 0.8rem; }

.modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(9, 13, 22, 0.85); backdrop-filter: blur(12px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-window { background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--border-radius-xl); width: 90%; max-width: 900px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; }
.modal-tabs { display: flex; gap: 1rem; padding: 0 2rem; background: rgba(15, 23, 42, 0.5); border-bottom: 1px solid var(--glass-border); }
.tab-btn { padding: 0.8rem 1rem; background: transparent; border: none; color: var(--text-muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.modal-body { padding: 2rem; overflow-y: auto; flex: 1; }
.footer { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--glass-border); text-align: center; color: var(--text-muted); font-size: 0.88rem; }
