@charset "utf-8";

/**
 * 코라이브 O2O 생활인프라 전용 게시판 스타일시트
 * 파일경로: theme/kolive_new/skin/board/o2o/style.css
 * 기준: 네이버 플레이스, 숨고 스타일의 모던 O2O 매장/인프라 UI
 * Zero-Tolerance: 인라인 스타일 100% 배제
 */

/* ==========================================================================
   1. 컨테이너 및 헤더 영역
   ========================================================================== */
.o2o-board-wrapper {
    width: 100%;
}

.o2o-board-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.o2o-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.o2o-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.o2o-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
}

.o2o-board-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.o2o-board-cnt {
    font-size: 14px;
    color: #64748b;
}

.o2o-board-cnt strong {
    color: #2563eb;
    font-weight: 700;
}

.o2o-btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.o2o-btn-admin:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   2. 카테고리 & 지역 필터 바
   ========================================================================== */
.o2o-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.o2o-pill-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.o2o-pill-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.o2o-pill-tab:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.o2o-pill-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.o2o-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.o2o-sort-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

.o2o-sort-link:hover,
.o2o-sort-link.active {
    color: #0f172a;
    font-weight: 700;
    background: #f1f5f9;
}

/* ==========================================================================
   3. O2O 매장/인프라 카드 그리드
   ========================================================================== */
.o2o-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .o2o-card-grid {
        grid-template-columns: 1fr;
    }
}

.o2o-store-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.o2o-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #93c5fd;
}

.o2o-card-top {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
}

.o2o-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.o2o-store-card:hover .o2o-card-thumb {
    transform: scale(1.05);
}

.o2o-card-badge-row {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.o2o-card-region {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.o2o-card-cat {
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.o2o-card-rating-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: #d97706;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.o2o-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.o2o-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
    word-break: keep-all;
}

.o2o-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.o2o-card-title a:hover {
    color: #2563eb;
}

.o2o-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.o2o-card-info-list {
    margin: 0 0 16px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    color: #475569;
}

.o2o-card-info-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.o2o-card-info-list li i {
    width: 14px;
    color: #94a3b8;
    text-align: center;
    flex-shrink: 0;
}

.o2o-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.o2o-card-btn-call {
    flex: 1;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.o2o-card-btn-call:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.o2o-card-btn-detail {
    flex: 1.2;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.o2o-card-btn-detail:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   4. 상세 뷰어 (view.skin.php) 매장 프로필 & 정보
   ========================================================================== */
.o2o-view-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.o2o-hero-profile {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .o2o-hero-profile {
        grid-template-columns: 1fr;
    }
}

.o2o-profile-img-wrap {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.o2o-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.o2o-profile-info {
    display: flex;
    flex-direction: column;
}

.o2o-profile-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.o2o-profile-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.o2o-profile-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
}

.o2o-stars {
    color: #f59e0b;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
}

.o2o-spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 0 20px 0;
}

.o2o-spec-table tr {
    border-bottom: 1px solid #f8fafc;
}

.o2o-spec-table th {
    width: 80px;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    vertical-align: middle;
}

.o2o-spec-table td {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    vertical-align: middle;
}

.o2o-spec-table td a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.o2o-profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.o2o-btn-call-large {
    flex: 1;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.o2o-btn-call-large:hover {
    background: #eff6ff;
}

.o2o-btn-reserve-large {
    flex: 1.5;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s;
}

.o2o-btn-reserve-large:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. 매장 상세 콘텐츠 영역
   ========================================================================== */
.o2o-content-section {
    padding: 20px 0;
}

.o2o-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.o2o-section-title i {
    color: #2563eb;
}

.o2o-content-body {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    word-break: keep-all;
}

.o2o-content-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

/* ==========================================================================
   6. 하단 목록/네비게이션 바
   ========================================================================== */
.o2o-view-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    margin-top: 24px;
}

.o2o-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.o2o-btn-back:hover {
    background: #e2e8f0;
    color: #0f172a;
}
