@charset "utf-8";

:root {
    --ticket-bg: rgba(255, 255, 255, 0.82);
    --ticket-border: rgba(255, 255, 255, 0.9);
    --ticket-text: #2c3e50;
    --ticket-muted: #7f8c8d;
    --ticket-chip: #e08b16;
}

#trpg_ticket_board {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 10px 60px;
    font-family: inherit;
    color: var(--ticket-text);
}

/* 상단 카테고리 탭 & 글쓰기 버튼 */
.tr-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}
.tr-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tr-cat-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--ticket-muted);
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.tr-cat-btn.active, .tr-cat-btn:hover {
    background: var(--ticket-chip);
    color: #fff;
    border-color: var(--ticket-chip);
}
.tr-write-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    background: var(--ticket-chip);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(224, 139, 22, 0.3);
}

/* 티켓 피드 리스트 */
.tr-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===================================================
   개별 티켓 카드 (모서리 4개 + 60% 절취선 상하단 투명 펀칭)
=================================================== */
.tr-ticket {
    display: flex;
    position: relative;
    background: var(--ticket-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* 네 모서리 12px + 절취선 위치 60% 지점 상하단 9px 투명 펀칭 */
    -webkit-mask-image: 
        radial-gradient(circle 12px at top left, transparent 99%, #000 100%),
        radial-gradient(circle 12px at top right, transparent 99%, #000 100%),
        radial-gradient(circle 12px at bottom left, transparent 99%, #000 100%),
        radial-gradient(circle 12px at bottom right, transparent 99%, #000 100%),
        radial-gradient(circle 9px at 60% top, transparent 99%, #000 100%),
        radial-gradient(circle 9px at 60% bottom, transparent 99%, #000 100%);
    -webkit-mask-composite: source-in, source-in, source-in, source-in, source-in, destination-in;
    mask-image: 
        radial-gradient(circle 12px at top left, transparent 99%, #000 100%),
        radial-gradient(circle 12px at top right, transparent 99%, #000 100%),
        radial-gradient(circle 12px at bottom left, transparent 99%, #000 100%),
        radial-gradient(circle 12px at bottom right, transparent 99%, #000 100%),
        radial-gradient(circle 9px at 60% top, transparent 99%, #000 100%),
        radial-gradient(circle 9px at 60% bottom, transparent 99%, #000 100%);
    mask-composite: intersect;
}

.tr-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

/* 티켓 좌측 이미지 영역 */
.tr-ticket-left {
    position: relative;
    background: #111;
    overflow: hidden;
}
.tr-ticket-img {
    transition: transform 0.3s ease;
}
.tr-ticket:hover .tr-ticket-img {
    transform: scale(1.03);
}
.tr-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
}

/* 중앙 절취선 */
.tr-ticket-divider {
    position: relative;
    width: 0px;
    border-right: 2px dashed rgba(0, 0, 0, 0.15);
    margin: 12px 0;
    flex-shrink: 0;
}
.tr-ticket-divider::before,
.tr-ticket-divider::after {
    display: none !important;
}

/* 티켓 우측 영역 */
.tr-ticket-right {
    min-width: 0;
}
.tr-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72em;
    font-weight: 700;
    color: #fff;
    background: var(--ticket-chip);
    letter-spacing: 0.3px;
}
.tr-title {
    font-weight: 800;
    margin: 10px 0 0 0;
    color: #1a252f;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tr-lock-icon {
    font-size: 0.75em;
    color: #e74c3c;
}

/* 상세 본문 */
.tr-modal-content {
    font-size: 0.95em;
    line-height: 1.7;
    word-break: break-word;
}

/* 비밀번호 잠금 창 */
.tr-lock-box {
    text-align: center;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tr-lock-box i {
    font-size: 2.2em;
    color: #e74c3c;
}
.tr-pw-form {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.tr-pw-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 0.9em;
}

/* 범용 입력/선택창 */
.tr-input {
    padding: 9px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 0.9em;
    font-family: inherit;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.tr-input:focus {
    border-color: var(--ticket-chip);
}

/* 버튼 모음 */
.tr-btn {
    padding: 7px 16px;
    font-size: 0.85em;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}
.tr-btn:hover { opacity: 0.88; }
.tr-btn-submit { background: var(--ticket-chip); color: #fff; }
.tr-btn-cancel { background: #e2e8f0; color: #475569; }
.tr-btn-del    { background: #fee2e2; color: #dc2626; }
.tr-btn-del:hover { background: #fecaca; }

/* 모바일 반응형 */
@media (max-width: 768px) {
    .tr-ticket {
        flex-direction: column;
        -webkit-mask-image: 
            radial-gradient(circle 12px at top left, transparent 99%, #000 100%),
            radial-gradient(circle 12px at top right, transparent 99%, #000 100%),
            radial-gradient(circle 12px at bottom left, transparent 99%, #000 100%),
            radial-gradient(circle 12px at bottom right, transparent 99%, #000 100%);
        mask-image: 
            radial-gradient(circle 12px at top left, transparent 99%, #000 100%),
            radial-gradient(circle 12px at top right, transparent 99%, #000 100%),
            radial-gradient(circle 12px at bottom left, transparent 99%, #000 100%),
            radial-gradient(circle 12px at bottom right, transparent 99%, #000 100%);
    }
    .tr-ticket-left {
        width: 100% !important;
        min-width: 0 !important;
        height: 180px !important;
    }
    .tr-ticket-divider {
        width: 100%;
        border-right: none;
        border-bottom: 2px dashed rgba(0,0,0,0.15);
        margin: 0;
    }
    .tr-ticket-right {
        padding: 16px !important;
    }
}