/*
Theme Name: RESPO Fluent Research
Theme URI: https://respo.one
Author: RESPO Development Team
Author URI: https://respo.one
Description: Ultra-modern Academic Research Repository & Journal Management System with Native Windows 11 Fluent & Modern Web App (Flet) aesthetics. Optimized for Google Scholar & Open Access Indexing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: respo-theme
Tags: academic, journal, research-repository, fluent-design, dark-mode, scholar-seo
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --respo-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  --respo-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
  
  /* Windows 11 Fluent Dark Palette */
  --respo-bg: #090d16;
  --respo-surface: #101726;
  --respo-surface-acrylic: rgba(16, 23, 38, 0.75);
  --respo-surface-mica: rgba(22, 32, 54, 0.65);
  --respo-card-bg: rgba(26, 37, 62, 0.45);
  --respo-card-hover: rgba(35, 50, 84, 0.65);
  --respo-border: rgba(255, 255, 255, 0.08);
  --respo-border-focus: rgba(0, 150, 255, 0.5);
  --respo-border-glow: rgba(0, 210, 255, 0.25);
  
  /* Accent Gradients & Colors */
  --respo-accent-primary: #0078d4;
  --respo-accent-teal: #00f2fe;
  --respo-accent-cyan: #4facfe;
  --respo-gradient-primary: linear-gradient(135deg, #0078d4 0%, #00f2fe 100%);
  --respo-gradient-subtle: linear-gradient(135deg, rgba(0, 120, 212, 0.15) 0%, rgba(0, 242, 254, 0.08) 100%);
  --respo-gradient-gold: linear-gradient(135deg, #ffb300 0%, #f77100 100%);
  --respo-gradient-emerald: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);

  /* Text & Elements */
  --respo-text-main: #f0f6fc;
  --respo-text-muted: #8b949e;
  --respo-text-subtle: #57606a;
  
  /* Shadows & Elevation */
  --respo-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --respo-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --respo-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --respo-shadow-glow: 0 0 30px rgba(0, 168, 255, 0.15);
  
  --respo-radius-sm: 6px;
  --respo-radius-md: 12px;
  --respo-radius-lg: 18px;
  --respo-radius-full: 9999px;
  
  --respo-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables (Windows 11 Fluent Light Mode) */
[data-theme="light"] {
  --respo-bg: #f4f6fa;
  --respo-surface: #ffffff;
  --respo-surface-acrylic: rgba(255, 255, 255, 0.85);
  --respo-surface-mica: rgba(240, 244, 250, 0.9);
  --respo-card-bg: rgba(255, 255, 255, 0.88);
  --respo-card-hover: #ffffff;
  --respo-border: rgba(0, 0, 0, 0.08);
  --respo-border-focus: rgba(0, 120, 212, 0.65);
  --respo-border-glow: rgba(0, 120, 212, 0.25);
  --respo-text-main: #0f172a;
  --respo-text-muted: #475569;
  --respo-text-subtle: #94a3b8;
  --respo-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --respo-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --respo-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.11);
  --respo-shadow-glow: 0 0 30px rgba(0, 120, 212, 0.12);
}

[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(0, 120, 212, 0.08) 0%, transparent 70%);
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.06) 0%, transparent 65%);
}

[data-theme="light"] .respo-bibtex-box {
  background: #f8fafc;
  color: #1e293b;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .respo-input, 
[data-theme="light"] .respo-select, 
[data-theme="light"] .respo-textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  border-bottom-color: rgba(0, 0, 0, 0.28);
  color: #0f172a;
}

[data-theme="light"] .respo-input:focus, 
[data-theme="light"] .respo-select:focus, 
[data-theme="light"] .respo-textarea:focus {
  background: #ffffff;
  border-color: var(--respo-accent-primary);
  border-bottom-color: var(--respo-accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18);
}

[data-theme="light"] .respo-btn-secondary {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="light"] .respo-btn-secondary:hover {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .respo-btn-acrylic {
  background: rgba(0, 120, 212, 0.08);
  border-color: rgba(0, 120, 212, 0.25);
  color: #0078d4;
}

[data-theme="light"] .respo-table th {
  background: #f1f5f9;
  color: #475569;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .respo-table td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

[data-theme="light"] .respo-table tr:hover td {
  background: rgba(0, 120, 212, 0.04);
}

[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
  color: #0f172a;
}

/* Theme Toggle Button Component */
.respo-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--respo-radius-full);
  background: var(--respo-card-bg);
  border: 1px solid var(--respo-border);
  color: var(--respo-text-main);
  cursor: pointer;
  font-size: 1.15rem;
  transition: var(--respo-transition);
  outline: none;
}

.respo-theme-toggle:hover {
  background: var(--respo-card-hover);
  border-color: var(--respo-accent-cyan);
  transform: rotate(18deg) scale(1.08);
}

.respo-theme-icon-light { display: none; }
.respo-theme-icon-dark  { display: inline-block; }

[data-theme="light"] .respo-theme-icon-light { display: inline-block; }
[data-theme="light"] .respo-theme-icon-dark  { display: none; }

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--respo-font);
  background-color: var(--respo-bg);
  color: var(--respo-text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Radial Aura Background */
body::before {
  content: '';
  position: fixed;
  top: -10vh;
  left: 10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 120, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -2;
  filter: blur(80px);
}

body::after {
  content: '';
  position: fixed;
  bottom: -15vh;
  right: 5vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: -2;
  filter: blur(90px);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--respo-text-main);
  font-weight: 700;
  line-height: 1.25;
}

