/* IP Information Container */
.ip-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* IP Main Info Section */
.ip-main-info {
    background: linear-gradient(90deg, #6c5ce7, #a88bfa);
    color: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 20px 25px -5px rgba(37, 99, 235, 0.1),
        0 10px 10px -5px rgba(37, 99, 235, 0.04),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-effect {
    position: absolute;
    width: 250%;
    height: 250%;
    top: -25%;
    left: -25%;
    background: radial-gradient(
        circle at center,
        rgba(86, 86, 86, 0.014) 0%,
        transparent 70%
    );
    animation: rotate 100s linear infinite;
}

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

.ip-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.ip-icon.pulse {
    animation: iconPulse 3s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.ip-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ip-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-icon i {
    font-size: 30px;
    color: white;
}

.ip-title {
    flex: 1;
}

.ip-title h2 {
    margin: 0;
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 500;
}

.ip-address-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.ip-address-display .ip {
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 0.5px;
    font-family: 'Roboto Mono', monospace;
}

.ip-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
}

.ip-badge.ipv4 {
    background: rgba(0, 0, 0, 0.2);
    color: #000000;
}

.ip-badge.ipv6 {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* Hover Effect */
.ip-main-info:hover .ip-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Responsive Design für IP-Anzeige */
@media (max-width: 480px) {
    .ip-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ip-address-display {
        flex-direction: column;
        align-items: center;
    }
    
    .ip-address-display .ip {
        font-size: 1.8em;
    }
    
    .ip-icon {
        width: 60px;
        height: 60px;
        padding: 15px;
    }
}

/* Info Sections */
.info-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-section h3 i {
    margin-right: 10px;
    color: #3498db;
}

/* Status Details */
.status-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item:hover {
    background-color: #f8f9fa;
}

.detail-item i {
    font-size: 1.5em;
    color: #3498db;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.detail-text {
    flex: 1;
}

.detail-text h3 {
    font-size: 0.9em;
    color: #7f8c8d;
    margin: 0;
    border: none;
    padding: 0;
}

.detail-text p {
    margin: 5px 0 0;
    color: #2c3e50;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ip-info-container {
        padding: 10px;
    }

    .ip-main-info {
        padding: 20px;
    }

    .ip-address-display .ip {
        font-size: 1.5em;
    }

    .detail-item {
        padding: 12px;
    }

    .detail-item i {
        font-size: 1.2em;
    }

    .detail-text p {
        font-size: 1em;
    }
}

/* Animations */
.info-section {
    animation: fadeIn 0.5s ease-out;
}

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

/* Map Section */
.location-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Color Themes for Different Info Types */
.location-info h3 i {
    color: #e74c3c;
}

.technical-info h3 i {
    color: #2ecc71;
}

.additional-info h3 i {
    color: #f1c40f;
}

.map-info h3 i {
    color: #9b59b6;
}

/* Loading State */
.detail-item.loading {
    opacity: 0.7;
}

.detail-item.loading .detail-text p {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}