/* Classic Mac System Font Stack */
@import url('https://fonts.googleapis.com/css2?family=Chicago&display=swap');

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

/* Body */
body {
  background: #c0c0c0;
  font-family: Chicago, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

/* Mac Desktop */
.mac-desktop {
  width: 100%;
  max-width: 640px;
  margin: 2rem;
}

/* Mac Window */
.mac-window {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 
    2px 2px 0 #000000,
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #dfdfdf;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

/* Window Header */
.window-header {
  background: #000000;
  color: #ffffff;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #000000;
  position: relative;
  overflow: hidden;
}

.window-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.window-header:hover::before {
  width: 300px;
  height: 300px;
}

.window-controls {
  display: flex;
  gap: 4px;
}

.control {
  width: 12px;
  height: 12px;
  border: 1px solid #000000;
  background: #ffffff;
  display: block;
}

.control.close {
  background: #ffffff;
}

.window-title {
  flex: 1;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
}

.window-version {
  font-size: 10px;
  opacity: 0.5;
  cursor: pointer;
  padding: 0 8px;
  transition: opacity 0.2s ease;
  position: relative;
}

.window-version:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  background: #000000;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid #ffffff;
  margin-top: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.window-version:hover .tooltip {
  opacity: 1;
}

.tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 10px;
  border: 4px solid transparent;
  border-bottom-color: #000000;
}

/* Window Tabs */
.window-tabs {
  background: #e0e0e0;
  padding: 0;
  display: flex;
  border-bottom: 2px solid #000000;
}

.tab {
  background: #c0c0c0;
  border: none;
  padding: 8px 20px;
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  color: #000000;
  border-right: 1px solid #808080;
  position: relative;
  transition: background 0.2s ease;
}

.tab:hover {
  background: #d0d0d0;
}

.tab.active {
  background: #ffffff;
  border-bottom: 2px solid #ffffff;
  margin-bottom: -2px;
}

.tab:first-child {
  border-left: none;
}

/* Window Content */
.window-content {
  padding: 20px;
  background: #ffffff;
  min-height: 400px;
  position: relative;
  flex: 1;
}

/* Tab Content */
.tab-content {
  display: none;
  min-height: 380px;
}

.tab-content.active {
  display: block;
}

/* Profile Header */
.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px dotted #000000;
}

.profile-photo-container {
  width: 100px;
  height: 100px;
  border: 2px solid #000000;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-photo-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(128, 128, 128, 0.1) 50%, 
    transparent 70%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.profile-photo-container:hover::after {
  opacity: 1;
  width: 150%;
  height: 150%;
}

.profile-photo-container:hover {
  border-color: #666666;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.5);
  transition: transform 0.3s ease;
}

.profile-photo-container:hover .profile-photo {
  transform: scale(1.6);
}

.profile-text {
  flex: 1;
}

.name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 4px;
  display: inline-block;
  position: relative;
  cursor: default;
}

.name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
    #666666 0%,
    #999999 50%,
    #666666 100%);
  transition: width 0.3s ease;
}

.name:hover::after {
  width: 100%;
}

.tagline {
  font-size: 14px;
  margin-bottom: 4px;
}

.age {
  font-size: 12px;
  color: #333333;
}


/* Info Section */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.info-box {
  padding: 15px;
  background: #f0f0f0;
  border: 1px solid #000000;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle,
    rgba(200, 200, 200, 0.15) 0%,
    transparent 70%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.info-box:hover::before {
  opacity: 1;
  width: 200%;
  height: 200%;
}

.info-box:hover {
  border-color: #666666;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.info-box h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.info-box p {
  font-size: 12px;
  margin-bottom: 4px;
}

.info-box .sub {
  color: #666666;
  font-size: 11px;
}

/* Links */
a {
  color: #000000;
  text-decoration: underline;
}

a:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
}

/* Contact Section */
.contact-section {
  padding-top: 20px;
  border-top: 2px dotted #000000;
}

.contact-section h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mac Button */

.mac-button {
  padding: 8px 16px;
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #dfdfdf;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.mac-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle,
    rgba(128, 128, 128, 0.3) 0%,
    rgba(64, 64, 64, 0.2) 50%,
    transparent 70%);
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.mac-button:hover::before {
  width: 200%;
  height: 200%;
}

.mac-button:hover {
  color: #ffffff;
  border-color: #333333;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.mac-button:active {
  box-shadow: 
    inset 1px 1px 0 #808080,
    inset -1px -1px 0 #dfdfdf;
  transform: translate(1px, 1px);
}

/* Responsive */
@media (max-width: 768px) {
  .mac-desktop {
    margin: 1rem;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-photo {
    width: 80px;
    height: 80px;
  }
  
  .info-section {
    grid-template-columns: 1fr;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .mac-button {
    width: 100%;
    text-align: center;
  }
}

/* Folder View */
.folder-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
  padding: 20px;
}

.folder-item {
  text-align: center;
  cursor: pointer;
  padding: 10px;
  transition: background 0.2s ease;
}

.folder-item:hover {
  background: #f0f0f0;
}

.folder-icon {
  font-size: 48px;
  margin-bottom: 8px;
  display: block;
}

.game-icon {
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.folder-item:hover .game-icon {
  filter: grayscale(0%);
}

.folder-name {
  font-size: 12px;
  margin: 0;
  word-wrap: break-word;
}

/* Game Window */
.game-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 
    4px 4px 0 #000000,
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #dfdfdf;
  z-index: 100;
}

.game-header {
  background: #000000;
  color: #ffffff;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-title {
  font-weight: bold;
  font-size: 12px;
}

.close-game {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

.close-game:hover {
  background: #ffffff;
  color: #000000;
}

/* Game Container */
.game-container {
  text-align: center;
  padding: 20px;
  background: #ffffff;
}

#gameCanvas {
  background: #000000;
  border: 2px solid #000000;
  display: block;
  margin: 0 auto 20px;
}

.game-controls {
  text-align: center;
}

.game-controls p {
  margin-bottom: 10px;
  font-size: 12px;
  color: #666666;
}

.game-controls button {
  padding: 8px 16px;
  background: #ffffff;
  border: 2px solid #000000;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #dfdfdf;
}

.game-controls button:hover {
  background: #000000;
  color: #ffffff;
}

.game-controls button:active {
  box-shadow: 
    inset 1px 1px 0 #808080,
    inset -1px -1px 0 #dfdfdf;
  transform: translate(1px, 1px);
}

/* Easter Egg (keeping the functionality) */
.easter-egg-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  opacity: 0;
  cursor: pointer;
}

.web-crack {
  display: none;
}