/**
 * Gallery Skin - Tailwind CSS Companion Styles
 * Minimal CSS for elements Tailwind doesn't handle
 */

/* ===== Screen Reader Only ===== */
.sr-only,
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Pagination (Gnuboard Default) ===== */
.pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 40px 0;
}

.pg_page,
.pg_current,
.pg_start,
.pg_end,
.pg_prev,
.pg_next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pg_page {
    color: #64748b;
    /*background: #f8fafc;*/
    border: 1px solid #e2e8f0;
}

.pg_page:hover {
    color: var(--theme-primary-dark);
    background: var(--theme-primary-light);
    border-color: var(--theme-primary-border);
}

.pg_current {
    color: #fff;
    background: var(--theme-primary);
    border: 1px solid var(--theme-primary);
}

.pg_start,
.pg_end,
.pg_prev,
.pg_next {
    color: #64748b;
    /*background: #f8fafc;*/
    border: 1px solid #e2e8f0;
}

.pg_start:hover,
.pg_end:hover,
.pg_prev:hover,
.pg_next:hover {
    color: #334155;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ===== Comments Section ===== */
#bo_vc {
    margin-top: 24px;
}

#bo_vc h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cmt_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cmt_list > li {
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 12px;
}

.cmt_list > li:last-child {
    margin-bottom: 0;
}

/* Reply comment indent */
.cmt_list .sv_reply {
    margin-left: 40px;
    padding-left: 16px;
    border-left: 3px solid #e2e8f0;
}

.cmt_list .sv_reply::before {
    content: none;
}

/* Comment header */
.cmt_info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cmt_info .member,
.cmt_info .name {
    font-weight: 600;
    color: #1e293b;
}

.cmt_info .ip,
.cmt_info .date {
    font-size: 13px;
    color: #94a3b8;
}

/* Comment content */
.cmt_contents {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    word-break: break-word;
}

/* Comment buttons */
.cmt_btn {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.cmt_btn a,
.cmt_btn button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmt_btn a:hover,
.cmt_btn button:hover {
    color: var(--theme-primary-dark);
    background: var(--theme-primary-light);
    border-color: var(--theme-primary-border);
}

/* Comment form */
#fwrite_comment,
.bo_vc_w {
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
}

#fwrite_comment h3,
.bo_vc_w h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

#fwrite_comment textarea,
.bo_vc_w textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#fwrite_comment textarea:focus,
.bo_vc_w textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-alpha-10);
}

.bo_vc_w_info {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.bo_vc_w_info .frm_input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.bo_vc_w_info .frm_input:focus {
    border-color: var(--theme-primary);
}

.bo_vc_w .btn_confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.bo_vc_w .btn_submit {
    height: 44px;
    padding: 0 24px;
    background: var(--theme-primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bo_vc_w .btn_submit:hover {
    background: var(--theme-primary-dark);
}

.secret_cm {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Write Form ===== */
#bo_w {
    /*max-width: 900px;*/
    margin: 0 auto;
    padding: 32px 16px;
}

#bo_w .write_div {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
}

#bo_w .tbl_frm01 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#bo_w .tbl_frm01 th {
    padding: 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    vertical-align: top;
    width: 120px;
}

#bo_w .tbl_frm01 td {
    padding: 12px 0;
}

#bo_w input[type="text"],
#bo_w input[type="password"],
#bo_w select,
#bo_w textarea,
#bo_w .frm_input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#bo_w input[type="text"]:focus,
#bo_w input[type="password"]:focus,
#bo_w select:focus,
#bo_w textarea:focus,
#bo_w .frm_input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-alpha-10);
}

#bo_w textarea,
#bo_w textarea.frm_input {
    min-height: 300px;
    line-height: 1.7;
    resize: vertical;
}

#bo_w .btn_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--theme-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#bo_w .btn_submit:hover {
    background: var(--theme-primary-dark);
}

#bo_w .btn_cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#bo_w .btn_cancel:hover {
    color: #334155;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

#bo_w .btn_confirm {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

/* ===== Category Links ===== */
#bo_cate_ul li {
    display: inline-block;
}

#bo_cate_ul li a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#bo_cate_ul li a:hover,
#bo_cate_ul li.active a,
#bo_cate #bo_cate_on {
    color: var(--theme-primary-dark);
    background: var(--theme-primary-light);
    border-color: var(--theme-primary-border);
}

/* ===== Gallery Card Checkbox Position Fix ===== */
.gall_li .gall_box {
    position: relative;
}

/* ===== Profile Image ===== */
.pf_img img,
.profile_info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== Images in Content ===== */
#bo_v_con img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#bo_v_con iframe,
#bo_v_con video {
    max-width: 100%;
}

/* ===== Line Clamp (for older browsers) ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gall_li,
.group {
    animation: fadeIn 0.4s ease forwards;
}

.group:nth-child(1) { animation-delay: 0.05s; }
.group:nth-child(2) { animation-delay: 0.1s; }
.group:nth-child(3) { animation-delay: 0.15s; }
.group:nth-child(4) { animation-delay: 0.2s; }
.group:nth-child(5) { animation-delay: 0.25s; }
.group:nth-child(6) { animation-delay: 0.3s; }
.group:nth-child(7) { animation-delay: 0.35s; }
.group:nth-child(8) { animation-delay: 0.4s; }

/* ===== SNS Share Buttons ===== */
#bo_v_share .sns_share {
    display: flex;
    gap: 8px;
}

#bo_v_share .sns_share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .pg_wrap {
        flex-wrap: wrap;
    }

    .pg_page,
    .pg_current,
    .pg_start,
    .pg_end,
    .pg_prev,
    .pg_next {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    #bo_w .write_div {
        padding: 20px;
    }

    #bo_w .tbl_frm01 th {
        display: block;
        width: 100%;
        padding: 12px 0 4px;
    }

    #bo_w .tbl_frm01 td {
        display: block;
        width: 100%;
    }

    .cmt_list > li {
        padding: 16px;
    }

    .cmt_list .sv_reply {
        margin-left: 20px;
    }

    .bo_vc_w_info {
        flex-direction: column;
    }
}

.bo_cate_list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    background-color: #f1f5f9;
    border-radius: 9999px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.bo_cate_list li a:hover {
    color: var(--theme-primary-dark);
    background-color: var(--theme-primary-mid);
}
.bo_cate_list li a#bo_cate_on {
    color: #ffffff;
    background: var(--theme-primary);
    box-shadow: 0 4px 14px var(--theme-primary-alpha-25);
}

.cke_sc{
    padding: 5px;
}

.btn_cke_sc{
    border: none;
    font-size: 14px;
    color: #64748b;
    background-color: #f1f5f9;
    border-radius: 9999px;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 5px 20px;
    height: auto;
}

.cke_sc_def{
    margin-top: 5px;
}
