/* ============================================================
   MIA'S LOVE DIARY — WINDOWS 2000 AESTHETIC
   ============================================================ */

:root {
  --desktop-bg: #020202;
  /* Classic Win95/2k teal */
  --window-bg: #c0c0c0;
  --content-bg: #000000;
  --title-active: #000080;
  --title-active-grad: #1084d0;

  --border-light: #ffffff;
  --border-light-gray: #dfdfdf;
  --border-dark: #808080;
  --border-darker: #000000;

  --text-primary: #000000;
  --text-dark: #000000;

  /* Classic Fonts */
  --font-ui: 'Tahoma', 'MS Sans Serif', sans-serif;
  --font-heading: 'Tahoma', 'MS Sans Serif', sans-serif;
  --font-body: 'Tahoma', 'MS Sans Serif', sans-serif;
}

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

body {
  background-color: var(--desktop-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* =======================================
   CONTAINER
   ======================================= */
.container {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* =======================================
   RAINING HEARTS BACKGROUND
   ======================================= */
.hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.falling-heart {
  position: absolute;
  top: -10%;
  /* start slightly above the screen */
  animation: fall linear infinite;
  opacity: 0;
  /* start invisible before animation kicks in */
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) rotate(-15deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(15deg);
    /* small sway while falling */
    opacity: 0;
  }
}


/* =======================================
   CLASSIC WIN2K WINDOW STYLES
   ======================================= */
.win2k-window {
  background: var(--window-bg);
  border-top: 2px solid var(--border-light);
  border-left: 2px solid var(--border-light);
  border-right: 2px solid var(--border-darker);
  border-bottom: 2px solid var(--border-darker);
  box-shadow: inset -1px -1px 0 var(--border-dark), inset 1px 1px 0 var(--border-light-gray);
  padding: 2px;
}

/* =======================================
   1. PROFILE CARD (Left Sidebar)
   ======================================= */
.profile-card {
  width: 250px;
  flex-shrink: 0;
}

.card-header {
  height: 20px;
  background: linear-gradient(to right, var(--title-active), var(--title-active-grad));
  padding: 0 2px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  color: white;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 11px;
}

.card-avatar {
  width: 100px;
  height: 100px;
  background-color: #fff;
  margin: 20px auto 10px;
  border-top: 2px solid var(--border-dark);
  border-left: 2px solid var(--border-dark);
  border-right: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  box-shadow: inset 1px 1px 0 var(--border-darker), inset -1px -1px 0 var(--border-light-gray);
  overflow: hidden;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 10px 20px 20px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
}

.card-content strong {
  font-weight: bold;
}

.card-links {
  margin: 20px 0;
}

.card-links a {
  color: #0000ff;
  text-decoration: underline;
  margin: 0 4px;
}

/* Classic Button */
.btn-install,
.ctrl-btn,
.toolbar-btn {
  background: var(--window-bg);
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-darker);
  border-bottom: 1px solid var(--border-darker);
  box-shadow: inset -1px -1px 0 var(--border-dark), inset 1px 1px 0 var(--border-light-gray);
  color: var(--text-primary);
  font-family: var(--font-ui);
  cursor: pointer;
  text-decoration: none;
}

.btn-install:active,
.ctrl-btn:active,
.toolbar-btn:active {
  border-top: 1px solid var(--border-darker);
  border-left: 1px solid var(--border-darker);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: inset 1px 1px 0 var(--border-dark);
  padding-top: 1px;
  /* push content down slightly on click */
  padding-left: 1px;
}

.btn-install {
  display: inline-block;
  padding: 4px 12px;
  margin-top: 10px;
}

/* =======================================
   2. BROWSER WINDOW (Main Content)
   ======================================= */
.browser-window {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* --- Window Title Bar --- */
.title-bar {
  height: 20px;
  background: linear-gradient(to right, var(--title-active), var(--title-active-grad));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 0 4px;
  margin-bottom: 4px;
}

.title-left {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: bold;
  gap: 4px;
}

.title-right {
  display: flex;
  gap: 2px;
}

.ctrl-btn {
  width: 16px;
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
}

/* Menu Bar simulation */
.menu-bar {
  display: flex;
  padding: 2px 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  margin-bottom: 2px;
}

.menu-item {
  padding: 2px 6px;
  cursor: pointer;
}

.menu-item:hover {
  background: #000080;
  color: white;
}

.menu-item u {
  text-decoration: underline;
}

/* --- Navigation Tabs (as Toolbar) --- */
.tabs {
  display: flex;
  padding: 2px 4px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 4px;
  gap: 4px;
}

.tab {
  padding: 4px 12px;
  background: var(--window-bg);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 11px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-darker);
  border-bottom: 1px solid var(--border-darker);
  box-shadow: inset -1px -1px 0 var(--border-dark), inset 1px 1px 0 var(--border-light-gray);
  gap: 4px;
}

.tab.active {
  border-top: 1px solid var(--border-darker);
  border-left: 1px solid var(--border-darker);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: inset 1px 1px 0 var(--border-dark);
  padding-top: 5px;
  /* offset because of active state */
  padding-left: 13px;
  padding-right: 11px;
  background: #cfcfcf;
}

/* --- Address Bar --- */
.address-bar-container {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-top: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-dark);
  gap: 8px;
  margin-bottom: 4px;
}

