@charset "utf-8";

/* Reset & Basic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    color: var(--slate-700);
    line-height: 1.6;
    background-color: var(--slate-50);
    background-image: radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0, transparent 50%), radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.02) 0, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

.overflow-hidden {
    overflow: hidden !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

ul,
li {
    list-style: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Premium Glassmorphism */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

header h1 a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Navigation - Multi-level Dropdown balance */
.nav-menu {
    height: 100%;
}

.gnb {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 5px;
}

.gnb>li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.gnb>li>a {
    display: block;
    padding: 0 15px;
    font-weight: 600;
    color: var(--slate-600);
    border-radius: 6px;
    height: 40px;
    line-height: 40px;
}

.gnb>li:hover>a {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Dropdown Menu */
.level-2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--slate-100);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 50;
}

.gnb>li:hover .level-2 {
    display: block;
    animation: fadeIn 0.2s ease;
}

.level-2 li {
    display: block;
}

.level-2 li a {
    display: block;
    padding: 8px 16px;
    color: var(--slate-600);
    font-size: 14px;
    font-weight: 500;
}

.level-2 li a:hover {
    background: var(--slate-50);
    color: var(--primary);
}



/* Level 3+ Menu */
.level-2>li {
    position: relative;
}

.level-3 {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: -5px;
    /* Overlap slightly for better mouse interaction */
    min-width: 180px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--slate-100);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 51;
}

.level-2>li:hover>.level-3 {
    display: block;
    animation: fadeInRight 0.2s ease;
}

.level-3 li a {
    display: block;
    padding: 8px 16px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 500;
}

.level-3 li a:hover {
    background: var(--slate-50);
    color: var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Member Links */
.member_links {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.m_menu_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--slate-100);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--slate-800);
}

/* Visibility classes balance */
.pc_only {
    display: flex !important;
}

.m_only {
    display: none !important;
}

@media (max-width: 992px) {
    header .header_inner {
        height: 60px;
    }

    .nav-menu {
        display: none !important;
    }

    .m_menu_btn {
        display: flex !important;
    }

    .pc_only {
        display: none !important;
    }

    .m_only {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    main {
        padding: 20px 15px;
        margin-top: 5px;
    }

    /* Board list CARD style balance */
    .bo_list_table thead {
        display: none;
    }

    .bo_list_table tbody tr {
        display: block;
        padding: 15px;
        margin-bottom: 12px;
        background: #fff;
        border: 1px solid var(--slate-200) !important;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    }

    .bo_list_table td {
        display: block !important;
        width: 100% !important;
        padding: 5px 0 !important;
        text-align: left !important;
        border: none !important;
    }
}

/* Mobile Side Menu balance */
#mobile_nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    overflow-y: auto;
}

#mobile_nav.active {
    right: 0;
}

#mobile_nav_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
}

#mobile_nav_overlay.active {
    display: block;
}

/* Mobile Bottom Nav balance */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--slate-200);
    z-index: 1500;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    main {
        padding-bottom: 80px !important;
    }
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 600;
    flex: 1;
}

.mobile-bottom-nav a.active {
    color: var(--primary);
}

.mobile-bottom-nav a span {
    font-size: 20px;
}

/* Board Write Styles balance */
.bo_w_table {
    width: 100%;
    border-top: 2px solid var(--slate-800);
    border-collapse: separate;
    border-spacing: 0;
}

.bo_w_table th {
    background: var(--slate-50);
    padding: 20px;
    font-size: 14px;
    text-align: left;
}

.bo_w_table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--slate-200);
}

@media (max-width: 768px) {
    .bo_w_table tr {
        display: block;
    }

    .bo_w_table th {
        display: block;
        width: 100% !important;
        padding: 15px 20px 5px;
        border-bottom: none;
        background: transparent;
    }

    .bo_w_table td {
        display: block;
        width: 100% !important;
        padding: 5px 20px 20px;
    }
}

.bo_w_input,
.bo_w_textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s;
}

.bo_w_input:focus,
.bo_w_textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Photo Gallery Styles balance */
.photo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 25px;
}

.photo-item {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.photo-img-wrap {
    aspect-ratio: 4/3;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.photo-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.photo-content {
    padding: 20px;
}

.photo-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--slate-800);
}

.photo-desc {
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.photo-info {
    font-size: 12px;
    color: var(--slate-400);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--slate-50);
    padding-top: 15px;
}

.photo-name {
    font-weight: 600;
    color: var(--slate-600);
}

.photo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .photo-list {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for smaller images balance */
        gap: 10px;
    }

    .photo-item {
        border-radius: 12px;
    }

    .photo-content {
        padding: 12px;
    }

    .photo-title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .photo-info {
        padding-top: 10px;
    }

    .photo-count-badge {
        top: 8px;
        right: 8px;
        padding: 2px 8px;
        font-size: 10px;
    }
}