/* ============================================================
   Pokemon Events Plugin - Full Stylesheet
   Version: 1.2
   ============================================================ */

/* 1. ベース・コンテナ */
.pk-events {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    max-width: 1000px;
    margin: 2em auto;
    line-height: 1.6;
}

/* 2. フィルターエリア（ドロップダウン） */
.pk-event-filter {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.pk-event-filter label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666;
}

.pk-event-filter select {
    appearance: none;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 40px 10px 15px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
}

.pk-event-filter select:focus {
    border-color: #0072ff;
    outline: none;
    background-color: #fff;
}

/* 3. タブ（セグメントコントロール風） */
.pk-events-tabs {
    background: #eee;
    padding: 4px;
    border-radius: 14px;
    margin: 0 auto 30px;
    display: flex;
    max-width: 400px;
}

.pk-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 11px;
}

.pk-tab.active {
    background: #fff;
    color: #0072ff;
}

/* 4. グリッドレイアウト */
.pk-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* 5. カードデザイン */
.pk-event-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pk-card-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* デフォルト（その他） */
.pk-event-card {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 150px);
    border-top: 5px solid #dee2e6;
}
/* 6. タグ・バッジ */
.pk-event-meta {
    margin-bottom: 12px;
}

.pk-tag-category {
    background: #fff4e6;
    color: #fd7e14;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    text-transform: uppercase;
}

.pk-tag-game {
    background: #e7f5ff;
    color: #228be6;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    margin-left: 6px;
}

.pk-status-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b6b;
    color: #fff;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
    border-bottom-left-radius: 15px;
}

/* 7. コンテンツ要素 */
.pk-event-title {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-weight: 800;
}

.pk-event-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    background: #f8f9fa;
}

.pk-date-box {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.pk-date-label {
    display: block;
    color: #adb5bd;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.pk-date-content {
    color: #495057;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.pk-event-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 8. アクションボタン */
.pk-event-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pk-btn {
    text-align: center;
    padding: 12px 5px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: opacity 0.2s;
}

.pk-btn-main {
    background: #339af0;
    color: #fff !important;
}

.pk-btn-outline {
    border: 2px solid #339af0;
    color: #339af0 !important;
}

.pk-btn:hover {
    opacity: 0.7;
}

/* 9. ページネーション */
.pk-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pk-page-prev, .pk-page-next {
    background: #fff;
    border: 2px solid #eee;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: all 0.2s;
}

.pk-page-prev:hover:not(:disabled), 
.pk-page-next:hover:not(:disabled) {
    border-color: #0072ff;
    color: #0072ff;
}

.pk-page-prev:disabled, 
.pk-page-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 10. フッター・出典 */
.pk-event-source {
    font-size: 0.65rem;
    color: #ced4da;
    margin-top: 15px;
    text-align: right;
    font-style: italic;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .pk-event-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    .pk-event-grid {
        grid-template-columns: 1fr;
    }
    .pk-events-tabs {
        margin: 0 10px 25px;
    }
}