.address-label {
  color: var(--text-dark);
  font-family: var(--font-ui);
  font-size: 11px;
}

.address-input-wrapper {
  flex-grow: 1;
}

.address-input {
  width: 100%;
  padding: 3px 4px;
  border-top: 2px solid var(--border-dark);
  border-left: 2px solid var(--border-dark);
  border-bottom: 2px solid var(--border-light);
  border-right: 2px solid var(--border-light);
  background-color: #ffffff;
  color: var(--text-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  outline: none;
  box-shadow: inset 1px 1px 0 var(--border-darker);
}

/* --- Content Area --- */
.content-area-wrapper {
  padding: 2px;
  background: #c0c0c0;
}

.content-area {
  padding: 20px 30px;
  background-color: var(--content-bg);
  min-height: 400px;
  border-top: 2px solid var(--border-dark);
  border-left: 2px solid var(--border-dark);
  border-bottom: 2px solid var(--border-light);
  border-right: 2px solid var(--border-light);
  box-shadow: inset 1px 1px 0 var(--border-darker);
  overflow-y: auto;
  max-height: 600px;
}

/* =======================================
   3. POSTS LAYOUT (Inside Content)
   ======================================= */
.post {
  margin-bottom: 30px;
  background-color: var(--window-bg);
  border-top: 2px solid var(--border-light);
  border-left: 2px solid var(--border-light);
  border-right: 2px solid var(--border-darker);
  border-bottom: 2px solid var(--border-darker);
  box-shadow: inset -1px -1px 0 var(--border-dark), inset 1px 1px 0 var(--border-light-gray);
  padding: 2px;
}

.post-header {
  background: linear-gradient(to right, #808080, #c0c0c0);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 11px;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.action-btn {
  background: var(--window-bg);
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-darker);
  border-bottom: 1px solid var(--border-darker);
  box-shadow: inset -1px -1px 0 var(--border-dark), inset 1px 1px 0 var(--border-light-gray);
  color: var(--text-primary);
  font-size: 10px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 2px;
}

.action-btn:active {
  border-top: 1px solid var(--border-darker);
  border-left: 1px solid var(--border-darker);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: inset 1px 1px 0 var(--border-dark);
}

.post-body {
  background-color: #0c0c0c;
  border-top: 2px solid var(--border-dark);
  border-left: 2px solid var(--border-dark);
  border-right: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  box-shadow: inset 1px 1px 0 var(--border-darker);
  padding: 15px;
}

.post-text {
  font-size: 11px;
  color: #dfdfdf;
  line-height: 1.5;
  margin-top: 10px;
}

.post-text h2,
.post-title {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ffffff;
}

/* =======================================
   4. COMMENT SECTION (Komments iframe)
   ======================================= */
.post-comments {
  margin-top: 2px;
}

.post-comments-header {
  background: linear-gradient(to right, #808080, #c0c0c0);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 11px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
}

.post-comments-body {
  background-color: #0c0c0c;
  border-top: 2px solid var(--border-dark);
  border-left: 2px solid var(--border-dark);
  border-right: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  box-shadow: inset 1px 1px 0 var(--border-darker);
  padding: 4px;
}

.komments-frame {
  width: 100%;
  height: 500px;
  border: none;
  background-color: #ffffff;
  display: block;
}

/* Image grid in post */
.post-images {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.post-image {
  flex: 1;
  height: 200px;
  background-color: #f0f0f0;
  border: 1px solid #808080;
  background-size: cover;
  background-position: center;
}

.placeholder-img-1 {
  background-color: #ccccff;
}

.placeholder-img-2 {
  background-color: #ffcccc;
}

/* Mock Search Bar for 2nd Post */
.search-bar-mock {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.search-bar-mock input {
  padding: 2px 4px;
  border-top: 2px solid var(--border-dark);
  border-left: 2px solid var(--border-dark);
  border-bottom: 2px solid var(--border-light);
  border-right: 2px solid var(--border-light);
  box-shadow: inset 1px 1px 0 var(--border-darker);
  width: 250px;
  font-family: var(--font-ui);
  font-size: 11px;
}

.time-display {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #808080;
  margin-left: 10px;
}

/* =======================================
   Scrollbar specific for Win2k style inside the element
   ======================================= */
.content-area::-webkit-scrollbar {
  width: 16px;
}

.content-area::-webkit-scrollbar-track {
  background: var(--window-bg);
  border-left: 1px solid var(--border-light);
}

.content-area::-webkit-scrollbar-thumb {
  background: var(--window-bg);
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-darker);
  border-bottom: 1px solid var(--border-darker);
  box-shadow: inset -1px -1px 0 var(--border-dark), inset 1px 1px 0 var(--border-light-gray);
}

@media (max-width: 800px) {
  .container {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}