/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Search section */
.search-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    border-color: #00d4ff;
}

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

/* Quick actions */
.quick-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.2);
    color: white;
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.quick-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

/* Loading */
.loading {
    text-align: center;
    color: white;
    margin: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.results {
    width: 100%;
    max-width: 800px;
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.result-header h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.ip-display-container {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.ip-display-large {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 25%, #0066ff 50%, #00d4ff 75%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    cursor: pointer;
    display: inline-block;
    position: relative;
    text-shadow: 0 0 50px rgba(0, 212, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
}

.ip-display-large::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099cc, #0066ff);
    border-radius: 2px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.ip-display-large:hover::after {
    width: 100%;
}

.ip-display-large:hover {
    transform: scale(1.08);
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.9);
    filter: brightness(1.2);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efecto de partículas flotantes alrededor de la IP */
.ip-display-container::before,
.ip-display-container::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
    opacity: 0.7;
}

.ip-display-container::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.ip-display-container::after {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.ip-display {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #00d4ff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.info-label i {
    color: #00d4ff;
    width: 16px;
}

.info-value {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
}

/* Error */
.error {
    width: 100%;
    max-width: 500px;
}

.error-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-card i {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: 15px;
}

.error-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.error-card p {
    color: #666;
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.footer p {
    margin-bottom: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quick-actions {
        justify-content: center;
    }
    
    .quick-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .ip-display-large {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-btn {
        width: 100%;
    }
    
    .ip-display-large {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }
}

/* Estilos adicionales para la versión avanzada */
.json-viewer {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.json-content {
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.copy-btn {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.info-section h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.info-value {
    color: #666;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    justify-content: center;
}

.nav-btn {
    padding: 12px 24px;
    background: rgba(0, 212, 255, 0.2);
    color: white;
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
} 