/**
 * Raijanholvi AI Content Notice — "seal" badge
 * Palette: #1f9900 (green) · #000 / #fff
 */

.ai-content-notice {
    --aicn-green: #1f9900;
    --aicn-green-light: #5ad12d;
    --aicn-green-deep: #0f4d00;
    --aicn-black: #0d0d0d;
    --aicn-white: #ffffff;

    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
    margin-bottom: 28px;
}

.ai-content-notice__box {
    max-width: 100%;
}

/* Remove native <details> disclosure triangles across browsers */
.ai-content-notice__summary {
    list-style: none;
}
.ai-content-notice__summary::-webkit-details-marker {
    display: none;
}
.ai-content-notice__summary::marker {
    content: "";
}

.ai-content-notice__summary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 9px 16px 9px 9px;
    background: linear-gradient(135deg, var(--aicn-black), #1c1c1c);
    color: var(--aicn-white);
    border-radius: 999px;
    border: 1px solid rgba(31, 153, 0, 0.4);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ai-content-notice__summary:hover {
    border-color: rgba(90, 209, 45, 0.75);
    box-shadow: 0 2px 14px rgba(31, 153, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ai-content-notice__summary:focus-visible {
    outline: 2px solid var(--aicn-green-light);
    outline-offset: 3px;
}

/* Diagonal "shine" sweep on hover — a subtle premium touch, skipped
   entirely for reduced-motion users below. */
.ai-content-notice__summary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.14) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    pointer-events: none;
}
.ai-content-notice__summary:hover::after {
    transform: translateX(120%);
    transition: transform 0.7s ease;
}

.ai-content-notice__seal {
    position: relative;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, var(--aicn-green-light), var(--aicn-green) 60%, var(--aicn-green-deep) 100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(31, 153, 0, 0.3);
}

.ai-content-notice__seal svg {
    width: 13px;
    height: 13px;
    fill: var(--aicn-white);
}

/* Rotating dashed "wax seal" ring around the icon */
.ai-content-notice__seal::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.55);
    animation: aicn-spin 14s linear infinite;
}

.ai-content-notice__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-content-notice__chevron {
    flex: 0 0 auto;
    margin-left: 2px;
    opacity: 0.7;
    transition: transform 0.25s ease;
}
.ai-content-notice__box[open] .ai-content-notice__chevron {
    transform: rotate(180deg);
}

.ai-content-notice__panel {
    margin-top: 8px;
    margin-left: auto;
    max-width: 420px;
    padding: 12px 14px;
    background: #121212;
    color: #f2f2f2;
    border-left: 3px solid var(--aicn-green);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.6;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    animation: aicn-fade-in 0.18s ease;
}

.ai-content-notice__panel a {
    color: var(--aicn-green-light);
}

@keyframes aicn-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes aicn-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-content-notice__seal::before {
        animation: none;
    }
    .ai-content-notice__summary::after {
        display: none;
    }
    .ai-content-notice__panel {
        animation: none;
    }
    .ai-content-notice__chevron {
        transition: none;
    }
}

@media (max-width: 480px) {
    .ai-content-notice {
        justify-content: stretch;
    }
    .ai-content-notice__summary {
        width: 100%;
    }
    .ai-content-notice__panel {
        max-width: 100%;
    }
}

@media print {
    .ai-content-notice {
        display: none;
    }
}
