/* Location display */
.location-display-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    min-width: 180px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FDE68A;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(240, 185, 11, 0.18);
}

[data-theme="dark"] .location-display-enhanced {
    background: var(--bg-secondary, #1E2329);
    border-color: var(--border-color, #2B3139);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.location-display-enhanced:hover {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #F0B90B;
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.28);
}

[data-theme="dark"] .location-display-enhanced:hover {
    background: var(--bg-tertiary, #2B3139);
    border-color: var(--border-hover, #3C4451);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* 位置信息容器 */
.location-info-container {
    flex: 1;
    min-width: 0;
}

/* 位置标签 */
.location-label {
    font-size: 9px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* 位置文本 */
.location-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

/* IP 显示 */
.location-ip {
    font-size: 9px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: 'Courier New', monospace;
}

/* 登录时间 */
.location-time {
    font-size: 9px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
    font-family: 'Courier New', monospace;
}

/* 天气容器 */
.weather-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.weather-container #weather-icon {
    color: #FFB800;
    font-size: 24px;
}

.weather-container #weather-temp {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

/* 骨架屏样式 - 位置 */
.skeleton-location {
    display: inline-block;
    min-width: 80px;
    height: 14px;
    border-radius: 3px;
}

/* 骨架屏样式 - IP */
.skeleton-ip {
    display: inline-block;
    min-width: 90px;
    height: 11px;
    border-radius: 3px;
}

/* 骨架屏样式 - 时间 */
.skeleton-time {
    display: inline-block;
    min-width: 75px;
    height: 11px;
    border-radius: 3px;
}

/* 骨架屏样式 - 温度 */
.skeleton-temp {
    display: inline-block;
    min-width: 28px;
    height: 13px;
    border-radius: 3px;
}

/* 骨架屏样式 - 天气图标 */
.skeleton-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* 数据加载完成后，移除骨架屏效果 */
.skeleton-location:not(.skeleton-cell),
.skeleton-ip:not(.skeleton-cell),
.skeleton-time:not(.skeleton-cell),
.skeleton-temp:not(.skeleton-cell) {
    min-width: unset;
    height: auto;
    background: none !important;
    animation: none !important;
}

/* 位置徽章 */
.location-badge {
    display: none;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(14, 203, 129, 0.15);
    color: var(--binance-green, #0ECB81);
    font-weight: 600;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.location-display-hover:hover:not(.location-display-enhanced) {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* 天气图标动画 */
@keyframes weather-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes weather-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes weather-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes weather-float {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(2px) translateY(-2px); }
    50% { transform: translateX(0) translateY(-3px); }
    75% { transform: translateX(-2px) translateY(-2px); }
}

@keyframes weather-rain {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.weather-icon-spin {
    animation: weather-pulse 3s ease-in-out infinite;
}

.weather-icon-cloud {
    animation: weather-float 4s ease-in-out infinite;
}

.weather-icon-rain {
    animation: weather-rain 1.5s ease-in-out infinite;
}

.weather-icon-bounce {
    animation: weather-bounce 2s ease-in-out infinite;
}
