/* Import font aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Quicksand:wght@300;400;500&display=swap');

:root {
  --bg: #1a1819;
  --main-bg: #211E20;
  --title: #E6A8B5;
  --subtitle: #A79D9D;
  --text: #FFFFFF;
  --card: #2A2628;
  --accent: #e6a8b533;
}

/* BACKGROUND TEXTURE CHECKERBOARD */
body::before{
  content: "";
  position: fixed;
  inset: 0;

  /* checkerboard */
  background-image:
    linear-gradient(45deg, #ffffff18 25%, transparent 25%),
    linear-gradient(-45deg, #ffffff18 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ffffff18 75%),
    linear-gradient(-45deg, transparent 75%, #ffffff18 75%);

  background-size: 80px 80px;

  background-position:
    0 0,
    0 40px,
    40px -40px,
    -40px 0px;

  opacity: 0.15;

  z-index: -1;

  animation: checkerMove 12s linear infinite;
}

@keyframes checkerMove{
  from{
    transform: translateX(0);
  }

  to{
    transform: translateX(80px);
  }
}

/* Warning Screen */
#warning-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #211E20ee;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Box */
.warning-box {
  background: #2A2628;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  max-width: 300px;
  border: 1px solid #ffffff20;
  box-shadow: 0 0 20px #00000080;
}

.warning-box h2 {
  color: #E6A8B5;
  margin-top: 0;
}

.warning-box p {
  font-size: 13px;
  color: #FFFFFF;
}

/* Button */
.warning-box button {
  margin-top: 15px;
  padding: 8px 15px;
  background: #E6A8B5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  transition: 0.3s;
}

.warning-box button:hover {
  background: #ffbfd0;
}

/* Global */
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* Header */
header {
  padding: 30px 20px 10px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

header h1 {
  font-family: 'Playfair Display', serif;
  color: var(--title);
  font-size: 22px;
  letter-spacing: 1px;
  margin: 0;
}

header p {
  color: var(--subtitle);
  font-size: 13px;
  margin-top: 5px;
}

/* Layout */
.container {
  display: flex;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  width: 200px;
}

/* Card */
.card {
  background: var(--card);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #ffffff10;
  box-shadow: 0 0 15px #00000040;
  position: relative;
}

/* Tape aesthetic */
.card::before {
  content: "";
  width: 40px;
  height: 12px;
  background: #ffffff30;
  position: absolute;
  top: -6px;
  left: 20px;
  transform: rotate(-3deg);
  border-radius: 3px;
}

/* Sidebar text */
.card h3 {
  color: var(--title);
  font-size: 14px;
  border-bottom: 1px solid #ffffff20;
  padding-bottom: 5px;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card li {
  margin: 8px 0;
}

.card a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: 0.3s;
}

.card a:hover {
  color: var(--title);
  padding-left: 5px;
}

/* Main content */
.content {
  flex: 1;
  margin-left: 20px;
  max-width: 700px;
}

/* Main Card */
.main-card {
  background: var(--card);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid #ffffff10;
  box-shadow: 0 0 20px #00000050;
  position: relative;
}

/* Tape effect */
.main-card::before {
  content: "";
  width: 60px;
  height: 14px;
  background: #ffffff20;
  position: absolute;
  top: -7px;
  left: 30px;
  transform: rotate(2deg);
  border-radius: 4px;
}

/* Titles */
.main-card h2 {
  font-family: 'Playfair Display', serif;
  color: var(--title);
  font-size: 18px;
  margin-top: 0;
  border-bottom: 1px solid #ffffff20;
  padding-bottom: 5px;
}

.main-card h4 {
  color: var(--subtitle);
  margin-top: 15px;
  font-size: 13px;
}

/* Text */
.main-card p {
  font-size: 13px;
  line-height: 1.6;
}

/* Links */
.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  margin: 6px 0;
}

.links-list a {
  color: var(--title);
  text-decoration: none;
  font-size: 13px;
}

.links-list a:hover {
  text-decoration: underline;
}

/* Grid karakter */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 80px));
  gap: 8px;
}

.grid.small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 80px));
  gap: 8px;
}

.img {
  background: linear-gradient(135deg, #444, #222);
  width: 80px;
  height: 80px;
  border-radius: 6px;
  transition: 0.3s;
}

.img:hover {
  transform: scale(1.05);
  background: var(--accent);
}

/* Bookmark PNG */
.bookmark-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.bookmark-img {
  width: 150px;
  height: 35px;
  border-radius: 8px;
  transition: 0.3s ease;
}

.bookmark-img:hover {
  transform: scale(1.03);
}

/* Profile */
.profile {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
}

.profile-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ffffff20;
  box-shadow: 0 0 8px #00000040;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  margin: 5px;
  cursor: pointer;
}

.profile-text {
  flex: 1;
}

.credit-box{
  width: fit-content;
  margin-bottom: 15px;
  padding: 6px 14px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);

  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;

  font-size: 13px;
  color: #f5f5f5;
}

.credit-box a{
  color: #ffd6e7;
  text-decoration: none;
  font-weight: bold;
}

.credit-box a:hover{
  text-decoration: underline;
}

/* SITE CARD STYLE */
.site-box h4{
  margin: 0 0 3px 0;
  color: var(--title);
}

.site-box p{
  margin: 0;
}

.site-box{
  padding: 15px;
  background: rgba(255,255,255,0.03);
  border-radius: 0;
  margin: 0;
}

/* tetap menyatu */
.site-box:first-of-type{
  border-radius: 12px 12px 0 0;
}

.site-box:last-of-type{
  border-radius: 0 0 12px 12px;
}

/* Responsive (HP) */
@media (max-width: 768px) {
  header {
    padding-left: 20px;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .content {
    margin-left: 0;
    max-width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bookmark-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile {
    flex-direction: column;
    text-align: center;
  }
}