@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700&family=Anton&display=swap');

:root {
  --myspace-blue: #3b5998;
  --header-black: #111;
  --nav-blue: #8ab4ff;
  --nav-text: #fff;
  --card-white: #fff;
  --card-heading: #1c2a59;
  --accent-yellow: #ffed4a;
  --countdown-green: #9cff9c;
  --text-dark: #333;
  --text-muted: #666;
  --text-body: #1a1a1a;
  --border-color: #ccc;
  --online-green: #4ade80;
  --shadow: 0 4px 8px rgba(0,0,0,0.2);
  --transition: 0.3s ease;
  
  --font-size-base: 14px;
  --font-size-small: 13px;
  --font-size-large: 16px;
  --font-size-heading: 18px;
}

html[data-theme="light"] {
  --myspace-blue: #d6e0ff;
  --header-black: #1a1a1a;
  --nav-blue: #5a84cf;
  --nav-text: #fff;
  --card-white: #fff;
  --card-heading: #2c3e75;
  --text-body: #1a1a1a;
  --text-muted: #555;
}

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

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

body {
  margin: 0;
  font-family: "Tahoma", "Verdana", Arial, sans-serif;
  font-size: var(--font-size-base);
  background: var(--myspace-blue);
  color: var(--text-body);
  line-height: 1.6;
}

a {
  color: #1155cc;
  text-decoration: underline;
  transition: color var(--transition);
}

a:hover {
  color: #0033aa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.countdown-bar {
  background: var(--header-black);
  color: var(--countdown-green);
  text-align: center;
  padding: 8px 12px;
  font-family: "Courier New", monospace;
  font-size: var(--font-size-small);
  font-weight: bold;
  border-bottom: 1px solid #333;
}

.site-header {
  background: var(--header-black);
  color: #fff;
  padding: 20px 0;
  border-bottom: 3px solid #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #fff;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text .the {
  font-size: 16px;
  display: block;
  font-style: italic;
}

.logo-text .main {
  font-size: 32px;
  letter-spacing: 2px;
  font-style: normal;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-btn, .theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.search-btn:hover, .theme-toggle:hover {
  background: rgba(255,255,255,0.2);
}

.mysafespace-bar {
  background: linear-gradient(180deg, #5a7dc8 0%, var(--myspace-blue) 100%);
  padding: 15px 0;
  text-align: center;
  border-bottom: 2px solid #2d4373;
}

.mysafespace-logo {
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mysafespace-logo small {
  font-size: 14px;
  font-weight: normal;
}

.main-nav {
  background: var(--nav-blue);
  border-bottom: 2px solid #6a94df;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 5px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 10px 18px;
  color: var(--nav-text);
  font-weight: bold;
  font-size: var(--font-size-small);
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--transition);
  border-radius: 3px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.2);
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.profile-sidebar {
  background: var(--card-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
}

.profile-photo {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.profile-info {
  padding: 15px;
}

.profile-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--card-heading);
  margin: 0 0 8px;
}

.profile-status {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin: 0 0 10px;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--online-green);
  font-weight: bold;
  font-size: var(--font-size-small);
}

.online-badge::before {
  content: "●";
  font-size: 16px;
}

.profile-stats {
  margin: 15px 0;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: var(--font-size-small);
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  font-weight: bold;
  color: var(--card-heading);
}

.profile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-links a {
  display: block;
  padding: 8px 15px;
  font-size: var(--font-size-small);
  font-weight: bold;
  text-decoration: none;
  color: #1155cc;
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--transition);
}

.profile-links a:hover {
  background: #f8f8f8;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  background: linear-gradient(180deg, #8ab4ff 0%, #6a94df 100%);
  padding: 10px 15px;
  border-bottom: 2px solid #5a84cf;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  color: var(--card-heading);
  font-size: var(--font-size-heading);
  margin: 0 0 10px;
}

.card-body p {
  margin: 0 0 12px;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-body);
}

.card-body ul {
  margin: 10px 0;
  padding-left: 25px;
}

.card-body li {
  margin: 6px 0;
  font-size: var(--font-size-base);
}

.btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(180deg, var(--accent-yellow) 0%, #ffd700 100%);
  border: 1px solid #cc9900;
  border-radius: 4px;
  color: #333;
  font-weight: bold;
  font-size: var(--font-size-small);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all var(--transition);
}

.btn:hover {
  background: linear-gradient(180deg, #fff44f 0%, #ffed4a 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-blue {
  background: linear-gradient(180deg, #6a94df 0%, #5a84cf 100%);
  border-color: #4a74bf;
  color: #fff;
}

.btn-blue:hover {
  background: linear-gradient(180deg, #7aa4ef 0%, #6a94df 100%);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.tile {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 15px;
  transition: all var(--transition);
}

.tile:hover {
  border-color: var(--nav-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tile h4 {
  color: var(--card-heading);
  font-size: 14px;
  margin: 0 0 8px;
}

.tile p {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin: 0;
}

.comment-wall {
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
  margin-top: 15px;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  border: 1px solid #ccc;
  flex-shrink: 0;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: bold;
  color: var(--card-heading);
  font-size: var(--font-size-base);
  margin: 0 0 4px;
}

.comment-text {
  font-size: var(--font-size-small);
  margin: 0;
  color: var(--text-body);
}

.comment-meta {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin-top: 5px;
}

.footer {
  background: var(--header-black);
  color: #999;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  border-top: 3px solid #000;
  font-size: var(--font-size-small);
}

.footer a {
  color: #8ab4ff;
}

.footer-links {
  margin: 10px 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent-yellow);
  border: 1px solid #cc9900;
  border-radius: 3px;
  font-size: var(--font-size-small);
  font-weight: bold;
  color: #333;
  margin-right: 5px;
}

.mood-status {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin: 10px 0;
}

.mood-status strong {
  color: var(--card-heading);
}

iframe {
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.icon-sun, .icon-moon {
  width: 20px;
  height: 20px;
}

html[data-theme="dark"] .icon-sun {
  display: none;
}

html[data-theme="light"] .icon-moon {
  display: none;
}

.hamburger-btn {
  display: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-weight: bold;
  font-size: var(--font-size-small);
  color: var(--card-heading);
}

.form-group input,
.form-group textarea {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: var(--font-size-base);
  background: #fff;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--nav-blue);
  outline-offset: 1px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .logo-text .main {
    font-size: 24px;
  }
  
  .nav-links {
    justify-content: center;
  }
  
  .profile-sidebar {
    position: static;
  }
}