.respo-gradient-text {
  background: var(--respo-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Acrylic Container & Cards */
.respo-acrylic-card {
  background: var(--respo-card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--respo-border);
  border-radius: var(--respo-radius-md);
  box-shadow: var(--respo-shadow-md);
  transition: var(--respo-transition);
}

.respo-acrylic-card:hover {
  background: var(--respo-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--respo-shadow-lg), var(--respo-shadow-glow);
  transform: translateY(-3px);
}

/* Header & App Bar (Windows 11 Mica Bar) */
.respo-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--respo-surface-acrylic);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--respo-border);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.respo-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--respo-text-main);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
}

.respo-logo-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--respo-gradient-subtle);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  padding: 2px 7px;
  border-radius: var(--respo-radius-full);
  text-transform: uppercase;
}

.respo-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

.respo-nav-link {
  color: var(--respo-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--respo-radius-sm);
  transition: var(--respo-transition);
}

.respo-nav-link:hover, .respo-nav-link.active {
  color: var(--respo-text-main);
  background: rgba(255, 255, 255, 0.06);
}

/* Fluent UI Action Buttons */
.respo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--respo-font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--respo-radius-sm);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--respo-transition);
}

.respo-btn-primary {
  background: var(--respo-gradient-primary);
  color: #090d16;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.35);
}

.respo-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

.respo-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--respo-border);
  color: var(--respo-text-main);
}

.respo-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.respo-btn-acrylic {
  background: var(--respo-card-bg);
  border: 1px solid var(--respo-border);
  backdrop-filter: blur(12px);
  color: #00f2fe;
}

.respo-btn-acrylic:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.4);
}

/* Form Controls (Windows 11 Fluent Textbox) */
.respo-form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.respo-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--respo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.respo-input, .respo-select, .respo-textarea {
  width: 100%;
  font-family: var(--respo-font);
  font-size: 0.95rem;
  color: var(--respo-text-main);
  background: rgba(10, 15, 26, 0.65);
  border: 1px solid var(--respo-border);
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--respo-radius-sm);
  padding: 0.65rem 0.95rem;
  transition: var(--respo-transition);
  outline: none;
}

.respo-input:focus, .respo-select:focus, .respo-textarea:focus {
  background: rgba(14, 21, 37, 0.9);
  border-color: var(--respo-border-focus);
  border-bottom-color: var(--respo-accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.respo-input::placeholder, .respo-textarea::placeholder {
  color: var(--respo-text-subtle);
}

/* Badges & Metrics (Academic Citations, JIT, AIT, Impact) */
.respo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--respo-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--respo-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--respo-border);
  color: var(--respo-text-muted);
}

.respo-tag-jit {
  background: rgba(0, 120, 212, 0.15);
  border-color: rgba(0, 120, 212, 0.35);
  color: #60cdff;
}

.respo-tag-ait {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.3);
  color: #69f0ae;
}

.respo-tag-doi {
  background: rgba(255, 179, 0, 0.12);
  border-color: rgba(255, 179, 0, 0.3);
  color: #ffd54f;
}

.respo-metrics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--respo-card-bg);
  border: 1px solid var(--respo-border);
  border-radius: var(--respo-radius-md);
  margin: 1.5rem 0;
}

.respo-metric-item {
  display: flex;
  flex-direction: column;
}

.respo-metric-label {
  font-size: 0.72rem;
  color: var(--respo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.respo-metric-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--respo-mono);
}

/* BibTeX Code Preview Box */
.respo-bibtex-box {
  background: #060910;
  border: 1px solid var(--respo-border);
  border-radius: var(--respo-radius-sm);
  padding: 1.25rem;
  font-family: var(--respo-mono);
  font-size: 0.85rem;
  color: #c9d1d9;
  position: relative;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 1rem 0;
}

.respo-copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--respo-border);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--respo-radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}

.respo-copy-btn:hover {
  background: var(--respo-accent-primary);
}

/* Data Table (Fluent DataGrid) */
.respo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: var(--respo-card-bg);
  border: 1px solid var(--respo-border);
  border-radius: var(--respo-radius-md);
  overflow: hidden;
}

.respo-table th {
  background: rgba(16, 23, 38, 0.85);
  color: var(--respo-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--respo-border);
  text-align: left;
}

.respo-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  color: var(--respo-text-main);
  vertical-align: middle;
}

.respo-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.respo-table tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.respo-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--respo-radius-full);
  text-transform: uppercase;
}

.respo-status-published {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.respo-status-review {
  background: rgba(255, 179, 0, 0.15);
  color: #ffb300;
  border: 1px solid rgba(255, 179, 0, 0.35);
}

.respo-status-submitted {
  background: rgba(0, 120, 212, 0.15);
  color: #60cdff;
  border: 1px solid rgba(0, 120, 212, 0.35);
}

/* Layout Utilities */
.respo-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.respo-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.respo-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

/* Footer */
.respo-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--respo-border);
  background: var(--respo-surface-acrylic);
  padding: 3rem 2rem 2rem;
  text-align: center;
  color: var(--respo-text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .respo-navbar {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }
  .respo-nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .respo-container {
    padding: 1.5rem 1rem;
  }
  .respo-grid-2, .respo-grid-3 {
    grid-template-columns: 1fr;
  }
}
