/* ===== BASE STYLES ===== */
:root {
    --dark-1: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --accent: #7d3cff;
    --accent-hover: #9a5cff;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Consolas', monospace;
}

body {
    background-color: var(--dark-1);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

.glow-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(125, 60, 255, 0.05) 0%, transparent 70%);
    z-index: -1;
    animation: float 15s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
    100% { transform: translate(5%, 5%); }
}

/* ===== HEADER ===== */
header {
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(125, 60, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), #ff3c7d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo h1 span {
    font-weight: 300;
}

.logo .pulse {
    font-size: 1.5rem;
    color: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* ===== SEARCH BAR ===== */
.search-bar {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: var(--dark-3);
    border: 1px solid rgba(125, 60, 255, 0.3);
    border-radius: 50px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(125, 60, 255, 0.2);
}

.search-bar button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    color: var(--accent);
}

.suggestions {
    position: absolute;
    width: 100%;
    background: var(--dark-3);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s;
    z-index: 100;
}

.suggestions.show {
    max-height: 300px;
    border: 1px solid rgba(125, 60, 255, 0.3);
    border-top: none;
}

.suggestions div {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestions div:hover {
    background: rgba(125, 60, 255, 0.1);
    color: var(--accent);
}

/* ===== SCRIPT CARDS ===== */
.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.script-card {
    background: var(--dark-2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(125, 60, 255, 0.1);
    transition: all 0.3s;
    position: relative;
}

.script-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(125, 60, 255, 0.1);
    border-color: rgba(125, 60, 255, 0.3);
}

.script-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.script-content {
    padding: 1.5rem;
}

.script-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.script-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.script-code {
    background: var(--dark-3);
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    position: relative;
    overflow-x: auto;
}

.script-code::after {
    content: 'Lua';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0 0 0 5px;
}

.copy-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: -100px;
    right: 2rem;
    background: var(--dark-3);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: bottom 0.4s;
    z-index: 1000;
}

.notification.show {
    bottom: 2rem;
}

.notification i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .script-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}