/**
 * Zorotan Theme - Announcements & News Page Styles
 * 
 * Announcements specific styles only
 * 
 * @package Zorotan
 * @version 1.0.0
 */

/* ========================================
   0. CSS VARIABLES (必要な場合)
   ======================================== */
:root {
    --spacing-unit: 8px;
    --primary-color: #000;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #e5e5e5;
    --bg-gray: #f5f5f5;
    --white: #fff;
    --max-width: 1200px;
}

/* ========================================
   1. MAIN CONTENT LAYOUT
   ======================================== */

.main-content {
    min-height: 600px;
    padding-top: 80px; /* 固定値に変更 */
    padding-bottom: 80px;
    background-color: #ffffff; /* 明示的に背景色を設定 */
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   2. ANNOUNCEMENTS LIST
   ======================================== */

.announcements-list {
    display: block;
    width: 100%;
}

.announcement-item {
    padding: 32px 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    background-color: transparent; /* 透明に設定 */
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(4px);
}

.announcement-item::before {
    content: '';
    position: absolute;
    left: -24px; /* paddingの外側に配置 */
    top: 0;
    bottom: 0;
    width: 3px;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-item:hover::before {
    opacity: 1;
}

.announcement-date {
    min-width: 120px;
    color: #666;
    font-size: 13px;
    padding-top: 3px;
    text-align: right;
    flex-shrink: 0; /* 縮小を防ぐ */
}

.announcement-date .day {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.announcement-date .month-year {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999;
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

.announcement-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.announcement-title a:hover {
    color: #666;
}

.announcement-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: #666;
}

.read-more::after {
    content: ' →';
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 12px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    text-transform: uppercase;
    transition: all 0.3s ease;
    /* 横幅の制限を追加 */
    max-width: fit-content;
    white-space: nowrap;
}

.category-tag.news {
    background: rgba(37, 73, 210, 0.1);
    color: var(--theme-blue);
    border: 1px solid rgba(37, 73, 210, 0.3);
}
.category-tag.media {
    background: #F3E5F5;
    color: #7B1FA2;
}

.category-tag.event,
.category-tag.live {
    background: rgba(109, 62, 144, 0.1);
    color: var(--theme-purple);
    border: 1px solid rgba(109, 62, 144, 0.3);
}

.category-tag.release {
    background: linear-gradient(135deg, rgba(109, 62, 144, 0.1) 0%, rgba(37, 73, 210, 0.1) 100%);
    color: var(--theme-purple);
    border: 1px solid rgba(109, 62, 144, 0.3);
}

/* Featured Announcement */
.announcement-item.featured {
    background: linear-gradient(135deg, #f5f5f5 0%, rgba(245, 245, 245, 0.5) 100%);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid #e5e5e5;
}

.announcement-item.featured::before {
    display: none;
}

.announcement-item.featured .announcement-title {
    font-size: 24px;
    margin-bottom: 24px;
}

/* ========================================
   3. ANNOUNCEMENTS HEADER & FILTERS
   ======================================== */

.content-header {
    margin-bottom: 48px;
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #000;
    margin: 0;
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 12px;
    letter-spacing: 0.05em;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover,
.filter-btn.active {
    color: #fff;
    background: #000;
    border-color: #000;
    transform: translateY(-1px);
}

.filter-btn .count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 10px;
}

/* ========================================
   4. PAGINATION & LOAD MORE
   ======================================== */

.load-more {
    text-align: center;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #e5e5e5;
}

.load-more-btn {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    text-transform: uppercase;
}

.load-more-btn:hover {
    background: #000;
    color: #fff;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-btn.loading {
    pointer-events: none;
}

/* ========================================
   5. NO RESULTS
   ======================================== */

.no-results {
    text-align: center;
    padding: 64px 32px;
    color: #666;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-results-text {
    font-size: 18px;
    margin-bottom: 16px;
    color: #000;
}

.no-results-subtext {
    font-size: 14px;
    color: #999;
}

/* ========================================
   6. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .main-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .section-container {
        padding: 0 16px;
    }

    .announcement-item {
        flex-direction: column;
        gap: 16px;
        padding: 24px 0;
    }

    .announcement-date {
        min-width: auto;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 16px;
    }

    .announcement-date .day {
        font-size: 16px;
        margin-bottom: 0;
    }

    .announcement-title {
        font-size: 16px;
    }

    .filter-controls {
        flex-direction: column;
        gap: 24px;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 12px 20px;
        font-size: 11px;
    }

    .page-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .announcement-item.featured {
        padding: 24px;
    }

    .announcement-item.featured .announcement-title {
        font-size: 20px;
    }

    .page-title {
        font-size: 24px;
    }

    .load-more-btn {
        padding: 12px 32px;
        font-size: 12px;
    }
}

