/* base.css - Visual Studio C# IDE Theme */
@import url('variables.css');

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Subtle IDE Ambient Glow */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 204, 0.06) 0%, rgba(78, 201, 176, 0.02) 70%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -120px;
  right: -120px;
}

body::after {
  bottom: 10%;
  left: -200px;
}

/* Core Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333337;
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: #4f4f54;
}

/* Shared UI Components */
main {
  flex-grow: 1;
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
}

/* Visual Studio IDE Header & Navbar */
header.site-header, header:not(.details-panel-card):not(.details-title-card) {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: #181818;
  border-bottom: 1px solid #2d2d30;
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo, .footer-logo {
  font-family: var(--font-header);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.footer-logo {
  font-size: 1.35rem;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.logo .logo-prowl,
.footer-logo .logo-prowl,
.logo-prowl {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800;
}

.logo-systems {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #00f2fe;
  font-weight: 800;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #cccccc;
  position: relative;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-header);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cs-vs-blue);
  transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-feedback-btn {
  background: #252526;
  border: 1px solid #3f3f46;
  color: #d4d4d4;
  padding: 0.4rem 0.95rem;
  border-radius: 6px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-feedback-btn:hover {
  background: #2d2d30;
  border-color: #007acc;
  color: #ffffff;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #d4d4d4;
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* Footer Section */
footer {
  background: #181818;
  border-top: 1px solid #2d2d30;
  padding: 2.5rem 0;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-link {
  color: #858585;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--cs-keyword);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Visual Studio Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #007acc;
  color: #ffffff;
  border: 1px solid #1f8ad2;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.btn-primary:hover {
  background: #1f8ad2;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 122, 204, 0.45);
}

.btn-secondary {
  background: #252526;
  color: #d4d4d4;
  border: 1px solid #3f3f46;
}

.btn-secondary:hover {
  background: #2d2d30;
  color: #ffffff;
  border-color: #569cd6;
  transform: translateY(-1px);
}

/* Page Animations */
.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adaptations */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #181818;
    border-left: 1px solid #2d2d30;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition-normal);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
