/* CSS Variables para el diseño estético de ciberseguridad */
:root {
    --bg-color: #0b0f19;
    --acc-green: #00ffaa;
    --acc-red: #ff3366;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background effects */
.background-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
}

.glow-orb {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -30vw;
    left: 20%;
    z-index: -1;
    pointer-events: none;
}

/* Typography & Links */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: #fff; }
p { color: var(--text-muted); }
a { color: var(--acc-green); text-decoration: none; transition: 0.3s; }
a:hover { text-shadow: 0 0 8px var(--acc-green); }

.gradient-text {
    background: linear-gradient(90deg, var(--acc-red), #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo .accent { color: var(--acc-green); }
.logo-icon { margin-right: 8px; }

header nav a {
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Main Layout */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 5%;
}

.hero {
    max-width: 800px;
    text-align: center;
    margin-bottom: 4rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Search Box */
.search-container {
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .input-group {
        flex-direction: row;
        align-items: stretch;
    }
}

.selector select {
    appearance: none;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    width: 100%;
    height: 100%;
}

.selector select:hover { border-color: rgba(0, 255, 170, 0.5); }

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .input-wrapper {
        flex-direction: row;
    }
}

.input-wrapper input {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--acc-green);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}

.primary-btn {
    background: var(--acc-green);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 170, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Results */
.hidden { display: none !important; }

#loading {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-mono);
    color: var(--acc-green);
}

.spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(0, 255, 170, 0.3);
    border-top-color: var(--acc-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-box.safe {
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid var(--acc-green);
}

.result-box.danger {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--acc-red);
}

.result-box h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.result-box.safe h4 { color: var(--acc-green); }
.result-box.danger h4 { color: var(--acc-red); }

.crypto-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-top: 1rem;
    opacity: 0.7;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border-radius: 4px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

@media (min-width: 768px) {
    .info-grid { grid-template-columns: 1fr 1fr; }
}

.glass-card {
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s;
}

.glass-card:hover { filter: brightness(1.1); }
.glass-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Footer */
footer {
    margin-top: 4rem;
    padding: 3rem 5%;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 24px 24px 0 0;
}

.footer-content { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-content h4 { color: var(--acc-green); margin-bottom: 1rem; }
.footer-content p { font-size: 0.9rem; margin-bottom: 2rem; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 1.5rem; font-size: 0.8rem; color: #64748b; }
