/**
 * WhoIAm Page Styles
 * Custom styles for the user information page
 */

/* Info Cards */
.info-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.info-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
    word-break: break-all;
}

.info-desc {
    color: #666;
    font-size: 14px;
}

/* Detail Cards */
.detail-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-title i {
    color: #007bff;
    font-size: 24px;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    font-weight: 500;
    color: #555;
    flex: 1;
}

.detail-value {
    font-weight: 600;
    color: #333;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Privacy Notice */
.privacy-notice {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #007bff;
}

.privacy-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-title i {
    color: #007bff;
}

.privacy-text {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Control Buttons */
.control-buttons {
    margin-top: 20px;
}

.control-buttons .vs-btn {
    margin: 5px;
}

/* Status-specific styling for info cards */
.info-card .user-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

/* Protected status */
.info-card .user-status:contains("Protected") {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Not protected status */
.info-card .user-status:contains("Not Protected") {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Loading states */
.info-value:contains("Detectando"),
.info-value:contains("Loading"),
.detail-value:contains("Detectando"),
.detail-value:contains("Loading") {
    color: #6c757d;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-card,
    .detail-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
    }
    
    .info-icon i {
        font-size: 24px;
    }
    
    .info-title {
        font-size: 16px;
    }
    
    .info-value {
        font-size: 18px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .privacy-notice {
        padding: 20px;
    }
    
    .control-buttons .vs-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .info-card,
    .detail-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .info-title,
    .detail-title,
    .detail-value {
        color: #e2e8f0;
    }
    
    .info-desc,
    .detail-label {
        color: #a0aec0;
    }
    
    .detail-item {
        border-bottom-color: #4a5568;
    }
    
    .privacy-notice {
        background: linear-gradient(135deg, #2d3748, #4a5568);
    }
    
    .privacy-title,
    .privacy-text {
        color: #e2e8f0;
    }
}

/* Special styling for featured service in service.html */
.featured-service {
    border: 2px solid #007bff;
    position: relative;
    overflow: hidden;
}

.featured-service::before {
    content: "NUEVO";
    position: absolute;
    top: 15px;
    right: -25px;
    background: #007bff;
    color: white;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 1;
}

.featured-service .service-icon i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Service button styling */
.service-btn {
    margin-top: 15px;
}

.service-btn .vs-btn {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 25px;
}

/* Advanced info styling */
.detail-value {
    max-width: 200px;
    overflow-wrap: break-word;
}

/* User agent styling */
#user-agent {
    font-family: 'Courier New', monospace;
    font-size: 10px !important;
    line-height: 1.2;
    max-width: 300px;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-yes {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-no {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-unknown {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Geolocation section */
.geolocation-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    border: 2px dashed #007bff;
}

/* Coordinate styling */
.coordinate-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #007bff;
}

/* Network info styling */
.network-info {
    background: rgba(0, 123, 255, 0.05);
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 0 10px 10px 0;
}

/* Capability badges */
.capability-badge {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.capability-supported {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.capability-not-supported {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading animation for new elements */
.detecting {
    position: relative;
    color: #6c757d !important;
    font-style: italic;
}

.detecting::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive improvements for new content */
@media (max-width: 768px) {
    #user-agent {
        font-size: 8px !important;
        max-width: 250px;
    }

    .detail-value {
        max-width: 150px;
        font-size: 12px;
    }

    .coordinate-value {
        font-size: 11px;
    }

    .capability-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Print styles */
@media print {
    .control-buttons,
    .privacy-notice .btn {
        display: none;
    }

    .info-card,
    .detail-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
