/**
 * VODアフィリエイトボタンスタイル
 */

/* VODボタンセクション */
.vod-buttons-section {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vod-buttons-section h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

/* VODボタン基本スタイル */
.vod-button {
    display: block;
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.vod-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* サービス別ホバーシャドウ */
.vod-crankin:hover { box-shadow: 0 6px 16px rgba(233, 30, 99, 0.3); }
.vod-mieru-tv:hover { box-shadow: 0 6px 16px rgba(0, 188, 212, 0.3); }
.vod-hulu:hover { box-shadow: 0 6px 16px rgba(28, 231, 131, 0.3); }
.vod-abema:hover { box-shadow: 0 6px 16px rgba(0, 204, 136, 0.3); }
.vod-prime-video:hover { box-shadow: 0 6px 16px rgba(255, 153, 0, 0.3); }

.vod-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ボタンコンテンツレイアウト */
.vod-button-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-name {
    font-weight: bold;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

/* サービス別カラー */
.vod-crankin .service-name { color: #e91e63; font-weight: 800; }
.vod-mieru-tv .service-name { color: #00bcd4; font-weight: 800; }
.vod-unext .service-name { color: #ff0000; font-weight: 800; }
.vod-d-anime .service-name { color: #ff6b00; font-weight: 800; }
.vod-dmm-tv .service-name { color: #0066ff; font-weight: 800; }
.vod-hulu .service-name { color: #1ce783; font-weight: 800; }
.vod-abema .service-name { color: #00cc88; font-weight: 800; }
.vod-prime-video .service-name { color: #ff9900; font-weight: 800; }
.vod-netflix .service-name { color: #e50914; font-weight: 800; }

/* サービス別ボーダーアクセント */
.vod-crankin { border-left: 4px solid #e91e63; }
.vod-mieru-tv { border-left: 4px solid #00bcd4; }
.vod-hulu { border-left: 4px solid #1ce783; }
.vod-abema { border-left: 4px solid #00cc88; }
.vod-prime-video { border-left: 4px solid #ff9900; }
.vod-unext { border-left: 4px solid #ff0000; }
.vod-d-anime { border-left: 4px solid #ff6b00; }

/* 無料体験バッジ */
.trial-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* サービス別バッジカラー */
.vod-crankin .trial-badge {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: #fff;
}
.vod-mieru-tv .trial-badge {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: #fff;
}
.vod-hulu .trial-badge {
    background: linear-gradient(135deg, #1ce783 0%, #17c970 100%);
    color: #fff;
}
.vod-abema .trial-badge {
    background: linear-gradient(135deg, #00cc88 0%, #00a870 100%);
    color: #fff;
}
.vod-prime-video .trial-badge {
    background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
    color: #fff;
}

/* サービス詳細 */
.service-details {
    display: none; /* 右カラムでは非表示 */
}

.monthly-fee {
    font-weight: 500;
}

.anime-count {
    color: #999;
}

/* CTA部分 */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.cta-text {
    display: none; /* 右カラムでは非表示 */
}

.cta-arrow {
    width: 20px;
    height: 20px;
    color: #999;
    transition: transform 0.3s ease;
}

.vod-button:hover .cta-arrow {
    transform: translateX(4px);
    color: #666;
}

/* ホバーエフェクト */
.vod-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.vod-button:hover::before {
    left: 100%;
}

/* 商品リンクセクション */
.product-links-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.product-links-section h4 {
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.product-link {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.product-link:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    transform: translateY(-1px);
}

.amazon-link {
    border-left: 3px solid #ff9900;
}

.rakuten-link {
    border-left: 3px solid #bf0000;
}

/* レスポンシブデザイン */
@media (max-width: 640px) {
    .vod-buttons-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .vod-button {
        padding: 0.875rem 1rem;
    }
    
    .service-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .service-details {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cta-arrow {
        display: none;
    }
    
    .product-link {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .vod-button {
        background: #1a1a1a;
        border: 1px solid #333;
    }
    
    .vod-button:hover {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .service-details,
    .cta-text {
        color: #ccc;
    }
    
    .trial-badge {
        background: #ffcc00;
    }
    
    .product-links-section {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .product-link {
        background: #2a2a2a;
        border-color: #444;
        color: #e2e8f0;
    }
    
    .product-link:hover {
        background: #333;
        border-color: #555;
    }
}

/* ローディングアニメーション */
.vod-button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.vod-button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 特別プロモーション */
.vod-button.promotion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.vod-button.promotion .service-name,
.vod-button.promotion .service-details,
.vod-button.promotion .cta-text {
    color: white;
}

.vod-button.promotion .trial-badge {
    background: white;
    color: #667eea;
}

/* アクセシビリティ */
.vod-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* おすすめマーク（高単価サービス用） */
.vod-crankin::after,
.vod-mieru-tv::after {
    content: 'おすすめ';
    position: absolute;
    top: -2px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    font-size: 0.625rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* 高報酬サービス強調 */
.vod-crankin,
.vod-mieru-tv {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border-width: 2px;
}

.vod-crankin .service-name,
.vod-mieru-tv .service-name {
    font-size: 1rem;
}

/* コンパクトスタイル（右カラム用） */
.vod-buttons-compact .vod-button {
    padding: 0.5rem 0.75rem;
    margin: 0.375rem 0;
}

.vod-buttons-compact .vod-button-content {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.vod-buttons-compact .service-info {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.vod-buttons-compact .trial-badge {
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
}

.vod-buttons-compact .service-details,
.vod-buttons-compact .cta-section {
    display: none;
}

.vod-buttons-compact .cta-arrow {
    display: block;
    width: 16px;
    height: 16px;
    margin-left: auto;
}

/* 成功/エラー表示 */
.vod-success-message,
.vod-error-message {
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
}

.vod-success-message {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.vod-error-message {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}