/**
 * gear アフィリエイトリンクセクション用CSS
 * 
 * 使用方法:
 * 1. このCSSを子テーマのstyle.cssに追加
 * または
 * 2. 管理画面 → 外観 → カスタマイズ → 追加CSS に貼り付け
 */

/* ========================================
   アフィリエイトリンクセクション
   ======================================== */
.gear-affiliate {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.gear-affiliate .gear-section-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #333;
}

/* アフィリエイトリンクラッパー */
.gear-affiliate-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* HTMLコード埋め込み部分 */
.affiliate-html-code {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

/* 個別リンクボタン群 */
.affiliate-individual-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* 共通ボタンスタイル */
.affiliate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.affiliate-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Amazon */
.affiliate-link.amazon {
    background: #ff9900;
    color: #000;
}
.affiliate-link.amazon:hover {
    background: #e68a00;
    color: #000;
}

/* 楽天 */
.affiliate-link.rakuten {
    background: #bf0000;
    color: #fff;
}
.affiliate-link.rakuten:hover {
    background: #a00000;
    color: #fff;
}

/* Yahoo! */
.affiliate-link.yahoo {
    background: #ff0033;
    color: #fff;
}
.affiliate-link.yahoo:hover {
    background: #e6002e;
    color: #fff;
}

/* サウンドハウス */
.affiliate-link.soundhouse {
    background: #0066cc;
    color: #fff;
}
.affiliate-link.soundhouse:hover {
    background: #0055aa;
    color: #fff;
}

/* Plugin Boutique */
.affiliate-link.plugin-boutique {
    background: #7c3aed;
    color: #fff;
}
.affiliate-link.plugin-boutique:hover {
    background: #6d28d9;
    color: #fff;
}

/* その他 */
.affiliate-link.other {
    background: #6c757d;
    color: #fff;
}
.affiliate-link.other:hover {
    background: #5a6268;
    color: #fff;
}

/* ========================================
   モバイル対応
   ======================================== */
@media (max-width: 600px) {
    .gear-affiliate {
        padding: 1rem;
    }
    
    .affiliate-individual-links {
        flex-direction: column;
    }
    
    .affiliate-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

/* ========================================
   ダークモード対応（オプション）
   ======================================== */
@media (prefers-color-scheme: dark) {
    .gear-affiliate {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .gear-affiliate .gear-section-title {
        color: #e2e8f0;
    }
    
    .affiliate-html-code {
        background: #2d3748;
    }
}
