/**
 * にしつー Analytics - 未読記事案内スタイル
 */

.n2a-unread-container {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
}

/* 位置 */
.n2a-unread-bottom-right {
    bottom: 20px;
    right: 20px;
}

.n2a-unread-bottom-left {
    bottom: 20px;
    left: 20px;
}

.n2a-unread-top-right {
    top: 80px;
    right: 20px;
}

.n2a-unread-top-left {
    top: 80px;
    left: 20px;
}

/* バー */
.n2a-unread-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
    min-width: 200px;
}

.n2a-unread-bar:hover {
    background: #444;
    transform: translateY(-2px);
}

.n2a-unread-text {
    font-size: 13px;
}

.n2a-unread-text strong {
    font-size: 16px;
    color: #ffd700;
}

.n2a-unread-next {
    font-size: 12px;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.n2a-unread-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
    flex-shrink: 0;
}

/* リスト */
.n2a-unread-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    animation: n2a-slideIn 0.2s ease;
}

@keyframes n2a-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.n2a-unread-date {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.n2a-unread-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.n2a-unread-item:last-child {
    border-bottom: none;
}

.n2a-unread-item:hover {
    background: #f8f9fa;
}

.n2a-unread-time {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}

.n2a-unread-title {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

/* モバイル対応 */
@media (max-width: 480px) {
    .n2a-unread-container {
        left: 10px !important;
        right: 10px !important;
        bottom: 130px !important; /* 広告バナーを避ける */
        top: auto !important;
    }

    .n2a-unread-bar {
        min-width: auto;
    }

    .n2a-unread-next {
        display: none; /* モバイルでは非表示 */
    }

    .n2a-unread-list {
        max-height: 300px;
    }
}
