/**
 * Basic Board 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;
}

/* ===== 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);
}

/* ===== 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%;
}

#bo_v_con a {
    color: var(--theme-primary);
    text-decoration: underline;
}

#bo_v_con a:hover {
    color: var(--theme-primary-dark);
}

/* ===== Autosave Popup ===== */
#autosave_pop ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#autosave_pop li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

#autosave_pop li:last-child {
    border-bottom: none;
}

#autosave_pop li:hover {
    background: #f8fafc;
}

#autosave_pop a {
    color: #334155;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#autosave_pop a:hover {
    color: var(--theme-primary);
}

#autosave_pop span {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 12px;
}

.autosave_del {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}

.autosave_del:hover {
    color: #ef4444;
}

.autosave_content {
    display: none;
}

/* ===== Editor Styles ===== */
.wr_content textarea,
.wr_content .frm_input {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wr_content textarea:focus,
.wr_content .frm_input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-alpha-10);
}

/* ===== 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;
}

/* ===== Line Clamp ===== */
.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); }
}

.group,
#bo_list tbody tr {
    animation: fadeIn 0.3s ease forwards;
}

/* ===== Responsive ===== */
@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_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;
}
