/**
 * フロントエンド用CSS
 *
 * @package ShopManage
 */

/* 店舗詳細ページ */
.shop-manage-single {
    /* max-width: 800px; */
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

.shop-detail {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ヘッダー（モンスターボール風） */
.shop-header {
    position: relative;
    padding: 30px;
    padding-bottom: 42px;
    background: #EE1515;
    color: #fff;
}

/* パンくずリスト */
.shop-manage-single .breadcrumb {
    font-size: 0.6em;
    margin-bottom: 15px;
    color: #666;
}

.shop-manage-single .breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.shop-manage-single .breadcrumb a:hover {
    text-decoration: underline;
}

.shop-manage-single .breadcrumb .separator {
    margin: 0 8px;
}

.shop-manage-single .breadcrumb .current {
    color: #333;
}

.shop-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    background: #222224;
}

.shop-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.shop-location {
    font-size: 10px;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    opacity: 0.9;
}

/* コンテンツ */
.shop-content {
    padding: 10px;
}

.shop-content h2 {
    font-size: 12px;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #EE1515;
}

/* ==========================================================================
   売ってる/売ってないセクション（新デザイン）
   ========================================================================== */
.shop-selling-section {
    margin-bottom: 40px;
    text-align: center;
}

/* 報告履歴（ボタンの上に表示） */
.recent-reports {
    margin-bottom: 20px;
}

.report-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.report-item:last-child {
    border-bottom: none;
}

.report-icon {
    display: flex;
    align-items: center;
    line-height: 1;
}

.report-icon svg {
    width: 16px;
    height: 16px;
}

.report-selling .report-icon {
    color: #4caf50;
}

.report-not-selling .report-icon {
    color: #f44336;
}

.report-label {
    font-weight: 500;
    color: #555;
}

.report-selling .report-label {
    color: #4caf50;
}

.report-not-selling .report-label {
    color: #f44336;
}

.report-time {
    margin-left: auto;
    color: #999;
    font-size: 12px;
}

/* 売ってた/売ってなかった ボタン */
.selling-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.selling-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.1s ease;
    min-width: 150px;
    position: relative;
    border-bottom: 8px solid #bdbdbd;
    /* border-right: 6px solid #d0d0d0; */
}

.selling-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-selling {
    border-color: #81c784;
    border-bottom-color: #2e7d32;
    border-right-color: #43a047;
    background: #e8f5e9;
}

.btn-selling:hover {
    background: #c8e6c9;
}

.btn-not-selling {
    border-color: #e57373;
    border-bottom-color: #c62828;
    border-right-color: #d32f2f;
    background: #ffebee;
}

.btn-not-selling:hover {
    background: #ffcdd2;
}

.selling-btn:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.selling-btn.active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.btn-selling.active {
    border-color: #2e7d32;
    background: #4caf50;
    color: #fff;
}

.btn-not-selling.active {
    border-color: #c62828;
    background: #f44336;
    color: #fff;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.btn-icon svg {
    width: 32px;
    height: 32px;
}

.btn-selling .btn-icon {
    color: #4caf50;
}

.btn-not-selling .btn-icon {
    color: #f44336;
}

.btn-selling.active .btn-icon,
.btn-not-selling.active .btn-icon {
    color: #fff;
}

.btn-label {
    font-size: 14px;
    font-weight: 600;
}

.btn-count {
    font-size: 24px;
    font-weight: 700;
    margin-top: 5px;
}

