@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;600;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --aero-glass: rgba(255, 255, 255, 0.12);
  --aero-glass-strong: rgba(255, 255, 255, 0.2);
  --aero-glass-border: rgba(255, 255, 255, 0.25);
  --aero-glow: rgba(255, 255, 255, 0.08);
  --aero-shadow: rgba(0, 0, 0, 0.3);
  --aero-blur: 20px;
  --aero-radius: 12px;
  --aero-radius-lg: 18px;
  --nav-height: 72px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-primary);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  z-index: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.35);
}

/* Glass Panel */
.glass {
  background: var(--aero-glass);
  backdrop-filter: blur(var(--aero-blur));
  -webkit-backdrop-filter: blur(var(--aero-blur));
  border: 1px solid var(--aero-glass-border);
  border-radius: var(--aero-radius);
  box-shadow:
    0 8px 32px var(--aero-shadow),
    inset 0 1px 0 var(--aero-glow);
}

.glass-strong {
  background: var(--aero-glass-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--aero-radius-lg);
  box-shadow:
    0 8px 32px var(--aero-shadow),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Buttons */
.aero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--aero-glass-border);
  border-radius: 8px;
  background: var(--aero-glass);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.aero-btn:hover {
  background: var(--aero-glass-strong);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

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

.aero-btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: rgba(255,255,255,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.aero-btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  box-shadow: 0 4px 24px var(--accent-glow);
}

/* Inputs */
.aero-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--aero-glass-border);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.aero-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}

.aero-input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 1000;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 20px;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.nav-item:hover {
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  color: #fff;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Page container */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 20px);
  padding-top: 20px;
}

.page-header {
  padding: 20px 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.page-content {
  padding: 0 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-content { padding: 0 15px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .page-header { padding: 15px; }
  .page-header h1 { font-size: 22px; }
}

/* Mobile Navigation */
@media (max-width: 600px) {
  :root {
    --nav-height: 70px;
  }
  .bottom-nav {
    height: var(--nav-height);
    padding: 0 4px;
    gap: 0;
  }
  .nav-item {
    flex: 1;
    padding: 8px 4px;
    gap: 3px;
    min-width: 0;
  }
  .nav-item span {
    display: block;
    font-size: 9px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .nav-icon {
    width: 28px;
    height: 28px;
  }
  .nav-icon svg,
  .nav-icon img {
    width: 26px;
    height: 26px;
  }
  .page {
    padding-bottom: calc(var(--nav-height) + 16px);
  }
  .page-header {
    padding: 15px;
  }
  .page-header h1 {
    font-size: 22px;
  }
  .aero-card {
    padding: 16px;
  }
  .modal-content {
    padding: 20px;
    border-radius: 12px;
  }
}

/* Card */
.aero-card {
  background: var(--aero-glass);
  backdrop-filter: blur(var(--aero-blur));
  -webkit-backdrop-filter: blur(var(--aero-blur));
  border: 1px solid var(--aero-glass-border);
  border-radius: var(--aero-radius);
  padding: 20px;
  box-shadow: 0 8px 32px var(--aero-shadow), inset 0 1px 0 var(--aero-glow);
  transition: var(--transition);
}

.aero-card:hover {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--aero-glass);
  border: 1px solid var(--aero-glass-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.modal {
  background: rgba(20, 30, 50, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid var(--aero-glass-border);
  border-radius: var(--aero-radius-lg);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.modal h2 {
  font-weight: 300;
  margin-bottom: 20px;
  font-size: 22px;
}

/* Utility */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* Upload Area */
.upload-area {
  border: 2px dashed var(--aero-glass-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-area:hover {
  border-color: var(--accent-primary);
  background: rgba(0,0,0,0.1);
}
.upload-area.dragover {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}
