* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* 배경 그라데이션 애니메이션 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -2;
}

.background .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.background .shape:nth-child(1) {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.background .shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.background .shape:nth-child(3) {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* 글래스모피즘 카드 */
.card {
    padding: 48px 40px;
    position: relative;
}

.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 카드 헤더 */
.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.card-header .icon {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

/* IP 표시 영역 */
.ip-display {
    border-radius: 20px;
    padding: 48px 24px;
    margin-bottom: 32px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ip-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 로딩 스피너 */
.loading {
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-weight: 400;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* IP 주소 */
.ip-address {
    font-size: 3rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 3px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    display: none;
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
    border-radius: 12px;
}

.ip-address:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.1);
}

.ip-address:active {
    transform: scale(0.98);
}

.ip-address .copy-icon {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ip-address:hover .copy-icon {
    opacity: 0.7;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ip-address.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading.hide {
    display: none;
}

/* 정보 영역 */
.info {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.info p {
    margin-bottom: 16px;
}

.country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: 24px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.country:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 복사 알림 */
.copy-notification {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    color: white;
    padding: 16px 32px;
    border-radius: 28px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.copy-notification .material-symbols-outlined {
    font-size: 1.5rem;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .card {
        padding: 32px 24px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .card-header .icon {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .ip-display {
        padding: 32px 16px;
    }
    
    .ip-address {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }
    
    .ip-address .copy-icon {
        display: none;
    }
    
    .info {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .ip-address {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}
