/* 楽天レシピ表示プラグイン スタイルシート */

/* コンテナ全体 */
.rakuten-recipe-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* 各レシピのカード */
.rakuten-recipe-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rakuten-recipe-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 画像エリア */
.rakuten-recipe-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.rakuten-recipe-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.rakuten-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rakuten-recipe-item:hover .rakuten-recipe-image img {
    transform: scale(1.05);
}

/* コンテンツエリア */
.rakuten-recipe-content {
    padding: 15px;
}

/* タイトル */
.rakuten-recipe-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
}

.rakuten-recipe-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rakuten-recipe-title a:hover {
    color: #bf0000;
}

/* 説明文 */
.rakuten-recipe-description {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 費用 */
.rakuten-recipe-cost {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #bf0000;
    font-weight: bold;
}

/* 楽天市場リンクボタン */
.rakuten-recipe-shop-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.rakuten-shop-button {
    display: inline-block;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #bf0000 0%, #e60012 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(191, 0, 0, 0.2);
}

.rakuten-shop-button:hover {
    background: linear-gradient(135deg, #a00000 0%, #cc0010 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(191, 0, 0, 0.3);
    color: #fff;
}

.rakuten-shop-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(191, 0, 0, 0.2);
}

/* 楽天クレジット表示 */
.rakuten-attribution {
    text-align: right;
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
}

.rakuten-attribution a {
    color: #bf0000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rakuten-attribution a:hover {
    color: #a00000;
    text-decoration: underline;
}

/* エラーメッセージ */
.rakuten-recipe-error {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .rakuten-recipe-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rakuten-recipe-image {
        height: 180px;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .rakuten-recipe-container {
        grid-template-columns: repeat(2, 1fr);
    }
}