/* TrendCatcher Live - Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .logo {
    font-size: 2em;
    font-weight: bold;
    color: #FF0000;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left .tagline {
    color: #FF4444;
    font-size: 1.4em;
    font-weight: bold;
    margin: 8px 0 0 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #FF4444, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
}

.live-indicator {
    background: #FF0000;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

.last-update {
    color: #888;
}

/* Main Content */
.main {
    padding: 30px 0;
}

.notification-bar {
    background: linear-gradient(90deg, #FF6B35, #F7931E, #FFD700);
    color: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    animation: pulseGlow 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

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

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    }
}

/* Upgrade hint styling */
.upgrade-hint {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: bold;
    margin-left: 15px;
    animation: bounce 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Trends Grid - 2段構成レイアウト */
/* 統一自動配置システム：上から3列ずつ詰めて表示 */
.trends-grid-unified {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    max-width: 1360px; /* コンテナ幅と合わせる (1400px - 40px padding) */
}

/* 旧Tier1/Tier2システム（互換性のため維持） */
.trends-grid-tier1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
    max-width: 1360px; /* コンテナ幅と合わせる (1400px - 40px padding) */
}

.trends-grid-tier2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    max-width: 1360px; /* コンテナ幅と合わせる (1400px - 40px padding) */
}

/* 旧レイアウトとの互換性のため維持 */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    max-width: 1360px; /* コンテナ幅と合わせる (1400px - 40px padding) */
}

.trend-column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

/* 透明なプレースホルダー要素 */
.trend-column-placeholder {
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    visibility: hidden; /* 完全に透明 */
    pointer-events: none; /* クリック不可 */
}

.trend-column:hover {
    transform: translateY(-5px);
}

