:root{
  /* base colors */
  --bg-light: #ffffff;
  --bg-dark: #111217;
  --bg-card-light: #f8fafc;
  --bg-card-dark: #232527;
  --text-light: #111827;
  --text-dark: #e6eef8;
  --muted-light: #6b7280;
  --muted-dark: #9ca3af;
  --roblox-blue: #00A2FF;

  /* default -> dark */
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --card-bg: var(--bg-card-dark);
  --muted: var(--muted-dark);
}

html.light {
  --bg: var(--bg-light);
  --text: var(--text-light);
  --card-bg: var(--bg-card-light);
  --muted: var(--muted-light);
}

html.dark {
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --card-bg: var(--bg-card-dark);
  --muted: var(--muted-dark);
}

/* Стили footer, использующие переменные темы */
.site-footer {
  background: var(--bg); /* совпадает с фоном страницы */
  border-top: 1px solid rgba(255,255,255,0.04); /* тонкая разделяющая линия в dark */
  margin-top: 3rem;
  /* если хочешь, чтобы footer немного отличался, используй --card-bg:
     background: var(--card-bg); */
}

html.light .site-footer {
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* контейнер согласованный с основной шириной */
.site-footer .container {
  max-width: 64rem; /* ~7xl — если хочешь 5xl используй 56rem; ниже пример под 5xl */
  margin: 0 auto;
  padding: 1.25rem; /* px-4 py-6 */
  text-align: center;
}

/* если у тебя на странице основной контейнер max-w-5xl, поставь 56rem (5xl) */
@media (max-width: 1024px) {
  .site-footer .container { padding-left: 1rem; padding-right: 1rem; }
}

/* тексты */
.footer-text {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

.footer-link {
  color: var(--roblox-blue);
  font-weight: 600;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }



/* base */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* links */
a {
  color: var(--roblox-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* avatar */
#communityAvatar{
  border-radius:12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
}

/* about section */
#aboutSection{
  background: var(--card-bg);
  color: inherit;
}

/* EXPERIENCE CARD */

.exp-card{
  background: var(--card-bg);
  color: inherit;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 90px;
}

.exp-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 35px -12px rgba(0,0,0,0.18), 0 8px 12px -10px rgba(0,0,0,0.06);
}

/* thumbnail */

.exp-thumb{
  width:90px;
  height:90px;
  border-radius:10px;
  object-fit:cover;
  flex-shrink:0;
  background:#e6e9ee;
}

/* text container */

.exp-info{
  flex:1;
  min-width:0;
}

/* title */

.exp-title{
  font-weight:600;
  color: inherit;
  line-height:1.2;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden;
  text-overflow:ellipsis;
  word-break:break-word;
}

/* meta */

.exp-meta{
  font-size:0.9rem;
  color: var(--muted);
}

/* meta flex fix */

.exp-meta .flex{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}

/* rating */

.exp-rating{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-weight:600;
  background: rgba(0,162,255,0.12);
  color: var(--roblox-blue);
}

/* buttons */

button, .inline-control{
  background: var(--card-bg);
  color: inherit;
  border:1px solid rgba(255,255,255,0.04);
  padding:6px 10px;
  border-radius:8px;
}

/* scrollbar */

::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-track{
  background: var(--card-bg);
}

::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.35);
  border-radius:5px;
}

/* responsive */

@media (max-width:640px){

  .exp-thumb{
    width:72px;
    height:72px;
  }

  .exp-card{
    padding:12px;
  }

}

@media (min-width:1024px){

  .exp-thumb{
    width:100px;
    height:100px;
  }

}

@media (min-width:1200px){
  .exp-thumb{ width:100px; height:100px; }
  .exp-card{ min-height:110px; }
}
