/* --- Global Styles & Resets --- */
:root {
    --bg-color: #0d0d0d;
    --card-bg: #161616;
    --item-bg: #1e1e1e;
    --accent-color: #00ff9d;
    /* Terminal Green */
    --asn-color: #ff9800;
    /* Orange */
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-hint: #555;
    --border-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.7);
}

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

body {
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "monospace";
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- Card UI --- */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    text-align: center;
    border: 1px solid #333;
}

h1 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* --- IP Display --- */
.display-container {
    margin-bottom: 40px;
}

.ip-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    word-break: break-all;
    line-height: 1.1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.ip-display:hover {
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    transform: scale(1.02);
}

.click-hint {
    font-size: 0.75rem;
    color: var(--text-hint);
    height: 1em;
}

/* --- Info Grid --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
}

.info-item {
    background: var(--item-bg);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.asn-badge {
    color: var(--asn-color);
    font-weight: bold;
}

/* --- Loading Animation (Shimmer Effect) --- */
.loading {
    color: transparent !important;
    background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    min-width: 100px;
    display: inline-block;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* --- Responsive Layout --- */
@media (max-width: 500px) {
    .card {
        padding: 25px;
    }

    .ip-display {
        font-size: 2.2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}