/*
Theme Name: Mac Window i3
Theme URI: https://example.com/mac-window-i3
Author: Claude
Author URI: https://example.com
Description: Tema WordPress bergaya retro Mac OS / Apple — setiap post dan widget tampil seperti jendela desktop klasik dengan title bar tiga tombol, layout 3 kolom terinspirasi dari i3Theme (MangoOrange).
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mac-window-i3
*/

/* ---------- Variabel warna ---------- */
:root {
  --mac-bg: #d6dde3;
  --mac-window-bg: #f5f6f8;
  --mac-titlebar: linear-gradient(#ececec, #d3d3d3);
  --mac-border: #9aa5ad;
  --mac-red: #ff5f57;
  --mac-yellow: #ffbd2e;
  --mac-green: #28c840;
  --mac-text: #2c2c2c;
  --mac-accent: #3b6ea5;
  --mac-muted: #6b7680;
}

/* ---------- Reset dasar ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 20px 0;
  font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, sans-serif;
  color: var(--mac-text);
  background-color: var(--mac-bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.25) 0%, transparent 45%);
  line-height: 1.6;
}
a { color: var(--mac-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- "Jendela" gaya Mac ---------- */
.mac-window {
  background: var(--mac-window-bg);
  border: 1px solid var(--mac-border);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.6) inset;
  margin-bottom: 24px;
  overflow: hidden;
}
.mac-titlebar {
  background: var(--mac-titlebar);
  border-bottom: 1px solid var(--mac-border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mac-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mac-dot.red { background: var(--mac-red); }
.mac-dot.yellow { background: var(--mac-yellow); }
.mac-dot.green { background: var(--mac-green); }
.mac-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--mac-muted);
  margin-right: 44px; /* offset agar teks tetap di tengah */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mac-window-body { padding: 20px; }

/* ---------- Layout 3 kolom ---------- */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
#secondary-left,
#secondary-right { flex: 0 0 240px; }
#primary { flex: 1; min-width: 0; }

/* ---------- Header ---------- */
.site-header .mac-window-body {
  text-align: center;
  background: linear-gradient(180deg, #eef2f5, #dfe5ea);
}
.site-title {
  font-size: 2em;
  font-weight: 700;
  margin: 0;
  color: var(--mac-text);
}
.site-title a { color: var(--mac-text); }
.site-description {
  color: var(--mac-muted);
  font-style: italic;
  margin: 6px 0 16px;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.main-navigation a {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--mac-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Artikel ---------- */
.entry-title { font-size: 1.4em; margin: 0 0 8px; }
.entry-title a { color: var(--mac-text); }
.entry-meta {
  font-size: 0.78em;
  color: var(--mac-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.entry-thumbnail { margin-bottom: 16px; border-radius: 4px; overflow: hidden; }
.entry-content p { margin: 0 0 1.1em; }
.read-more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  background: var(--mac-accent);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 5px;
  text-decoration: none !important;
}
.read-more:hover { background: #2d557f; }

/* ---------- Widget ---------- */
.widget-title {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mac-muted);
  margin: 0 0 10px;
  border-bottom: 1px dashed var(--mac-border);
  padding-bottom: 8px;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 4px 0; border-bottom: 1px solid #e6e9eb; font-size: 0.9em; }
.widget li:last-child { border-bottom: none; }

/* ---------- Pagination ---------- */
.pagination {
  text-align: center;
  margin: 20px 0 30px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  border: 1px solid var(--mac-border);
  border-radius: 4px;
  background: #fff;
  font-size: 0.85em;
}
.pagination .current { background: var(--mac-accent); color: #fff; border-color: var(--mac-accent); }

/* ---------- Komentar ---------- */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body {
  background: #fff;
  border: 1px solid #e6e9eb;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
}
.comment-metadata { font-size: 0.78em; color: var(--mac-muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid var(--mac-border);
  border-radius: 5px;
  font-family: inherit;
}
.comment-form input[type="submit"] {
  background: var(--mac-accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid var(--mac-border);
}
.search-form button {
  background: var(--mac-accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer .mac-window-body {
  text-align: center;
  font-size: 0.82em;
  color: var(--mac-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-content { flex-direction: column; }
  #secondary-left, #secondary-right { flex: 1 1 auto; width: 100%; }
}
