/* ===========================================
   VCP - Video Course Platform フロントCSS
   =========================================== */

/* 動画ラッパー */
.vcp-video-wrapper {
    max-width: 800px;
    margin: 0 auto 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5em;
}

.vcp-video-title {
    margin: 0 0 1em;
    font-size: 1.4em;
    color: #333;
}

/* Vimeoプレーヤー */
.vcp-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.vcp-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 進捗セクション */
.vcp-progress-section {
    margin-top: 1em;
    padding: 1em;
    background: #f8f9fa;
    border-radius: 6px;
}

.vcp-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.vcp-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.vcp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.vcp-progress-fill.vcp-progress-complete {
    background: linear-gradient(90deg, #43e97b, #38f9d7);
}

.vcp-progress-text {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
}

.vcp-progress-hint {
    margin: 0.5em 0 0;
    font-size: 0.85em;
    color: #888;
}

/* ステータスラベル */
.vcp-status-label {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    background: #e0e0e0;
    color: #666;
}

.vcp-status-label.vcp-status-in-progress {
    background: #fff3cd;
    color: #856404;
}

.vcp-status-label.vcp-status-completed {
    background: #d4edda;
    color: #155724;
}

/* 完了メッセージ */
.vcp-completion-message {
    margin-top: 1em;
    padding: 1em;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 6px;
    text-align: center;
}

.vcp-completion-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.vcp-completion-text {
    font-weight: 600;
    color: #155724;
}

.vcp-completion-points {
    display: inline-block;
    padding: 2px 8px;
    background: #155724;
    color: #fff;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.vcp-completion-animate {
    animation: vcpFadeIn 0.5s ease-in-out;
}

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

.vcp-video-description {
    margin-top: 1.5em;
    line-height: 1.8;
    color: #555;
}

/* ログイン要求 */
.vcp-login-required {
    text-align: center;
    padding: 3em 2em;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.vcp-login-required p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 1em;
}

.vcp-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vcp-btn-primary {
    background: #4facfe;
    color: #fff;
}

.vcp-btn-primary:hover {
    background: #3a8fd4;
    color: #fff;
}

/* === ロック表示 === */
.vcp-video-locked .vcp-locked-overlay {
    padding: 3em 2em;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ddd;
}

.vcp-locked-icon {
    font-size: 3em;
    color: #999;
    margin-bottom: 0.3em;
}

.vcp-locked-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.vcp-locked-message {
    font-size: 1.2em;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5em;
}

.vcp-locked-requirement,
.vcp-locked-current {
    color: #666;
    margin: 0.3em 0;
}

.vcp-locked-remaining {
    font-size: 1.1em;
    color: #e74c3c;
    font-weight: 600;
    margin-top: 0.8em;
}

.vcp-locked-free-videos {
    margin-top: 1.5em;
    padding: 1em;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.vcp-locked-free-videos h4 {
    margin: 0 0 0.8em;
    color: #333;
}

.vcp-free-video-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vcp-free-video-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
    border-bottom: 1px solid #f0f0f0;
}

.vcp-free-video-list li:last-child {
    border-bottom: none;
}

.vcp-free-video-points {
    display: inline-block;
    padding: 2px 8px;
    background: #4facfe;
    color: #fff;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

/* === マイページ === */
.vcp-mypage {
    max-width: 800px;
    margin: 0 auto;
}

.vcp-mypage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5em;
    flex-wrap: wrap;
    gap: 1em;
}

.vcp-mypage-user {
    display: flex;
    align-items: center;
    gap: 1em;
}

.vcp-mypage-user img {
    border-radius: 50%;
}

.vcp-mypage-name {
    margin: 0;
    font-size: 1.3em;
}

.vcp-mypage-points {
    text-align: right;
}

.vcp-mypage-points-label {
    display: block;
    font-size: 0.85em;
    color: #888;
}

.vcp-mypage-points-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #4facfe;
}

/* マイページセクション */
.vcp-mypage-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5em;
    margin-bottom: 1.5em;
}

