@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

/* --- THEME ENGINE --- */
:root {
    --primary: #39C5BB;
    --primary-glow: rgba(57, 197, 187, 0.5);
    --accent: #ff6699;
    --bg-overlay: rgba(10, 11, 16, 0.8);
    --bg-image: url('assets/wallpaper.jpg');
    --pfp: url('assets/mikukage.png');
}

[data-theme='teto'] {
    --primary: #FF2D55;
    --primary-glow: rgba(255, 45, 85, 0.5);
    --accent: #4A4A4A;
    --bg-overlay: rgba(20, 5, 5, 0.85);
    --bg-image: url('assets/wallpaper 2.png');
    --pfp: url('assets/tetokage.png');
}

/* --- GLOBAL RESET & TRANSITIONS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease;
}

body {
    background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #000;
    color: white;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* --- THEME SWITCHER (Top Right) --- */
.theme-switch-wrapper {
    position: fixed;
    top: 18px;
    right: 25px;
    display: flex;
    align-items: center;
    z-index: 1100;
    gap: 10px;
}

.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #222; border-radius: 34px; border: 1px solid var(--primary);
}
.slider:before {
    position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 3px;
    background-color: var(--primary); border-radius: 50%;
}
input:checked + .slider:before { transform: translateX(22px); }

/* --- CARDS & HOVER LIFT --- */
.card {
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.card h2 {
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- PROFILE SECTION --- */
.profile-card { display: flex; align-items: center; gap: 35px; }

.profile-avatar {
    width: 150px; height: 150px; min-width: 150px;
    border-radius: 50%; border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background-image: var(--pfp);
    background-size: cover;
    background-position: center;
}

.profile-info h1 { font-size: 2.8rem; color: var(--primary); }

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 6px 18px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    margin-right: 10px;
}

.tag:hover {
    background: var(--primary);
    color: black;
}

/* --- HIGH-QUALITY INPUTS --- */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.6;
    pointer-events: none;
}

.input-group i.textarea-icon { top: 25px; }

input, textarea {
    width: 100%;
    padding: 15px 15px 15px 45px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    font-family: inherit;
    outline: none !important;
}

input:focus, textarea:focus {
    border-color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
}

input:focus + i, textarea:focus + i {
    color: var(--accent);
    opacity: 1;
}

.btn {
    background: var(--primary);
    color: black;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    box-shadow: 0 0 20px var(--primary);
    transform: scale(1.02);
}

.miku-img { width: 100%; border-radius: 15px; margin-top: 15px; border: 1px solid var(--primary-glow); }
.container { max-width: 900px; margin: 40px auto; padding: 0 20px; }

@media (max-width: 700px) {
    .profile-card { flex-direction: column; text-align: center; }
    .theme-switch-wrapper { top: auto; bottom: 20px; right: 20px; }
}
/* Hide admin-only links by default */
.admin-hide {
    display: none !important;
}

/* --- WEATHER BANNER STYLES --- */
.weather-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 20px var(--primary-glow);
    animation: weatherFloat 4s ease-in-out infinite;
    transition: 0.3s;
}

.weather-card:hover {
    box-shadow: 0 0 30px var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.weather-info h4 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.weather-temp {
    font-size: 2rem;
    font-weight: 700;
}

.weather-icon {
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

@keyframes weatherFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 600px) {
    .weather-banner { grid-template-columns: 1fr; }
}
