/**
 * romptn CTA Blocks - フロントエンド用スタイル
 *
 * @package RomptnCTABlocks
 * @since 1.0.0
 */

/* 目次上記事要約CTAブロック */
.romptn-toc-summary-cta-container {
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%),
        linear-gradient(135deg, #f3fafe 0%, #cfeeff 100%);
    border: 0.5px solid rgba(0,0,0,0.04);
    border-radius: 18px;
    padding: 2rem 2rem 2rem 3rem;
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 
        0 1px 2px -1px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.romptn-toc-summary-cta-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0,122,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,122,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: inherit;
    pointer-events: none;
}

.romptn-toc-summary-title {
    color: #007aff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 1.5rem 0 !important;
    line-height: 1.3 !important;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.1em;
}

.romptn-toc-summary-list {
    list-style: none !important;
    padding-left: 0 !important;
    text-align: left;
    margin: 0 auto 1.5rem auto !important;
    position: relative;
    z-index: 1;
}

.romptn-toc-summary-list li {
    position: relative;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
    color: #1c1c1e;
    font-size: 14px;
    line-height: 1.6;
}

.romptn-toc-summary-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: #007aff;
    font-size: 12px;
}

.romptn-toc-summary-list .romptn-fixed-item {
    background-color: rgba(240,248,255,0.7);
    border: none !important;
    border-radius: 0px !important;
    padding: 0 12px 12px 1.5rem !important;
}

.romptn-highlight-marker {
    background: linear-gradient(transparent 60%, rgba(255, 235, 59, 0.6) 60%);
    font-weight: 700;
    color: #1c1c1e;
    padding: 0 2px;
}

.romptn-toc-summary-promotion {
    color: #007aff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: center;
    margin: 1.5rem 0 0.5rem 0 !important;
    position: relative;
    z-index: 1;
}

.romptn-toc-summary-cta-wrapper {
    text-align: center;
    position: relative;
    z-index: 1;
}

.romptn-toc-summary-cta-button {
    display: inline-block !important;
    background: linear-gradient(45deg, #ff9500, #ff6b35, #ff9500, #ff6b35);
    background-size: 300% 300%;
    color: white !important;
    text-decoration: none !important;
    padding: 1rem 3rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    animation: romptn-gradient-shift 3s ease infinite;
    font-size: 14px;
}

@keyframes romptn-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.romptn-toc-summary-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
    animation-duration: 1s;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .romptn-toc-summary-cta-container {
        margin: 1rem;
        padding: 1.5rem;
        max-width: none;
    }
    
    .romptn-toc-summary-cta-button {
        padding: 0.8rem 3rem !important;
        font-size: 13px;
    }
}

/* テーマとの競合回避 */
.entry-content .romptn-toc-summary-cta-container,
.post-content .romptn-toc-summary-cta-container,
.page-content .romptn-toc-summary-cta-container {
    margin: 2rem auto;
}

/* ブロックエディター内での表示 */
.wp-block-promptn-toc-summary .romptn-toc-summary-cta-container {
    margin: 0;
} 