/* オフライン時のスタイル */
.offline {
    filter: grayscale(0.5);
}

.offline-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f44336;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 9999;
    font-weight: bold;
}

/* インストールボタン */
.add-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 28px;
    width: auto;
    min-width: 56px;
    height: 56px;
    padding: 0 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: none;
    z-index: 1000;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: bounce 1s infinite;
}

.add-button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.add-button i {
    font-size: 20px;
    margin-right: 8px;
}

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

/* モバイルデバイスでの表示調整 */
@media (max-width: 768px) {
    .add-button {
        bottom: 16px;
        right: 16px;
        height: 48px;
        padding: 0 20px;
        font-size: 14px;
    }
    
    .add-button i {
        font-size: 18px;
        margin-right: 6px;
    }
}

/* アプリケーションシェル */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-content {
    flex: 1;
    padding: 20px;
}

/* スプラッシュスクリーン */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.splash-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.splash-screen .logo {
    width: 120px;
    height: 120px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}
