/* 新着情報表示プラグイン スタイル */

.news-notifications {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-notifications-title {
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    font-size: 18px;
    font-weight: bold;
}

.news-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-notification-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    gap: 8px;
}

.news-notification-item:hover {
    background: #f0f0f0;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-content {
    width: 100%;
}

.notification-date {
    background: #666;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}

.notification-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.notification-type.new {
    background: #d63638;
    color: white;
}

.notification-type.update {
    background: #00a32a;
    color: white;
}

.notification-title {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    display: block;
}

.notification-title:hover {
    color: #005a87;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-notifications {
        padding: 15px;
    }
    
    .notification-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .notification-date,
    .notification-type {
        margin: 0;
    }
    
    .notification-title {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* 管理画面用のスタイル */
.news-notifications-admin {
    margin-top: 20px;
}

.news-notifications-admin .widefat {
    margin-top: 15px;
}

.news-notifications-admin .widefat th,
.news-notifications-admin .widefat td {
    padding: 12px;
}

.news-notifications-admin .button {
    margin-bottom: 20px;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .news-notifications {
        background: #1a1a1a;
        border-color: #333;
        color: #e0e0e0;
    }
    
    .news-notification-item {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .news-notification-item:hover {
        background: #333;
    }
    
    .notification-title {
        color: #4a9eff;
    }
    
    .notification-title:hover {
        color: #6bb6ff;
    }
}