/*
Theme Name: China Buzz
Theme URI: https://chinabuzz.jp
Author: Your Name
Author URI: https://chinabuzz.jp
Description: 中国トレンド専門のニュースサイトテーマ - SmartNews風デザイン
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: china-buzz
Tags: news, trends, responsive, modern
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: #e60012;
}

.site-navigation {
    display: flex;
    gap: 24px;
}

.site-navigation a {
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}

.site-navigation a:hover {
    color: #e60012;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.date-header {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Main Article (Rank 1) */
.main-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.main-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.main-article a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.main-article .thumbnail-wrapper {
    width: 240px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.main-article .post-thumbnail {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-article-content {
    flex: 1;
    padding: 0 15px 0 0;
}

/* Rank Badge */
.rank-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e60012 0%, #ff4444 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.rank-badge.rank-2-7 {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

.rank-badge.rank-8-plus {
    background: linear-gradient(135deg, #4a90e2 0%, #67b5ff 100%);
    font-size: 11px;
    padding: 3px 8px;
}

/* Post Title */
.post-title {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card .post-title {
    font-size: 16px;
}

.small-card .post-title {
    font-size: 14px;
}

/* Meta Information */
.post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.post-meta .views,
.post-meta .time,
.post-meta .source {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.article-card .post-excerpt {
    font-size: 14px;
}

.small-card .post-excerpt {
    font-size: 13px;
}

/* Grid Layouts */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.article-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Article Card */
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-card .post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 16px;
}

/* Small Card */
.small-card .post-thumbnail {
    height: 150px;
}

.small-card .article-card-content {
    padding: 12px;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    color: #999;
}

/* Single Post Page */
.single-post {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.post-content {
    line-height: 1.8;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-grid,
    .article-grid-4 {
        grid-template-columns: 1fr;
    }

    .main-article a {
        flex-direction: column;
    }

    .main-article .thumbnail-wrapper {
        width: 100%;
        height: 200px;
    }

    .main-article-content {
        padding: 15px;
    }

    .site-navigation {
        display: none;
    }

    .header-content {
        padding: 12px 16px;
    }

    .container {
        padding: 16px;
    }
}