/* =========================================================
   RESET & BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Onest', sans-serif;
    background: #070b11;
    color: #e9edf5;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   COLOR SYSTEM
========================================================= */
:root {
    --accent: #4d7bff;
    --accent-h: #3c63d6;

    --text-primary: #e9edf5;
    --text-secondary: #b5c0d2;

    --card: #0c1119;
    --card-alt: #0f1622;
    --border: #111722;
}

/* =========================================================
   HEADER – minimal, floating
========================================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(6, 9, 14, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
}

.header-inner {
    max-width: 150px;
    margin: auto;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.28rem;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* =========================================================
   MAIN CONTENT
========================================================= */
main {
    max-width: 820px;
    margin: 150px auto 120px;
    padding: 0 26px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 34px;
}

h2 {
    font-size: 1.9rem;
    margin: 50px 0 18px;
    color: #fff;
}

h3 {
    font-size: 1.35rem;
    margin: 28px 0 14px;
}

p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

ul, ol {
    padding-left: 26px;
    margin-bottom: 24px;
}

li {
    margin-bottom: 12px;
}

strong {
    color: #fff;
}

code {
    background: var(--card);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9em;
}

/* =========================================================
   TABLES
========================================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(77, 123, 255, 0.15);
    color: var(--accent);
    font-weight: 600;
}

/* =========================================================
   FOOTER - Mobile-friendly version
========================================================= */
footer {
    background: #06090e;
    border-top: 1px solid var(--border);
    padding: 60px 16px 40px;
    color: #687385;
    text-align: center;
}

/* Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo img {
    width: 38px;          /* slightly bigger → better touch target & visibility */
    height: auto;
}

/* Links section */
.footer-links-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 4px;       /* row gap / column gap */
    margin: 0 auto 40px;
    max-width: 900px;     /* prevents it from becoming too wide on large screens */
}

.footer-col {
    min-width: 180px;     /* prevents columns from collapsing too much */
}

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

.footer-links ul li {
    margin: 10px 0;
}

.footer-links ul li a {
    color: #9ba6b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus {
    color: var(--accent);
}

/* Social icons */
.social-icons {
    margin: 32px 0 24px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;           /* better touch target */
    height: 44px;
    font-size: 1.4rem;
    color: #9ba6b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus {
    color: var(--accent);
    transform: scale(1.15);
}

/* Copyright */
footer p {
    margin: 16px 0 0;
    font-size: 0.675rem;
    opacity: 0.85;
}

/* ───────────────────────────────────────────────
   Mobile adjustments (up to ~640px)
─────────────────────────────────────────────── */
@media (max-width: 640px) {
    footer {
        padding: 50px 14px 36px;
    }

    .footer-logo {
        margin-bottom: 28px;
    }

    .footer-logo img {
        width: 48px;
    }

    .footer-links-center {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        margin-bottom: 36px;
    }

    .footer-col {
        text-align: center;
        min-width: unset;
        width: 100%;
        max-width: 280px;
    }

    .social-icons {
        margin: 28px 0 20px;
    }

    .social-icons a {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    footer p {
        font-size: 0.84rem;
        line-height: 1.5;
    }
}

/* Optional: very small phones (≤ 360px) */
@media (max-width: 360px) {
    footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-logo img {
        width: 44px;
    }

    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
    }
}







/* Language selector styling */
.footer-language {
  display: flex;
  justify-content: center;
}

.lang-select {
  background: #080f15b2;
  color: #aaa;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-select:hover {
  background: #080f15;
  color: #fff;
}

.lang-select:focus {
  outline: none;
  border-color: #777;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}



/* =========================================================
   THUMBNAIL IMAGE – Known Issues, etc.
========================================================= */
.thumbnail {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto 36px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 650px) {
    h1 { font-size: 2.35rem; }
    h2 { font-size: 1.6rem; }

    main {
        margin-top: 130px;
        padding: 0 20px;
    }
}