.vcp-mypage-section h3 {
    margin: 0 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

/* おすすめカード */
.vcp-recommend-card {
    padding: 1em;
    background: linear-gradient(135deg, #e8f4f8, #d4edda);
    border-radius: 6px;
}

.vcp-recommend-info {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}

.vcp-recommend-title {
    font-weight: 600;
    font-size: 1.05em;
}

.vcp-recommend-points {
    display: inline-block;
    padding: 2px 8px;
    background: #4facfe;
    color: #fff;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

.vcp-recommend-progress {
    font-size: 0.85em;
    color: #888;
}

/* 動画リスト */
.vcp-video-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.vcp-video-item {
    padding: 1em;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.vcp-video-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vcp-video-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
    flex-wrap: wrap;
    gap: 0.5em;
}

.vcp-video-item-title {
    font-weight: 600;
    color: #333;
}

.vcp-video-item-status {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 10px;
}

.vcp-status-not-started {
    background: #e0e0e0;
    color: #666;
}

.vcp-status-in-progress {
    background: #fff3cd;
    color: #856404;
}

.vcp-status-completed {
    background: #d4edda;
    color: #155724;
}

.vcp-video-item-progress {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.vcp-video-item-progress .vcp-progress-bar {
    flex: 1;
}

.vcp-video-item-progress .vcp-progress-text {
    min-width: 3em;
    text-align: right;
}

/* ロック動画 */
.vcp-video-item-locked {
    background: #f8f8f8;
    opacity: 0.8;
}

.vcp-video-item-locked .vcp-video-item-title {
    color: #999;
}

.vcp-video-item-locked .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

.vcp-video-item-lock-info {
    font-size: 0.85em;
    color: #e74c3c;
    font-weight: 600;
}

/* ポイント履歴テーブル */
.vcp-point-history {
    width: 100%;
    border-collapse: collapse;
}

.vcp-point-history th,
.vcp-point-history td {
    padding: 0.6em 1em;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.vcp-point-history th {
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
}

.vcp-positive {
    color: #28a745;
    font-weight: 600;
}

.vcp-negative {
    color: #dc3545;
    font-weight: 600;
}

/* ポイントバッジ */
.vcp-points-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9em;
}

/* エラー表示 */
.vcp-error {
    padding: 1em;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
}

/* === 会員登録フォーム === */
.vcp-register-wrapper {
    max-width: 480px;
    margin: 0 auto 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2em;
}

.vcp-register-title {
    margin: 0 0 0.5em;
    font-size: 1.4em;
    color: #333;
    text-align: center;
}

.vcp-register-description {
    text-align: center;
    color: #888;
    margin-bottom: 1.5em;
    font-size: 0.9em;
}

.vcp-register-errors {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.8em 1em;
    margin-bottom: 1.5em;
}

.vcp-register-errors p {
    margin: 0.3em 0;
    color: #856404;
    font-size: 0.9em;
}

.vcp-form-group {
    margin-bottom: 1.2em;
}

.vcp-form-group label {
    display: block;
    margin-bottom: 0.4em;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.vcp-required {
    color: #e74c3c;
}

.vcp-form-group input[type="text"],
.vcp-form-group input[type="email"],
.vcp-form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.vcp-form-group input:focus {
    border-color: #4facfe;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.15);
}

.vcp-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    margin-top: 0.5em;
}

.vcp-register-footer {
    text-align: center;
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #f0f0f0;
}

.vcp-register-footer a {
    color: #4facfe;
    font-weight: 600;
}

.vcp-register-loggedin {
    text-align: center;
    padding: 3em 2em;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .vcp-mypage-header {
        flex-direction: column;
        text-align: center;
    }

    .vcp-mypage-user {
        flex-direction: column;
    }

    .vcp-mypage-points {
        text-align: center;
    }

    .vcp-video-item-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .vcp-recommend-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .vcp-register-wrapper {
        margin: 0 1em 2em;
        padding: 1.5em;
    }
}
