/* DLsite Auto Post - Frontend Styles */

/* 基本情報 */
.dlsite-basic-info {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #0073aa;
    margin: 20px 0;
}

.dlsite-basic-info p {
    margin: 5px 0;
}

/* 価格情報 */
.dlsite-price-info {
    text-align: center;
    margin: 20px 0;
}

.price-display {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border: 2px solid #e91e63;
    border-radius: 15px;
    padding: 15px;
    display: inline-block;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '💰';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 14px;
    opacity: 0.6;
}

.price-value {
    font-size: 24px;
    color: #ad1457;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 商品説明 */
.dlsite-description {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px 0;
    line-height: 1.6;
}

/* 商品詳細テーブル */
.product-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.product-details-table th,
.product-details-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.product-details-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    width: 30%;
}

.product-details-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ジャンル・タグ */
.dlsite-genres {
    margin: 20px 0;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-tag {
    color: #e91e63;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin: 0 8px 0 0;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.genre-tag:hover {
    color: #c2185b;
    text-decoration: none;
    border-bottom-color: #e91e63;
}

.genre-tag:visited {
    color: #ad1457;
}

.genre-tag:visited:hover {
    color: #880e4f;
    border-bottom-color: #ad1457;
}

.genre-tag::before {
    content: '#';
    opacity: 0.6;
    margin-right: 2px;
}

/* 画像ギャラリー */
.dlsite-images {
    margin: 20px 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* レビューセクション */
.dlsite-reviews {
    margin: 20px 0;
}

.review-summary {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.review-summary h3 {
    margin-top: 0;
    color: #856404;
}

.individual-reviews {
    margin: 20px 0;
}

.review-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.review-rating {
    color: #ff6b35;
    font-size: 16px;
    margin: 5px 0;
}

.review-title {
    color: #333;
    margin: 10px 0;
    font-size: 18px;
}

.review-content {
    line-height: 1.6;
    margin: 10px 0;
}

.review-meta {
    color: #666;
    font-size: 12px;
    margin: 5px 0;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

/* アフィリエイトボタンセクション */
.dlsite-affiliate-button {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.dlsite-affiliate-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #e91e63, #ff6b9d);
    border-radius: 2px;
    opacity: 0.7;
}

.affiliate-button-wrapper {
    margin: 0;
    position: relative;
}

.dlsite-button {
    display: inline-block;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    letter-spacing: 0.8px;
    overflow: hidden;
    text-transform: uppercase;
    font-family: 'Arial Black', Arial, sans-serif;
}


.dlsite-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;
}

.dlsite-button:hover::before {
    left: 100%;
}

/* ボタン1: プライマリスタイル（セクシーピンク） */
.dlsite-button-1 {
    background: linear-gradient(145deg, #ff6b9d 0%, #e91e63 100%);
    color: white;
    box-shadow: 
        0 8px 16px rgba(255, 107, 157, 0.5),
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.15);
}

.dlsite-button-1:hover {
    background: linear-gradient(145deg, #ff4081 0%, #c2185b 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 24px rgba(255, 107, 157, 0.6),
        0 6px 12px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    color: white;
}

.dlsite-button-1:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 8px rgba(255, 107, 157, 0.5),
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ボタン2: セカンダリスタイル（セクシーピンク統一） */
.dlsite-button-2 {
    background: linear-gradient(145deg, #ff6b9d 0%, #e91e63 100%);
    color: white;
    box-shadow: 
        0 8px 16px rgba(255, 107, 157, 0.5),
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.15);
}

.dlsite-button-2:hover {
    background: linear-gradient(145deg, #ff4081 0%, #c2185b 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 24px rgba(255, 107, 157, 0.6),
        0 6px 12px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    color: white;
}

.dlsite-button-2:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 8px rgba(255, 107, 157, 0.5),
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ボタン3: アクセントスタイル（セクシーピンク統一） */
.dlsite-button-3 {
    background: linear-gradient(145deg, #ff6b9d 0%, #e91e63 100%);
    color: white;
    box-shadow: 
        0 8px 16px rgba(255, 107, 157, 0.5),
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.15);
}

.dlsite-button-3:hover {
    background: linear-gradient(145deg, #ff4081 0%, #c2185b 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 24px rgba(255, 107, 157, 0.6),
        0 6px 12px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    color: white;
}

.dlsite-button-3:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 8px rgba(255, 107, 157, 0.5),
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .genre-tags {
        justify-content: center;
    }
    
    .product-details-table {
        font-size: 14px;
    }
    
    .product-details-table th,
    .product-details-table td {
        padding: 8px;
    }
    
    .dlsite-button {
        padding: 12px 25px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .price-display {
        min-width: 120px;
    }
    
    .price-value {
        font-size: 20px;
    }
}

/* プリント用スタイル */
@media print {
    .dlsite-affiliate-button,
    .affiliate-button-wrapper {
        display: none;
    }
    
    .gallery-item img {
        max-width: 150px;
        height: auto;
    }
}

/* 予約投稿モーダル */
#schedule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
}

#schedule-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

#schedule-modal h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.schedule-modal-buttons {
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.schedule-modal-buttons .button {
    margin-left: 10px;
}

#schedule-preview {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#schedule-timeline {
    margin-top: 10px;
    font-family: monospace;
    line-height: 1.6;
}

/* 予約投稿ステータス */
.status-scheduled {
    color: #0073aa;
    font-weight: bold;
}

.status-executing {
    color: #f56e28;
    font-weight: bold;
}

.status-completed {
    color: #46b450;
    font-weight: bold;
}

.status-failed {
    color: #dc3232;
    font-weight: bold;
}

.status-cancelled {
    color: #666;
    font-weight: bold;
}

.status-skipped {
    color: #ffb900;
    font-weight: bold;
}

/* 進捗表示 */
#bulk-progress {
    margin: 10px 0;
}

#bulk-progress p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#progress-text {
    font-weight: bold;
    color: #0073aa;
}

/* タブコンテンツ */
.schedule-tab-content {
    margin-top: 20px;
}