/* 天気情報ローディング・エラー状態のスタイル */

.weather-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
}

.weather-loading-message {
    text-align: center;
    color: #666;
    font-size: 1rem;
}

.weather-loading-message p {
    margin: 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.weather-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
    text-align: center;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 1rem;
}

/* ローディングアニメーション */
.weather-loading-message p::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .weather-loading,
    .weather-error {
        min-height: 150px;
        padding: 1rem;
    }
    
    .weather-loading-message p {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* 天気アイテムのアニメーション */
.splide__slide {
    transition: opacity 0.3s ease-in-out;
}

.splide__slide.weather-loading {
    opacity: 0.7;
}

/* エラー状態のアイコン */
.weather-error::before {
    content: '⚠️';
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