.column-header {
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.column-header h2 {
    font-size: 1.4em;
    margin-bottom: 5px;
}

.column-header.reddit h2 { color: #FF4500; }
.column-header.youtube h2 { color: #FF0000; }
.column-header.rss h2 { color: #4285F4; }
.column-header.mastodon h2 { color: #563ACC; }

/* ヘッダーコントロール - 更新情報とトグルボタン */
.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.update-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ビュートグルボタンスタイル */
.view-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.view-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.view-toggle-btn:active {
    transform: translateY(0px);
    transition: transform 0.1s ease;
}

/* 展開状態時のボタンスタイル */
.view-toggle-btn.expanded {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* 🔒 Freeプラン制限ボタンスタイル */
.view-toggle-btn.pro-locked {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.view-toggle-btn.pro-locked:hover {
    transform: none;
    filter: brightness(0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.update-time {
    color: #888;
    font-size: 0.85em;
}

.update-frequency {
    color: #666;
    font-size: 0.75em;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    align-self: flex-start;
}

/* Trend Items */
.trend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 独立スクロールシステム */
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    /* カスタムスクロールバー */
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) rgba(0, 0, 0, 0.1);
}

/* Webkit系ブラウザ用カスタムスクロールバー */
.trend-list::-webkit-scrollbar {
    width: 6px;
}

.trend-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.trend-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.trend-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* 展開モード - 全データ表示（スクロールなし） */
.trend-list.expanded {
    max-height: none !important;
    overflow-y: visible !important;
    height: auto !important;
    transition: max-height 0.5s ease;
}

.trend-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.trend-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.trend-item.hot {
    background: linear-gradient(90deg, #FFE5E5, #FFF0F0);
    border-left-color: #FF0000;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
}

.rank {
    font-weight: bold;
    font-size: 1.1em;
    color: #666;
    min-width: 25px;
    text-align: center;
}

.trend-text {
    flex: 1;
    margin: 0 15px;
    font-weight: 500;
    color: #333;
}

.trend-indicator {
    font-size: 1.2em;
    min-width: 40px;
    text-align: right;
}

.trend-indicator.up { color: #28a745; }
.trend-indicator.down { color: #dc3545; }
.trend-indicator.stable { color: #6c757d; }

/* Maintenance Column Styles */
.trend-column-maintenance {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #FFA500;
    position: relative;
    overflow: hidden;
}

.trend-column-maintenance::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.1), transparent);
    animation: maintenance-shimmer 3s infinite;
}

@keyframes maintenance-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.column-header.maintenance {
    border-bottom: 2px solid #FFA500;
}

.column-header.maintenance h2 {
    color: #FF4500;
    opacity: 0.7;
}

.maintenance-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maintenance-badge {
    background: linear-gradient(90deg, #FFA500, #FF6B35);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    align-self: flex-start;
    animation: pulse 2s infinite;
}

.maintenance-text {
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}

.maintenance-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.maintenance-message {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
}

.maintenance-icon {
    font-size: 3em;
    margin-bottom: 20px;
    animation: maintenance-spin 4s linear infinite;
}

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

.maintenance-message h3 {
    font-size: 1.5em;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.maintenance-message p {
    color: #6c757d;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.maintenance-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    text-align: left;
}

.feature-item {
    color: #495057;
    font-size: 0.9em;
    padding: 8px 15px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    border-left: 4px solid #FFA500;
}

.maintenance-eta {
    color: #FFA500;
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 15px;
}

/* Plan Comparison - Maintenance Status */
.interval.maintenance {
    background: linear-gradient(90deg, #FFA500, #FF6B35);
    color: white;
    font-weight: bold;
}

.pro-interval-item .interval.maintenance {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
    border: 1px solid #FFA500;
}

/* Control Panel */
.control-panel {
    display: flex;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

/* Plan-specific stat styling */
#currentPlan {
    color: #667eea;
}

/* Platform update intervals styling */
#redditUpdates {
    color: #FF4500;
}

#youtubeUpdates {
    color: #FF0000;
}

#rssUpdates {
    color: #4285F4;
}

/* Responsive stats layout */
.stats {
    display: block;
    width: 100%;
}

/* Plan Comparison Layout */
.plan-comparison {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 800px;
    justify-content: flex-start;
}

.current-plan-info {
    flex: 1;
    padding: 8px;
}

.plan-badge-large {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.plan-name {
    display: block;
    font-weight: bold;
    font-size: 0.9em;
}

.plan-updates {
    display: block;
    font-size: 0.75em;
    opacity: 0.9;
    margin-top: 2px;
}

.platform-intervals {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.interval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    padding: 4px 0;
}

.platform {
    font-weight: 500;
    color: #333;
}

.interval {
    color: #666;
    font-size: 0.8em;
}

/* VS Divider */
.vs-divider {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 8px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8em;
    text-align: center;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 20px;
}

/* Pro Plan Preview */
.pro-plan-preview {
    flex: 1;
    cursor: default;
    border: 2px solid transparent;
    padding: 8px;
    border-radius: 15px;
}

/* Hover effects disabled - Pro Plan Preview is display only */
/*.pro-plan-preview:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}*/

.pro-badge {
    background: linear-gradient(45deg, #4CAF50, #45A049);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.pro-name {
    display: block;
    font-weight: bold;
    font-size: 0.9em;
}

.pro-benefits {
    display: block;
    font-size: 0.75em;
    opacity: 0.9;
    margin-top: 2px;
}

.pro-intervals {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.pro-interval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    padding: 4px 0;
}

.interval.pro {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.8em;
}

.upgrade-cta {
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cta-text {
    color: #667eea;
    font-weight: bold;
    font-size: 0.85em;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.8em;
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 15px;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.btn-warning {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    color: #333;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* 🚀 時系列トレンドUI */

/* 時間軸タブ */
.timeline-tabs {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.timeline-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.timeline-tab.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* カテゴリフィルター */
.category-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: bold;
    color: #333;
    min-width: 60px;
    font-size: 0.9em;
}

.category-filter, .platform-filter {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    font-weight: 500;
}

.category-filter:hover, .platform-filter:hover {
    border-color: #667eea;
    color: #667eea;
}

.category-filter.active, .platform-filter.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
}

/* カテゴリバッジ */
.category-badge {
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* 急上昇トレンドアラート - 浮遊オーバーレイ方式 */
.breaking-trends {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #fd7e14);
    color: white;
    padding: 15px 18px;
    border-radius: 15px;
    max-width: 380px;
    min-width: 280px;
    animation: breakingSlideIn 0.5s ease-out, breakingPulse 3s infinite 0.5s;
    box-shadow: 
        0 8px 25px rgba(255, 107, 107, 0.4),
        0 4px 15px rgba(238, 90, 36, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Breaking Trends アニメーション */
@keyframes breakingSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes breakingPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 25px rgba(255, 107, 107, 0.4),
            0 4px 15px rgba(238, 90, 36, 0.3),
            0 0 0 0 rgba(255, 107, 107, 0.7); 
    }
    50% { 
        box-shadow: 
            0 12px 35px rgba(255, 107, 107, 0.6),
            0 6px 20px rgba(238, 90, 36, 0.5),
            0 0 0 15px rgba(255, 107, 107, 0); 
    }
}

/* Breaking Trends ヘッダー */
.breaking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.breaking-trends h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex: 1;
}

/* 閉じるボタン */
.breaking-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.breaking-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.breaking-trend-item {
    display: block;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 12px;
    font-size: 0.88em;
    border-radius: 12px;
    margin: 6px 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.breaking-trend-item:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(2px);
    border-left-color: rgba(255, 255, 255, 0.8);
}

/* 時間軸チャート */
.timeline-chart {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.chart-subtitle {
    color: #666;
    font-size: 0.9em;
}

/* 時間軸表示 */
.hourly-timeline {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    margin: 15px 0;
}

.hour-block {
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hour-block.has-data {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.hour-block.current-hour {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #667eea;
}

.hour-block:hover {
    transform: scale(1.1);
}

/* 3日間履歴表示 */
.three-days-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.day-column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.day-header {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

.day-date {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.day-subtitle {
    color: #666;
    font-size: 0.85em;
    margin-top: 2px;
}

/* トレンドアイテムの拡張スタイル */
.trend-item.breaking {
    background: linear-gradient(90deg, #FFE5E5, #FFF0F0);
    border-left: 4px solid #ff6b6b;
    position: relative;
}

.trend-item.breaking::before {
    content: "🔥 NEW";
    position: absolute;
    top: -8px;
    right: 8px;
    background: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6em;
    font-weight: bold;
}

.trend-item.category-tech { border-left-color: #4facfe; }
.trend-item.category-business { border-left-color: #ff9068; }
.trend-item.category-entertainment { border-left-color: #a8edea; }
.trend-item.category-lifestyle { border-left-color: #ffecd2; }

/* ローディング状態 */
.timeline-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* アップグレード促進バナー */
.upgrade-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.upgrade-banner h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.upgrade-banner p {
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-size: 0.9em;
}

.upgrade-banner button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.upgrade-banner button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Manage Account Button - Industry Standard Design */
.manage-account-btn {
    background: rgba(64, 123, 255, 0.9) !important;
    border: 2px solid rgba(64, 123, 255, 1) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-left: 10px !important;
    text-decoration: none !important;
}

.manage-account-btn:hover {
    background: rgba(64, 123, 255, 1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(64, 123, 255, 0.4) !important;
}

/* プレミアム誘導UI */
.premium-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-prompt::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.premium-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
}

.premium-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    font-weight: bold;
}

.premium-content p {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    text-align: left;
}

.premium-features li {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.premium-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-stats .stat {
    text-align: center;
}

.premium-stats .stat-number {
    display: block;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.premium-stats .stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
}

.premium-upgrade-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.premium-upgrade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.6);
    background: linear-gradient(45deg, #FFE55C, #FF9500);
}

.premium-hint {
    margin: 15px 0 0 0;
    font-size: 0.9em;
    opacity: 0.7;
    font-style: italic;
}

/* 1週間ビュー専用プレビュー */
.premium-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.trend-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trend-preview-item:last-child {
    border-bottom: none;
}

.preview-rank {
    font-size: 1.2em;
    min-width: 30px;
}

.preview-text {
    flex: 1;
    text-align: left;
    margin: 0 15px;
    font-weight: 500;
}

.preview-growth {
    font-weight: bold;
    color: #4CAF50;
}

/* Responsive */
@media (max-width: 768px) {
    .trends-grid {
        grid-template-columns: 1fr;
    }
    
    .control-panel {
        text-align: center;
        padding: 20px;
    }
    
    .plan-comparison {
        flex-direction: column;
        gap: 20px;
    }
    
    .vs-divider {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-left .logo {
        font-size: 1.8em;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    /* Plan comparison mobile */
    .pro-plan-preview {
        padding: 15px;
    }
    
    .plan-badge-large, .pro-badge {
        padding: 10px 14px;
    }
    
    .upgrade-cta {
        padding: 10px;
    }
    
    /* プレミアムUIのモバイル対応 */
    .premium-prompt {
        padding: 30px 20px;
        margin: 15px 0;
    }
    
    .premium-icon {
        font-size: 3em;
        margin-bottom: 15px;
    }
    
    .premium-content h3 {
        font-size: 1.5em;
    }
    
    .premium-features {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .premium-stats {
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
    }
    
    .premium-stats .stat-number {
        font-size: 1.8em;
    }
    
    .premium-upgrade-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* Update Frequency & Upgrade Hints */
.update-frequency {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    margin-right: 10px;
}

.update-frequency.free-plan {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
}

.update-frequency.free-plan-exhausted {
    background: linear-gradient(45deg, #DC3545, #C82333);
    color: white;
    animation: pulse 1.5s infinite;
    font-weight: bold;
}

.update-frequency.pro-plan {
    background: linear-gradient(45deg, #4CAF50, #45A049);
    color: white;
}

.upgrade-hint-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
}

.hint-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.hint-content button {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hint-content button:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 🚀 超魅力的なUnlock Unlimitedボタン */
.upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 2px 8px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.upgrade-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.6s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.6),
        0 4px 15px rgba(118, 75, 162, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #7c8bff 0%, #8a5bbc 50%, #ff9eff 100%);
    filter: brightness(1.1);
}

.upgrade-btn:hover:before {
    left: 100%;
}

.upgrade-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.upgrade-btn:focus {
    outline: none;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.6),
        0 4px 15px rgba(118, 75, 162, 0.4),
        0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* パルスアニメーション（注意を引く） */
@keyframes pulse-glow {
    0% {
        box-shadow: 
            0 4px 15px rgba(102, 126, 234, 0.4),
            0 2px 8px rgba(118, 75, 162, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 20px rgba(102, 126, 234, 0.6),
            0 3px 12px rgba(118, 75, 162, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(102, 126, 234, 0.4),
            0 2px 8px rgba(118, 75, 162, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.upgrade-btn {
    animation: pulse-glow 3s infinite;
}

/* 🎯 Pallyy方式トライアル確認モーダル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    z-index: 10000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.trial-confirmation h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.trial-info {
    margin-bottom: 24px;
}

.trial-info p {
    margin-bottom: 12px;
    color: #555;
    font-size: 1.1em;
}

.trial-info ul {
    margin: 16px 0;
    padding-left: 20px;
}

.trial-info li {
    margin-bottom: 8px;
    color: #666;
    font-size: 1em;
}

.billing-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.billing-notice p {
    margin: 8px 0;
    color: #856404;
    font-size: 0.95em;
}

.billing-notice p:first-child {
    font-weight: bold;
    font-size: 1em;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.2s ease;
    pointer-events: auto;
    user-select: none;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    pointer-events: auto;
    user-select: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}