/* netclusive IP Information Page Styles */
/* Version 1.2.0 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0b65ae 0%, #094a8a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

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

h1 {
    color: #0b65ae;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
}

.info-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #0b65ae;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    color: #333;
    word-break: break-all;
}

.ip-highlight {
    background: linear-gradient(135deg, #0b65ae 0%, #094a8a 100%);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(11, 101, 174, 0.3);
    cursor: pointer;
    transition: box-shadow 0.2s;
    position: relative;
    user-select: none;
}

.ip-highlight:hover {
    box-shadow: 0 12px 24px rgba(11, 101, 174, 0.4);
}

.ripe-link {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #0b65ae;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.ripe-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.copy-icon {
    display: inline-block;
    margin-left: 15px;
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    vertical-align: middle;
}

.ip-highlight:hover .copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

.copy-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: #0b65ae;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0b65ae 0%, #094a8a 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(11, 101, 174, 0.3);
}

.btn:hover {
    box-shadow: 0 8px 20px rgba(11, 101, 174, 0.4);
}

.btn-secondary {
    background: white;
    color: #0b65ae;
    border: 2px solid #0b65ae;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.teamviewer-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.teamviewer-box a {
    display: block;
    margin-bottom: 10px;
}

.teamviewer-box img {
    max-width: 100%;
    height: auto;
}

.teamviewer-toggle {
    margin-top: 15px;
    padding: 12px 20px;
    background: white;
    color: #0b65ae;
    border: 2px solid #0b65ae;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

.teamviewer-toggle:hover {
    background: #0b65ae;
    color: white;
}

.toggle-icon {
    transition: transform 0.3s;
    display: inline-block;
}

.toggle-icon.open {
    transform: rotate(180deg);
}

.teamviewer-explanation {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.teamviewer-explanation.visible {
    display: block;
}

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

.teamviewer-explanation h3 {
    color: #0b65ae;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.teamviewer-explanation ol {
    margin: 10px 0;
    padding-left: 20px;
}

.teamviewer-explanation li {
    margin: 8px 0;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

footer a {
    color: #0b65ae;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .ip-highlight {
        font-size: 1.5rem;
        padding: 20px;
    }
}
