:root {
    --main-color: #8B3DFF;
    --main-shadow: 0 .125rem .25rem #BA8DFFBF;
    --main-border-radius: 0.25rem;

    --color-success: #8B3DFF;
    --color-info: #0dcaf0;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-light: #dadada;
    --color-dark: #333;
    --color-white: #fff;
    --color-black: #000;

    --color-1: #5804ff;
    --color-2: #6518ff;
    --color-3: #722bff;
    --color-4: #7f3fff;
    --color-5: #8c52ff;
    --color-6: #9966ff;
    --color-7: #a67aff;
    --color-8: #b38dff;
    --color-9: #c0a1ff;
    --color-10: #cdb4ff;
    --color-11: #dac8ff;
    --color-12: #e7dcff;
    --color-13: #f5efff;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body {
    height: 100%;
    background-color: #eee;
}

header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-8);
}

footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-8);
}

main {
    flex: 1 0 auto;
    padding: 2rem 1rem;
}

.logo {
    content: url("/images/common/comma.svg");
    width: 2rem;
}
.search {
    width: 100%;
    padding: .25rem .5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.35rem;
    transition: all 0.2s ease;
}
.search:focus {
    outline: none;
    border-color: #8b3dff;
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.1);
}
.search::placeholder {
    color: #999;
    font-size: 1rem;
}

.container{
    width: 100%;
    margin: auto;
}

