/* =================================================================
 *          STYLESHEET UNTUK HALAMAN PUBLIK CSNLINK.BIO
 * ================================================================= */

:root {
    /* Variabel akan diatur oleh tema di bawah */
    --gradient-start: #00c6ff;
    --gradient-end: #0072ff;
    --text-color: #ffffff;
    --text-color-light: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glow-color: rgba(255, 255, 255, 0.5);
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: radial-gradient(circle at 50% 50%, var(--gradient-start), var(--gradient-end));
    background-attachment: fixed;
    display: flex;
    justify-content: center;
}

#app { 
    width: 100%; 
    max-width: 480px; 
    padding: 40px 20px;
    box-sizing: border-box;
}

.loader { margin: 100px auto; border: 4px solid var(--glass-border); border-top: 4px solid var(--text-color); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.page-container { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; width: 100%; }

.profile { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 10px; }
.profile__avatar { width: 120px; height: 120px; border-radius: 24px; border: 3px solid var(--glass-border); object-fit: cover; }
.profile__name { font-size: 2rem; font-weight: 700; margin: 0; text-shadow: 0 0 20px var(--glow-color); }
.profile__description { font-size: 1rem; font-weight: 400; color: var(--text-color-light); margin: -10px 0 0 0; }

.glass-effect { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; }
.glass-effect:hover { transform: translateY(-3px); }

.socials { display: flex; justify-content: center; gap: 15px; width: 100%; }
.socials__icon { display: flex; justify-content: center; align-items: center; width: 60px; height: 60px; border-radius: 16px; color: var(--text-color); text-decoration: none; }
.socials__icon img { width: 28px; height: 28px; }

.banner-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    overflow: hidden;
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-links { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.link-card { display: flex; align-items: center; justify-content: center; padding: 18px 24px; text-decoration: none; color: var(--text-color); }
.link-card__title { display: block; font-size: 1.1rem; font-weight: 700; }
.link-card.shape-rounded { border-radius: 12px; }
.link-card.shape-pill { border-radius: 999px; }
.link-card.shape-square { border-radius: 4px; }

/* Legacy footer style - deprecated */
.footer-credit { margin-top: 30px; font-size: 0.9rem; color: var(--text-color-light); }
.footer-credit a { color: var(--text-color); font-weight: 700; text-decoration: none; }

/* New footer styles */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer p {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: var(--text-color-light);
    line-height: 1.4;
}

.footer a {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}

.footer-links span {
    color: var(--text-color-light);
    opacity: 0.6;
}


/* =================================================================
 *          ATURAN UNTUK TEMA (TERANG & GELAP)
 * ================================================================= */

/* --- TEMA GELAP (DEFAULT) --- */
body.theme-dark {
    --text-color: #ffffff;
    --text-color-light: rgba(255, 255, 255, 0.8);
    --glow-color: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}
body.theme-dark .glass-effect:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- TEMA TERANG --- */
body.theme-light {
    --text-color: #ffffff; /* Teks tombol tetap putih */
    --text-color-light: rgba(255, 255, 255, 0.8); /* Teks footer tetap putih */
    --glow-color: rgba(0, 0, 0, 0.2);
    
    /* Tombol menjadi gelap & transparan */
    --glass-bg: rgba(0, 0, 0, 0.15);
    --glass-border: rgba(0, 0, 0, 0.2);
}
body.theme-light .glass-effect:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Di tema terang, teks di luar tombol harus gelap agar terbaca */
body.theme-light .profile__name {
    color: #111827;
}
body.theme-light .profile__description {
    color: #4B5563;
}
/* Legacy footer theme styles */
body.theme-light .footer-credit,
body.theme-light .footer-credit a {
    color: #4B5563;
}
body.theme-light .footer-credit a {
    font-weight: 700;
}

/* New footer theme styles */
body.theme-light .footer p {
    color: #6B7280;
}

body.theme-light .footer a {
    color: #111827;
}

body.theme-light .footer-links a {
    color: #6B7280;
}

body.theme-light .footer-links a:hover {
    color: #111827;
}

body.theme-light .footer-links span {
    color: #9CA3AF;
}
}