﻿:root {
  --dt-primary: #6366f1;
  --dt-primary-hover: #4f46e5;
  --dt-secondary: #06b6d4;
  --dt-accent: #10b981;
  --dt-danger: #ef4444;
  --dt-warning: #f59e0b;
  --dt-bg-glass: rgba(255, 255, 255, 0.7);
  --dt-bg-glass-dark: rgba(15, 23, 42, 0.8);
  --dt-border-glass: rgba(255, 255, 255, 0.2);
  --dt-text-main: #1e293b;
  --dt-text-muted: #64748b;
  --dt-radius-lg: 20px;
  --dt-radius-md: 12px;
  --dt-shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --dt-shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --dt-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Elementor Footer Override - Ensure content is visible */
body {
  padding-bottom: 400px !important;
  /* Space for Elementor footer */
}

footer,
.elementor-location-footer,
.site-footer,
#footer,
.footer {
  position: relative !important;
  z-index: 1 !important;
}

/* Glassmorphism utility */
.dt-glass {
  background: var(--dt-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dt-border-glass);
  box-shadow: var(--dt-shadow-md);
}

/* Core Layouts */
.dt-profile,
.dt-onboarding,
.dt-forum,
.dt-verified-page {
  font-family: var(--dt-font);
  color: var(--dt-text-main);
  max-width: 1100px;
  margin: 40px auto;
  padding: 30px;
  border-radius: var(--dt-radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.dt-profile {
  max-width: 100%;
  margin: 0;
  padding: 20px;
  padding-bottom: 60px;
  border-radius: 0;
  z-index: 99999 !important;
  position: relative !important;
  min-height: 100vh;
  display: flex;
  gap: 30px;
  max-width: 100%;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Profile States */
.dt-profile.dt-centered {
  justify-content: center;
}

.dt-profile.dt-centered .dt-left {
  max-width: 600px;
  width: 100%;
}

.dt-profile.dt-centered .dt-right {
  display: none;
}

.dt-profile.dt-split .dt-left {
  flex: 0 0 25%;
  min-width: 280px;
}

.dt-profile.dt-split .dt-right {
  flex: 1;
  display: flex;
}

/* Browser Toggle Button */
.dt-browser-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--dt-primary), var(--dt-primary-hover));
  color: white;
  border: none;
  border-radius: var(--dt-radius-md) 0 0 var(--dt-radius-md);
  padding: 16px 12px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 20px;
}

.dt-browser-toggle:hover {
  padding-right: 16px;
  box-shadow: -6px 0 20px rgba(99, 102, 241, 0.3);
}

/* Headers & Typography */
h1,
h2,
h3 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.dt-section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--dt-text-muted);
  font-weight: 700;
  margin-bottom: 20px;
}

/* Profile Components */
.dt-left {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dt-right {
  min-height: 500px;
  border-radius: var(--dt-radius-lg);
  background: white;
  box-shadow: var(--dt-shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dt-browser-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px;
  background: rgba(0, 0, 0, .04);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.dt-browser-bar button {
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease;
  border-radius: 6px;
}

.dt-browser-bar button:hover {
  background: rgba(0, 0, 0, .08);
}

#project-browser {
  flex: 1;
  width: 100%;
  border: 0;
  background: white;
}

.dt-avatar {
  position: relative;
  margin-bottom: 20px;
}

.dt-avatar img {
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--dt-shadow-md);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dt-avatar:hover img {
  transform: scale(1.05);
}

.dt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.dt-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--dt-bg-glass);
  border: 1px solid var(--dt-border-glass);
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.dt-badge-verified {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Skill Bars */
.dt-skill {
  margin: 24px 0;
}

.dt-skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.dt-bar {
  height: 12px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
}

.dt-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dt-primary), var(--dt-secondary));
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Buttons */
.dt-primary,
.dt-button {
  background: linear-gradient(135deg, var(--dt-primary), var(--dt-primary-hover));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--dt-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.dt-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.dt-primary:active {
  transform: translateY(0);
}

/* Forms & Inputs */
.dt-input,
select.dt-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--dt-radius-md);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.dt-input:focus {
  outline: none;
  border-color: var(--dt-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: white;
}

/* Quiz Styles */
.dt-quiz-modal {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.dt-quiz-box {
  border-radius: var(--dt-radius-lg);
  border: 1px solid var(--dt-border-glass);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dt-q {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px;
  transition: transform 0.2s ease;
}

.dt-q:hover {
  transform: scale(1.01);
  border-color: var(--dt-primary);
}

.dt-choice {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 14px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dt-choice:hover {
  border-color: var(--dt-primary);
  color: var(--dt-primary);
}

.dt-choice.sel {
  background: var(--dt-primary);
  color: white;
  border-color: var(--dt-primary);
}

/* Forum UI */
.dt-thread-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.dt-thread-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--dt-radius-md);
  padding: 20px;
  transition: all 0.3s ease;
}

.dt-thread-card:hover {
  transform: translateX(8px);
  border-color: var(--dt-primary);
  box-shadow: var(--dt-shadow-md);
}

.dt-thread-title {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 8px;
  display: block;
}

.dt-thread-meta {
  font-size: 0.875rem;
  color: var(--dt-text-muted);
}

/* Lock / Note states */
.dt-lock-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  border-radius: var(--dt-radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.dt-lock-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dt-profile,
.dt-onboarding,
.dt-forum {
  animation: fadeIn 0.4s ease-out;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .dt-profile {
    flex-direction: column;
  }

  .dt-left {
    width: 100%;
    flex: none;
  }

  .dt-avatar {
    text-align: center;
  }

  .dt-avatar img {
    width: 120px;
    height: 120px;
  }
}

/* Cache reload bridge info */
.dt-auth-required {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 15px;
  border-radius: var(--dt-radius-md);
  text-align: center;
  font-weight: 600;
}