/* VS Code Theme - Personal Website */

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

/* CSS Variables for VS Code Dark Theme */
:root {
  --vscode-bg: #1e1e1e;
  --vscode-editor-bg: #1e1e1e;
  --vscode-sidebar-bg: #252526;
  --vscode-titlebar-bg: #323233;
  --vscode-statusbar-bg: #007acc;
  --vscode-tab-bg: #2d2d30;
  --vscode-tab-active-bg: #1e1e1e;
  --vscode-tab-inactive-bg: #2d2d30;
  --vscode-border: #323233;
  --vscode-text: #cccccc;
  --vscode-text-secondary: #9cdcfe;
  --vscode-text-accent: #4fc1ff;
  --vscode-icon-folder: #dcb67a;
  --vscode-icon-file: #519aba;
  --vscode-selection: #264f78;
  --vscode-hover: #2a2d2e;
  --vscode-focus: #0e639c;
  --vscode-success: #4ec9b0;
  --vscode-warning: #ffcc02;
  --vscode-error: #f14c4c;
}

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

body {
  background-color: var(--vscode-bg);
  color: var(--vscode-text);
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  height: 100vh;
}

/* Title Bar */
#title-bar {
  background-color: var(--vscode-titlebar-bg);
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--vscode-border);
  user-select: none;
  position: relative;
}

.window-controls {
  position: absolute;
  left: 12px;
  display: flex;
  gap: 8px;
}

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.close {
  background: #ff5f56;
}
.minimize {
  background: #ffbd2e;
}
.maximize {
  background: #27ca3f;
}

.title-text {
  color: var(--vscode-text);
  font-size: 12px;
  font-weight: 400;
}

/* Layout */
#layout {
  display: flex;
  height: calc(100vh - 52px); /* Subtract title bar and status bar */
  overflow: hidden;
}

/* Activity Bar */
#activity-bar {
  width: 48px;
  background-color: var(--vscode-titlebar-bg);
  border-right: 1px solid var(--vscode-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}

.activity-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.activity-item:hover {
  background-color: var(--vscode-hover);
}

.activity-item.active {
  border-left-color: var(--vscode-text-accent);
  background-color: var(--vscode-selection);
}

.activity-icon {
  font-size: 16px;
  color: var(--vscode-text);
}

/* Sidebar */
#sidebar {
  width: 240px;
  min-width: 240px;
  background-color: var(--vscode-sidebar-bg);
  border-right: 1px solid var(--vscode-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--vscode-text);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--vscode-border);
  background-color: var(--vscode-sidebar-bg);
}

#file-list {
  list-style: none;
  padding: 4px 0;
  overflow-y: auto;
}

#file-list li {
  display: flex;
  align-items: center;
  padding: 4px 20px;
  cursor: pointer;
  transition: background-color 0.15s;
  font-size: 13px;
  color: var(--vscode-text);
}

#file-list li:hover {
  background-color: var(--vscode-hover);
}

#file-list li.active {
  background-color: var(--vscode-selection);
}

#file-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
}

#file-list li[data-section="home"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23519aba"><path d="M8 1l7 7h-2v7h-4v-4h-2v4h-4v-7h-2l7-7z"/></svg>');
}

#file-list li[data-section="about"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23519aba"><circle cx="8" cy="4" r="2"/><path d="M8 7c-3 0-5 2-5 4v1h10v-1c0-2-2-4-5-4z"/></svg>');
}

#file-list li[data-section="projects"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23dcb67a"><path d="M1 3h14v1h-14v-1zm0 2h14v9h-14v-9zm1 1v7h12v-7h-12z"/></svg>');
}

#file-list li[data-section="contact"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23519aba"><path d="M1 3h14l-7 5-7-5zm0 1.5l7 5 7-5v8.5h-14v-8.5z"/></svg>');
}

/* Main Content Area */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Tabs */
#tabs {
  display: flex;
  background-color: var(--vscode-tab-bg);
  border-bottom: 1px solid var(--vscode-border);
  overflow-x: auto;
  min-height: 35px;
}