/* クチコミ入力促進 */
.review-prompt {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prompt-message {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px;
}

.review-form .form-field {
    margin-bottom: 15px;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.review-form textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-review-btn {
    background: #EE1515;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-right: 10px;
}

.submit-review-btn:hover {
    background: #222224;
}

.skip-review-btn {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-review-btn:hover {
    background: #f0f0f0;
}

/* 結果メッセージ */
.post-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.post-result.success {
    background: #d4edda;
    color: #155724;
}

.post-result.error {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   店舗情報・アクセス
   ========================================================================== */
.shop-info-access {
    margin-bottom: 30px;
}

.shop-map {
    margin-bottom: 15px;
}

.map-embed {
    border-radius: 8px;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* 住所・電話番号（シンプル表示） */
.shop-basic-info {
    margin-bottom: 15px;
}

.shop-basic-info .info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.shop-basic-info .info-row:last-child {
    border-bottom: none;
}

.shop-basic-info .info-label {
    width: 80px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
}

.shop-basic-info .info-value {
    color: #333;
}

.shop-basic-info .info-value a {
    color: #EE1515;
    text-decoration: none;
}

.shop-basic-info .info-value a:hover {
    text-decoration: underline;
}

/* マップアプリで開くボタン */
.map-links {
    margin-top: 15px;
}

.map-app-link {
    display: block;
    width: 100%;
    padding: 15px;
    background: #4285f4;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.map-app-link:hover {
    background: #3367d6;
}

/* ==========================================================================
   最寄りの売ってた情報
   ========================================================================== */
.nearby-selling-info {
    margin-bottom: 30px;
}

.nearby-selling-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #EE1515;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-badge {
    display: inline-block;
    background: #EE1515;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.nearby-selling-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-selling-item {
    margin-bottom: 8px;
}

.nearby-selling-item a {
    display: block;
    padding: 10px 15px;
    background: #fff9c4;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease;
}

.nearby-selling-item a:hover {
    background: #fff59d;
}

.nearby-selling-item .selling-date {
    margin-left: 10px;
    color: #666;
}

.nearby-selling-item .selling-label {
    display: inline-block;
    margin-left: 10px;
    background: #4caf50;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ==========================================================================
   近くの店舗
   ========================================================================== */
.shop-nearby {
    margin-bottom: 30px;
}

.nearby-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nearby-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nearby-link {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.nearby-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nearby-distance {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #2196f3;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.nearby-address {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* ==========================================================================
   他の店舗を探すボタン
   ========================================================================== */
.search-other-shops {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: transparent;
    text-align: center;
    z-index: 9999;
}

.search-other-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    padding: 14px 24px;
    background: #f9a825;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-other-btn:hover {
    background: #f57f17;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.search-other-btn svg {
    color: #fff;
}

/* ==========================================================================
   クチコミ一覧
   ========================================================================== */
.shop-reviews {
    margin-bottom: 40px;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: #333;
}

.review-date {
    color: #999;
    font-size: 13px;
}

.review-content {
    color: #555;
    line-height: 1.6;
}

/* ハニーポットフィールド（非表示） */
.shop-manage-hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media screen and (max-width: 600px) {
    .shop-manage-single {
        padding: 0px;
        padding-bottom: 80px;
    }

    .shop-header {
        padding: 10px;
    }

    .shop-title {
        font-size: 12px;
    }

    .shop-content {
        padding: 20px;
    }

    .selling-buttons {
        gap: 10px;
    }

    .selling-btn {
        min-width: 0;
        flex: 1;
        padding: 15px 10px;
    }

    .shop-basic-info .info-row {
        flex-direction: column;
    }

    .shop-basic-info .info-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .submit-review-btn,
    .skip-review-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .search-other-btn {
        width: 100%;
    }
}

/* ========================================
   記事カード
   ======================================== */

/* 記事カード共通スタイル */
.shop-manage-article-card {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
}

.shop-manage-article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* SWELLブログカード風 */
.shop-manage-article-card--swell .article-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.shop-manage-article-card--swell .article-card-thumbnail {
    flex: 0 0 120px;
    min-height: 80px;
    overflow: hidden;
    background: #f0f0f0;
}

.shop-manage-article-card--swell .article-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-manage-article-card--swell .article-card-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-manage-article-card--swell .article-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-manage-article-card--swell .article-card-excerpt {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* シンプルカード */
.shop-manage-article-card--simple {
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 3px solid #0066cc;
}

.shop-manage-article-card--simple a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.shop-manage-article-card--simple a:hover {
    text-decoration: underline;
}

/* oEmbed */
.shop-manage-article-card--oembed {
    padding: 0;
    border: none;
    background: transparent;
}

.shop-manage-article-card--oembed iframe {
    max-width: 100%;
}

/* 検索結果内の記事カード */
.result-item--article {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.result-item--article.shop-manage-article-card {
    margin: 10px 0;
}

/* 店舗ページの記事セクション */
.shop-articles-section {
    margin: 24px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.shop-articles-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #333;
}

.shop-articles-section .shop-manage-article-card {
    margin: 0;
}

/* レスポンシブ */
@media (max-width: 480px) {
    .shop-manage-article-card--swell .article-card-link {
        flex-direction: column;
    }

    .shop-manage-article-card--swell .article-card-thumbnail {
        flex: 0 0 auto;
        height: 150px;
        width: 100%;
    }

    .shop-manage-article-card--swell .article-card-content {
        padding: 12px;
    }

    .shop-articles-section {
        margin: 16px 0;
        padding: 16px;
    }
}
