/**
 * 動画プレイヤー用CSS
 * 
 * [snaf_restriction_video] ショートコードで使用
 * 
 * @version 1.1.0
 * @since 2024-12-22
 */

/* ================================
   動画コンテナ
   ================================ */
.snaf-video-container {
    margin: 1.5rem 0;
}

.snaf-video-container.locked {
    position: relative;
}

/* ================================
   動画プレイヤー
   ================================ */
.snaf-video-player {
    margin-bottom: 1rem;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.snaf-video-player video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.snaf-video-player.sample {
    border: 3px solid var(--main-color, #ED68A1);
}

.snaf-video-player.sample::before {
    content: 'サンプル';
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--main-color, #ED68A1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
}

/* ================================
   ロック表示（非会員向け）
   ================================ */
.snaf-video-locked {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    max-width: 100%;
    margin: 1rem auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

/* 再生ボタン + ロックアイコン オーバーレイ */
.snaf-video-locked .play-button-overlay {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.snaf-video-locked:hover .play-button-overlay {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.75);
}

.snaf-video-locked .play-icon {
    color: #fff;
    margin-left: 4px;
}

.snaf-video-locked .lock-icon-small {
    width: 32px;
    height: auto;
    opacity: 0.9;
}

.snaf-video-locked .lock-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

/* モーダル */
.snaf-lock-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.snaf-lock-modal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    max-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.snaf-lock-modal .lock-icon {
    width: 48px;
    height: auto;
    opacity: 0.9;
}

.snaf-lock-modal p.lock-text {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

.snaf-lock-modal p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.95rem;
}

.snaf-lock-modal .signup-link {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--main-color, #ED68A1) 0%, #ff8fab 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.snaf-lock-modal .signup-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 104, 161, 0.4);
}

.snaf-lock-modal .close-btn {
    display: block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.snaf-lock-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ================================
   制限コンテンツ全体
   ================================ */
.restriction_content {
    margin: 1.5rem 0;
}

.restriction_content.paid-member {
    /* 有料会員向けのスタイル */
}

.restriction_content.none-member {
    /* 一般ユーザー向けのスタイル */
}

.restriction_content .locked-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

/* ================================
   レスポンシブ対応
   ================================ */
@media (max-width: 768px) {
    .snaf-video-player video {
        max-height: 50vh;
    }

    .snaf-video-locked {
        min-height: 200px;
    }

    .snaf-video-locked .lock-icon {
        width: 48px;
    }

    .snaf-video-locked .lock-text {
        font-size: 1.2rem;
    }
}

/* ================================
   動画情報表示
   ================================ */
.snaf-video-info {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* バッジ形式 */
.snaf-video-info.badge-style {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.snaf-video-info.badge-style .separator {
    color: #adb5bd;
    margin: 0 0.25rem;
}

.snaf-video-info.badge-style span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.snaf-video-info .video-info-duration {
    color: #495057;
    font-weight: 500;
}

.snaf-video-info .video-info-sound {
    color: #495057;
}

.snaf-video-info .video-info-resolution {
    color: #6c757d;
}

/* リスト形式 */
.snaf-video-info.list-style {
    list-style: none;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.snaf-video-info.list-style .info-item {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.snaf-video-info.list-style .info-item:last-child {
    border-bottom: none;
}

.snaf-video-info.list-style .info-label {
    min-width: 100px;
    color: #6c757d;
    font-weight: 500;
}

.snaf-video-info.list-style .info-value {
    color: #212529;
}

/* 動画ページコンテンツラッパー */
.snaf-video-page-content {
    margin: 1.5rem 0;
}

.snaf-video-page-content .paid-contents {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #dee2e6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .snaf-video-info {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .snaf-video-info.list-style .info-label {
        min-width: 80px;
    }
}

