/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier New', monospace;
    background: radial-gradient(circle at top, #1a122a 0%, #0f0c1a 60%, #050308 100%);
    color: #f0eaff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.crt-overlay {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: soft-light;
    opacity: 0.6;
    z-index: -1;
}

.container {
    background: rgba(10, 6, 22, 0.9);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.4), 0 0 60px rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    max-width: 520px;
    width: 100%;
    padding: 20px 18px 16px;
}

header {
    text-align: center;
    margin-bottom: 18px;
}

header h1 {
    font-size: 1.7rem;
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.8);
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.85rem;
    color: #d0b0ff;
    opacity: 0.9;
}

main {
    margin-bottom: 14px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

label {
    font-size: 0.85rem;
    color: #d6c6ff;
}

input[type="url"] {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ff00ff;
    background: rgba(5, 3, 10, 0.9);
    color: #f5e9ff;
    font-size: 0.9rem;
    outline: none;
}

input[type="url"]::placeholder {
    color: #9b7ccc;
}

input[type="url"]:focus {
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
}

button {
    padding: 9px 14px;
    border-radius: 4px;
    border: 1px solid #ff00ff;
    background: linear-gradient(90deg, #ff00ff, #ff7bff);
    color: #14071e;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

button:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
    box-shadow: none;
}

#result {
    border-top: 1px dashed rgba(255, 0, 255, 0.6);
    padding-top: 10px;
}

#result.hidden {
    display: none;
}

#result h2 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #ffb3ff;
    text-shadow: 0 0 6px rgba(255, 179, 255, 0.8);
}

.result-item {
    font-size: 0.85rem;
    margin-bottom: 8px;
    word-break: break-all;
}

.result-item .label {
    color: #c1a3ff;
    margin-right: 6px;
}

#short-link {
    color: #00ffd5;
    text-decoration: none;
}

#short-link:hover {
    text-decoration: underline;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.buttons button {
    flex: 1 1 140px;
}

.qr-wrapper {
    display: flex;
    justify-content: center;
    padding: 8px;
}

#qr-image {
    width: 200px;
    height: 200px;
    border-radius: 6px;
    background: #050308;
    border: 1px solid rgba(255, 0, 255, 0.6);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.3);
}

footer {
    text-align: center;
    font-size: 0.75rem;
    color: #a58ce0;
    opacity: 0.85;
}

/* Responsivo */
@media (max-width: 480px) {
    .container {
        padding: 16px 12px 12px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    #qr-image {
        width: 180px;
        height: 180px;
    }
}
