/* video/detail.css */

/* 게시글 헤더 스타일 */
.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.post-title {
    font-size: 24px;
    color: var(--text-main);
    margin: 0 0 15px;
    word-break: break-word;
}

.post-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-sub2);
    gap: 15px;
}

.post-status {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: normal;
    color: #fff;
    background-color: #dc3545;
    border-radius: 4px;
    vertical-align: middle;
}

.post-author {
    font-weight: 500;
    color: var(--text-sub1);
}

/* 비디오 플레이어 컨테이너 */
.video-player-container {
    margin-bottom: 30px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 비율 */
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 비디오 에러 표시 */
.video-error {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.video-error p {
    color: var(--text-sub2);
    font-size: 16px;
    margin: 0;
}

/* 비디오 설명 영역 */
.video-description {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.video-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.video-url-info {
    font-size: 14px;
    color: var(--text-sub2);
    word-break: break-all;
}

.video-url-info a {
    color: var(--main-color);
    text-decoration: none;
}

.video-url-info a:hover {
    text-decoration: underline;
}

/* 버튼 컨테이너 */
.post-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* SNS 공유 버튼 */
.post-share {
    display: flex;
    gap: 10px;
}

.btn-share {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-share svg {
    width: 16px;
    height: 16px;
}

.btn-share-x {
    background-color: #f8f9fa;
    color: #000;
    border: 1px solid #e0e0e0;
}

.btn-share-x:hover {
    background-color: #000;
    color: #fff;
}

.btn-share-facebook {
    background-color: #f8f9fa;
    color: #1877F2;
    border: 1px solid #e0e0e0;
}

.btn-share-facebook:hover {
    background-color: #1877F2;
    color: #fff;
}

/* 액션 버튼 스타일 */
.post-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete,
.btn-hide,
.btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    height: 38px;
    min-width: 80px;
}

.btn-edit {
    background-color: #4A90E2;
    color: white;
    border: none;
}

.btn-edit:hover {
    background-color: #3A7EC9;
    box-shadow: 0 2px 5px rgba(74, 144, 226, 0.3);
}

.btn-delete {
    background-color: #E53935;
    color: white;
    border: none;
}

.btn-delete:hover {
    background-color: #D32F2F;
    box-shadow: 0 2px 5px rgba(229, 57, 53, 0.3);
}

.btn-hide {
    background-color: #FF9800;
    color: white;
    border: none;
}

.btn-hide:hover {
    background-color: #FB8C00;
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}

.btn-list {
    background-color: #ECEFF1;
    color: #455A64;
    border: 1px solid #CFD8DC;
}

.btn-list:hover {
    background-color: #CFD8DC;
    color: #263238;
    box-shadow: 0 2px 5px rgba(69, 90, 100, 0.1);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .post-title {
        font-size: 20px;
    }

    .video-player-container {
        margin: 0 -20px 30px -20px;
        border-radius: 0;
    }

    .video-description {
        padding: 15px;
    }

    .video-description h3 {
        font-size: 15px;
    }

    .post-actions-container {
        flex-direction: column;
        align-items: stretch;
    }

    .post-share {
        justify-content: center;
        order: 2;
    }

    .post-actions {
        flex-direction: column;
        order: 1;
        width: 100%;
    }

    .btn-edit,
    .btn-delete,
    .btn-hide,
    .btn-list {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .video-error {
        padding: 40px 15px;
    }

    .video-error p {
        font-size: 14px;
    }
}
