/* ==========================================
   크리에이터 개인 게시판 스타일
   ========================================== */

/* 게시판 헤더 */
.creator-board-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.creator-board-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.board-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.board-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066FF 0%, #00A8FF 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.board-icon i {
    font-size: 2.5rem;
    color: white;
}

.board-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.board-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.board-text p i {
    color: #00A8FF;
}

.btn-create-post {
    background: linear-gradient(135deg, #0066FF 0%, #00A8FF 100%);
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    position: relative;
    z-index: 1;
}

.btn-create-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.5);
}

.btn-create-post i {
    font-size: 1.2rem;
}

/* 개인 게시판 컨텐츠 영역 */
.personal-board-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    min-height: 400px;
}

/* 빈 상태 */
.empty-board-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.empty-icon i {
    font-size: 4rem;
    color: rgba(0, 102, 255, 0.5);
}

.empty-board-state h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.empty-board-state p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-start-writing {
    background: linear-gradient(135deg, #0066FF 0%, #00A8FF 100%);
    border: none;
    border-radius: 14px;
    padding: 1rem 2.5rem;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.btn-start-writing:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.5);
}

.btn-start-writing i {
    font-size: 1.1rem;
}

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 모달 컨테이너 */
.modal-container-large {
    background: var(--bg-card);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(0, 102, 255, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모달 헤더 */
.modal-header-custom {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 168, 255, 0.05) 100%);
}

.modal-header-custom h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-header-custom h2 i {
    color: var(--primary-color);
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.modal-close-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
    transform: rotate(90deg);
}

/* 모달 바디 */
.modal-body-custom {
    padding: 2.5rem;
}

/* 폼 그룹 */
.form-group-custom {
    margin-bottom: 2rem;
}

.form-group-custom label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.form-group-custom label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group-custom input[type="text"],
.form-group-custom textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group-custom input[type="text"]:focus,
.form-group-custom textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group-custom textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

/* 폼 액션 */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 2rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

.btn-save {
    background: linear-gradient(135deg, #0066FF 0%, #00A8FF 100%);
    border: none;
    border-radius: 12px;
    padding: 0.9rem 2.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5);
}

/* 게시물 리스트 */
.board-posts-list {
    display: grid;
    gap: 1.5rem;
}

.board-post-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.board-post-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.post-content-preview {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-tag {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dark-gray);
}

.post-meta i {
    margin-right: 0.3rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .creator-board-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .board-header-content {
        flex-direction: column;
        text-align: center;
    }

    .modal-container-large {
        margin: 1rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-save {
        width: 100%;
        justify-content: center;
    }
}
