/* ============================================
   タイムラインページ専用スタイル
   ゲーム版と同じデザイン
   ============================================ */

/* 背景（ヘッダーと同じ黄色） */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: #d2bd2d !important;
    margin: 0;
    padding: 0;
}

/* ============================================
   ブラウザ端固定広告（Googleアドセンス風）
   ============================================ */
.ad-fixed {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 100;
}

.ad-fixed.ad-left {
    left: 10px;
}

.ad-fixed.ad-right {
    right: 10px;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 画面幅が狭い時は広告を非表示 */
@media (max-width: 1200px) {
    .ad-fixed {
        display: none;
    }
}

/* ============================================
   縦長コンテナ（100vh固定）
   ============================================ */
.phone-container {
    width: 100%;
    max-width: 375px;
    height: 100vh;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    overflow: hidden;
    flex-shrink: 0;
}

/* ============================================
   ヘッダー（ゲーム版と同じ黄色）
   ============================================ */
.timeline-header {
    height: 50px;
    background-color: #d2bd2d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.header-title {
    font-size: 16px;
    font-weight: bold;
}

.header-spacer {
    width: 60px;
}

/* ============================================
   タイムラインエリア（ゲーム版と同じ）
   ============================================ */
.timeline-area {
    flex: 1;
    overflow: hidden;
    background: #fff;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* 各投稿アイテム */
.timeline-item {
    display: flex;
    flex: 1;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    gap: 8px;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
    align-items: center;
    min-height: 0;
}

.timeline-item:hover {
    background: #fafafa;
}

.timeline-item:active {
    background: #f5f5f5;
}

/* ユーザーアイコン */
.user-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ツイート内容 */
.tweet-content {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 2px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.user-tag {
    font-size: 10px;
    font-weight: normal;
    color: #888;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 10px;
}

.tweet-text {
    font-size: 13px;
    color: #555;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tweet-time {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 2px;
}

/* ============================================
   下部広告（枠内に固定）
   ============================================ */
.ad-bottom {
    flex-shrink: 0;
    height: 80px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    gap: 10px;
}