.content {
    background-color: var(--color-white);
    border: 1px solid var(--color-8);
    border-radius: var(--main-border-radius);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-space-evenly {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.navigate {
    cursor: pointer;
}

.btn {
    --btn-color: #fff;
    --btn-bg: #8b3dff;
    --btn-border-color: #7216ff;
    --btn-hover-color: #fff;
    --btn-hover-bg: #7634d9;
    --btn-hover-border-color: #681dd8;


    border: 1px solid var(--btn-border-color);
    color: var(--btn-color);
    background-color: var(--btn-bg);
    border-radius: var(--main-border-radius);

    flex: 1;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    padding: .25rem .5rem;
    text-decoration: none;
    cursor: pointer;

}

.btn:hover {
    color: var(--btn-hover-color);
    background-color: var(--btn-hover-bg);
    border: 1px solid var(--btn-hover-border-color);
}


.btn:active {
    transform: scale(0.98);
}
.btn-big {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-light {
    --btn-color: #333;
    --btn-bg: #f1f5f9;
    --btn-border-color: #ddd;
    --btn-hover-color: #334155;
    --btn-hover-bg: #e2e8f0;
    --btn-hover-border-color: #999;

}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* Link */
.link {
    text-align: center;
    margin-top: 1.5rem;
}

.link-text {
    font-size: 0.95rem;
    color: #666;
}

.link-text a {
    color: #8b3dff;
    text-decoration: none;
    font-weight: 600;
}

.link-text a:hover {
    text-decoration: underline;
}

/* Alert system */

#alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: auto;
    max-width: 90%;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    opacity: 1;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1rem;
    color: inherit;
    cursor: pointer;
    padding-top: 0.25rem;
}

.w-25 {
    width: 25%!important
}

.w-50 {
    width: 50%!important
}

.w-75 {
    width: 75%!important
}

.w-100 {
    width: 100%!important
}

.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

.m-auto {
    margin: auto !important;
}

.mx-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.mx-1 {
    margin-right: 0.25rem !important;
    margin-left: 0.25rem !important;
}

.mx-2 {
    margin-right: 0.5rem !important;
    margin-left: 0.5rem !important;
}

.mx-3 {
    margin-right: 1rem !important;
    margin-left: 1rem !important;
}

.mx-4 {
    margin-right: 1.5rem !important;
    margin-left: 1.5rem !important;
}

.mx-5 {
    margin-right: 3rem !important;
    margin-left: 3rem !important;
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.my-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

.me-0 {
    margin-right: 0 !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.me-4 {
    margin-right: 1.5rem !important;
}

.me-5 {
    margin-right: 3rem !important;
}

.me-auto {
    margin-right: auto !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mb-auto {
    margin-bottom: auto !important;
}

.ms-0 {
    margin-left: 0 !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-4 {
    margin-left: 1.5rem !important;
}

.ms-5 {
    margin-left: 3rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.px-1 {
    padding-right: 0.25rem !important;
    padding-left: 0.25rem !important;
}

.px-2 {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.px-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pe-0 {
    padding-right: 0 !important;
}

.pe-1 {
    padding-right: 0.25rem !important;
}

.pe-2 {
    padding-right: 0.5rem !important;
}

.pe-3 {
    padding-right: 1rem !important;
}

.pe-4 {
    padding-right: 1.5rem !important;
}

.pe-5 {
    padding-right: 3rem !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.ps-0 {
    padding-left: 0 !important;
}

.ps-1 {
    padding-left: 0.25rem !important;
}

.ps-2 {
    padding-left: 0.5rem !important;
}

.ps-3 {
    padding-left: 1rem !important;
}

.ps-4 {
    padding-left: 1.5rem !important;
}

.ps-5 {
    padding-left: 3rem !important;
}

.flex-grow-0 {
    flex-grow: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-shrink-1 {
    flex-shrink: 1 !important;
}

/* 반응형 */
@media (max-width: 1024px) {
    .main-two-column {
        grid-template-columns: 1fr;
    }

    .main-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}



@media (min-width: 576px) {
    .container {
        max-width:540px
    }

}
@media (min-width: 768px) {
    .container {
        max-width:720px
    }
}

@media (min-width: 992px) {
    .container {
        max-width:960px
    }
}

@media (min-width: 1200px) {
    .container {
        max-width:1140px
    }
}

@media (min-width: 1400px) {
    .container {
        max-width:1320px
    }
}

/* ===== Info Page Styles ===== */

/* 페이지 제목 */
.info-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.info-subtitle {
    font-size: 0.95rem;
    color: #666;
}

/* 섹션 제목 */
.info-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.info-section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b3dff;
}

/* 정보 박스 */
.info-box {
    background-color: #f5efff;
    border-radius: 0.5rem;
    border-left: 4px solid #8b3dff;
    padding: 1rem;
}

.info-box-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.info-box-ul {
    color: #555;
    line-height: 1.8;
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.info-box li {
    margin-bottom: 0.5rem;
}

/* 카드 스타일 */
.info-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.info-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b3dff;
    margin-bottom: 0.5rem;
}

.info-card-text {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

.info-card-list li {
    margin-bottom: 0.25rem;
}

/* 카드 그리드 */
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}


/* 연락처 정보 */
.info-contact {
    color: #555;
}

.info-contact p {
    margin: 0.5rem 0;
}

.info-contact strong {
    font-weight: 600;
}

/* ===== Main Page Styles ===== */

/* 장르 탭 */
.main-genre-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.genre-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-8);
    background-color: white;
    color: #555;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.genre-tab:hover {
    border-color: #8b3dff;
    color: #8b3dff;
}

.genre-tab.active {
    background-color: #8b3dff;
    border-color: #8b3dff;
    color: white;
}

/* 섹션 헤더 */
.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 스페이스 카드 그리드 */
.main-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.main-space-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-space-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.space-card-image {
    width: 100%;
    height: 150px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

.space-like-badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.space-card-info {
    padding: 1rem;
}

.space-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.space-card-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.space-card-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.space-rating {
    font-size: 0.85rem;
    color: #8b3dff;
    font-weight: 600;
}

.space-type {
    font-size: 0.75rem;
    background-color: #f5efff;
    color: #8b3dff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* 핫 게시글 */
.main-post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 4px solid #8b3dff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-item-left {
    flex: 1;
}

.post-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.post-item-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.post-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #999;
}

.post-item-right {
    margin-left: 1rem;
}

.post-hot-badge {
    background-color: #ff6b6b;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* 2칼럼 레이아웃 */
.main-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.main-column {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 배지 그리드 */
.main-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.main-badge-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f5efff 0%, #f0e6ff 100%);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 61, 255, 0.2);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.badge-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.badge-price {
    font-size: 0.85rem;
    color: #8b3dff;
    font-weight: 600;
    margin: 0;
}

/* 랭킹 리스트 */
.main-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: linear-gradient(90deg, #f5efff 0%, transparent 100%);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: linear-gradient(90deg, #f0e6ff 0%, transparent 100%);
}

.ranking-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: #8b3dff;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.ranking-level {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.ranking-points {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b3dff;
    margin: 0;
}

/* 액션 버튼 영역 */
.main-action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn-inquiry {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.action-btn-inquiry:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.action-btn-request {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.action-btn-request:hover {
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.action-btn-shop {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.action-btn-shop:hover {
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.btn-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.btn-text {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .main-badge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-action-buttons {
        grid-template-columns: 1fr;
    }
}