/* 🌌 BACKGROUND */
body {
    margin: 0;
    font-family: Arial;
    background: radial-gradient(circle at top, #1a0000, #000000);
    color: white;
    text-align: center;
    overflow-x: hidden;
}

/* 🔥 GLOW TEXT */
h1, h2 {
    text-shadow: 0 0 10px red;
}

/* TOPBAR */
.topbar {
    padding: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,0,0,0.2);
}

/* SEARCH */
input {
    padding: 10px;
    width: 220px;
    border-radius: 10px;
    border: none;
    outline: none;
    margin-top: 10px;
    background: #111;
    color: white;
}

/* MENU */
.menu {
    margin: 15px;
}

/* BUTTONS */
button {
    padding: 10px 15px;
    margin: 6px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff0000, #660000);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

/* HOVER */
button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px red;
}

/* 📄 CARDS */
.page {
    display: none;
    background: rgba(20,20,20,0.8);
    width: 400px;
    margin: 25px auto;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(255,0,0,0.2);

    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.page.show {
    opacity: 1;
    transform: translateY(0);
}

/* 👋 WELCOME SPECIAL */
.welcome {
    border: 2px solid red;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px red; }
    to { box-shadow: 0 0 30px red; }
}

/* FLOAT BUTTONS */
.settings-btn,
.feedback-btn,
.inbox-btn {
    position: fixed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px red;
}

.settings-btn { top: 15px; right: 15px; }
.feedback-btn { bottom: 15px; right: 15px; }
.inbox-btn { bottom: 80px; right: 15px; }

/* 💬 POPUPS */
.popup {
    position: fixed;
    bottom: -400px;
    right: 20px;
    width: 300px;
    background: rgba(15,15,15,0.95);
    padding: 20px;
    border-radius: 15px;
    transition: 0.4s;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.popup.show {
    bottom: 100px;
}

/* TEXTAREA */
textarea {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    border: none;
    padding: 10px;
    background: #111;
    color: white;
}

/* LINKS */
a {
    color: #ff3c3c;
}

/* 🌙 LIGHT MODE FIX */
.light {
    background: #f5f5f5;
    color: #111;
}

.light .topbar {
    background: #ffffff;
    border-bottom: 1px solid #ccc;
}

.light .page {
    background: #ffffff;
    color: #111;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* TEXT */
.light p,
.light h1,
.light h2,
.light h3 {
    color: #111;
}

/* INPUT */
.light input,
.light textarea {
    background: #eee;
    color: #111;
}

/* BUTTON */
.light button {
    background: #ff3c3c;
    color: white;
}

/* LINKS */
.light a {
    color: #cc0000;
}

/* 💀 INTRO */
#intro {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: 1s;
}

/* GLITCH TEXT */
.glitch {
    font-size: 40px;
    color: white;
    position: relative;
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% { text-shadow: 2px 2px red; }
    25% { text-shadow: -2px -2px blue; }
    50% { text-shadow: 2px -2px red; }
    75% { text-shadow: -2px 2px blue; }
    100% { text-shadow: 2px 2px red; }
}

/* 🖱️ CURSOR */
#cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: red;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px red, 0 0 40px red;
    z-index: 9998;
}

/* 📱 MOBILE */
@media (max-width: 600px) {

    .page {
        width: 90%;
        margin: 10px auto;
    }

    input {
        width: 90%;
    }

    .menu button {
        display: block;
        width: 90%;
        margin: 8px auto;
    }

    .settings-btn,
    .feedback-btn,
    .inbox-btn {
        width: 45px;
        height: 45px;
    }

    .glitch {
        font-size: 28px;
    }
}

.page {
    transition: 0.3s;
}

/* 🔍 SEARCH RESULTS BOX */
.search-results {
    width: 220px;
    margin: 10px auto;
    background: rgba(20,20,20,0.9);
    border-radius: 10px;
    padding: 5px;
}

/* ITEM */
.search-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-item:hover {
    background: rgba(255,0,0,0.2);
}

/* HIGHLIGHT */
.highlight {
    background: red;
    color: white;
    padding: 2px;
    border-radius: 3px;
}

/* RESULT TEXT */
#resultCount {
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.8;
}