.tab {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: var(--vscode-tab-inactive-bg);
  border-right: 1px solid var(--vscode-border);
  cursor: pointer;
  font-size: 13px;
  color: var(--vscode-text);
  min-width: 120px;
  height: 35px;
  transition: background-color 0.15s;
  position: relative;
}

.tab:hover {
  background-color: var(--vscode-hover);
}

.tab.active {
  background-color: var(--vscode-tab-active-bg);
  border-bottom: 2px solid var(--vscode-text-accent);
}

.tab .close-btn {
  margin-left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--vscode-text);
  opacity: 0;
  transition: opacity 0.15s;
}

.tab:hover .close-btn {
  opacity: 1;
}

.tab .close-btn:hover {
  background-color: var(--vscode-hover);
}

/* Content Area */
#content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: var(--vscode-editor-bg);
  font-size: 14px;
  line-height: 1.6;
}

.content-section {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.content-section:not(.hidden) {
  display: block;
}

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

/* Home Section */
.home-header {
  text-align: center;
  padding: 60px 20px;
}

.home-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.first-name {
  color: var(--vscode-text-accent);
}

.last-name {
  color: var(--vscode-success);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--vscode-text-secondary);
  font-weight: 300;
  margin-bottom: 32px;
}

/* Content Typography */
h1 {
  color: var(--vscode-text-accent);
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

h2 {
  color: var(--vscode-success);
  font-size: 1.5rem;
  margin: 24px 0 16px 0;
  font-weight: 500;
}

p {
  margin-bottom: 16px;
  color: var(--vscode-text);
  line-height: 1.6;
}

/* Links */
a {
  color: var(--vscode-text-accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--vscode-text-secondary);
  text-decoration: underline;
}

.project-link {
  color: var(--vscode-success);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}

.project-link:hover {
  color: var(--vscode-text-accent);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 16px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
}

.contact-left h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-left p {
  font-size: 1.1rem;
  color: var(--vscode-text-secondary);
}

.contact-right h2 {
  margin-bottom: 20px;
}

.contact-right a {
  display: block;
  margin: 12px 0;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.contact-right a:hover {
  border-bottom-color: var(--vscode-text-accent);
}

/* Form Styles */
form {
  margin-top: 32px;
}

.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--vscode-text);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--vscode-border);
  border-radius: 4px;
  background-color: var(--vscode-sidebar-bg);
  color: var(--vscode-text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--vscode-text-accent);
  box-shadow: 0 0 0 2px rgba(79, 193, 255, 0.2);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

#button-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

button,
input[type="submit"],
input[type="reset"] {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

#submit-btn {
  background-color: var(--vscode-text-accent);
  color: #fff;
  flex: 1;
}

#submit-btn:hover {
  background-color: #0e639c;
  transform: translateY(-1px);
}

#reset-btn {
  background-color: var(--vscode-border);
  color: var(--vscode-text);
  flex: 1;
}

#reset-btn:hover {
  background-color: var(--vscode-hover);
}

/* Status Bar */
#status-bar {
  background-color: var(--vscode-statusbar-bg);
  color: #fff;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  border-top: 1px solid var(--vscode-border);
}

#status-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

#status-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.status-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  #layout {
    flex-direction: column;
  }

  #activity-bar {
    width: 100%;
    height: 48px;
    flex-direction: row;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid var(--vscode-border);
  }

  #sidebar {
    width: 100%;
    min-width: unset;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--vscode-border);
  }

  #file-list {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
  }

  #file-list li {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 8px;
    margin: 2px;
    border-radius: 4px;
  }

  #content {
    padding: 16px;
  }

  .home-header {
    padding: 40px 16px;
  }

  .home-header h1 {
    font-size: 2rem;
  }

  #button-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  .home-header h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  #content {
    padding: 12px;
  }

  .tab {
    min-width: 100px;
    padding: 0 12px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--vscode-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vscode-hover);
}

/* Selection */
::selection {
  background-color: var(--vscode-selection);
  color: var(--vscode-text);
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--vscode-text-accent);
  outline-offset: 2px;
}
