/* ============================================
   Notion Design System for Syncle
   노션 스타일 디자인 시스템
   ============================================ */

:root {
    /* ========== 노션 컬러 팔레트 ========== */

    /* 배경색 */
    --notion-bg-default: #ffffff;
    --notion-bg-gray: #f7f6f3;
    --notion-bg-gray-light: #fafafa;
    --notion-bg-brown: #f4eeee;
    --notion-bg-orange: #fbecdd;
    --notion-bg-yellow: #faf3dd;
    --notion-bg-green: #edf3ec;
    --notion-bg-blue: #e7f3f8;
    --notion-bg-purple: #f4f0f7;
    --notion-bg-pink: #faf1f5;
    --notion-bg-red: #fdebec;

    /* 텍스트 색상 */
    --notion-text-default: #37352f;
    --notion-text-gray: #9b9a97;
    --notion-text-brown: #64473a;
    --notion-text-orange: #d9730d;
    --notion-text-yellow: #dfab01;
    --notion-text-green: #0f7b6c;
    --notion-text-blue: #0b6e99;
    --notion-text-purple: #6940a5;
    --notion-text-pink: #ad1a72;
    --notion-text-red: #e03e3e;

    /* 테두리 */
    --notion-border-default: #e9e9e7;
    --notion-border-light: #f1f1ef;
    --notion-border-dark: #d3d3d0;

    /* 그림자 */
    --notion-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --notion-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --notion-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --notion-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --notion-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 호버 그림자 */
    --notion-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);

    /* 라운드 */
    --notion-radius-xs: 3px;
    --notion-radius-sm: 4px;
    --notion-radius-md: 6px;
    --notion-radius-lg: 8px;
    --notion-radius-xl: 12px;
    --notion-radius-full: 9999px;

    /* 간격 */
    --notion-space-1: 4px;
    --notion-space-2: 8px;
    --notion-space-3: 12px;
    --notion-space-4: 16px;
    --notion-space-5: 20px;
    --notion-space-6: 24px;
    --notion-space-8: 32px;
    --notion-space-10: 40px;

    /* 타이포그래피 */
    --notion-font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --notion-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* 폰트 크기 */
    --notion-text-xs: 11px;
    --notion-text-sm: 13px;
    --notion-text-base: 14px;
    --notion-text-md: 15px;
    --notion-text-lg: 16px;
    --notion-text-xl: 18px;
    --notion-text-2xl: 20px;
    --notion-text-3xl: 24px;

    /* 폰트 굵기 */
    --notion-font-normal: 400;
    --notion-font-medium: 500;
    --notion-font-semibold: 600;
    --notion-font-bold: 700;

    /* 트랜지션 */
    --notion-transition-fast: 0.1s ease;
    --notion-transition-normal: 0.2s ease;
    --notion-transition-slow: 0.3s ease;

    /* 싱클 브랜드 색상 통합 */
    --notion-accent: #38f094;
    --notion-accent-light: #e8fdf3;
    --notion-accent-dark: #2dd47d;
}

/* ========== 노션 카드 컴포넌트 ========== */

.notion-card {
    background: var(--notion-bg-default);
    border: 1px solid var(--notion-border-default);
    border-radius: var(--notion-radius-lg);
    padding: var(--notion-space-6);
    transition: box-shadow var(--notion-transition-normal),
                transform var(--notion-transition-normal);
}

.notion-card:hover {
    box-shadow: var(--notion-shadow-hover);
    transform: translateY(-1px);
}

.notion-card--flat {
    box-shadow: none;
    border: 1px solid var(--notion-border-light);
}

.notion-card--elevated {
    border: none;
    box-shadow: var(--notion-shadow-md);
}

/* ========== 노션 스탯 카드 ========== */

.notion-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--notion-space-4);
    background: var(--notion-bg-gray-light);
    border-radius: var(--notion-radius-md);
    gap: var(--notion-space-1);
    transition: background var(--notion-transition-fast);
    min-width: 80px;
}

.notion-stat-card:hover {
    background: var(--notion-bg-gray);
}

.notion-stat-card--blue {
    background: var(--notion-bg-blue);
}

.notion-stat-card--green {
    background: var(--notion-bg-green);
}

.notion-stat-card--orange {
    background: var(--notion-bg-orange);
}

.notion-stat-card--purple {
    background: var(--notion-bg-purple);
}

.notion-stat-icon {
    font-size: 18px;
    line-height: 1;
}

.notion-stat-value {
    font-size: var(--notion-text-lg);
    font-weight: var(--notion-font-bold);
    color: var(--notion-text-default);
    line-height: 1.2;
}

.notion-stat-label {
    font-size: var(--notion-text-xs);
    color: var(--notion-text-gray);
    font-weight: var(--notion-font-medium);
}

/* ========== 노션 뱃지 ========== */

.notion-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--notion-space-1);
    padding: 2px 8px;
    border-radius: var(--notion-radius-sm);
    font-size: var(--notion-text-sm);
    font-weight: var(--notion-font-medium);
    line-height: 1.4;
}

.notion-badge--gray {
    background: var(--notion-bg-gray);
    color: var(--notion-text-default);
}

.notion-badge--blue {
    background: var(--notion-bg-blue);
    color: var(--notion-text-blue);
}

.notion-badge--green {
    background: var(--notion-bg-green);
    color: var(--notion-text-green);
}

.notion-badge--orange {
    background: var(--notion-bg-orange);
    color: var(--notion-text-orange);
}

.notion-badge--red {
    background: var(--notion-bg-red);
    color: var(--notion-text-red);
}

.notion-badge--purple {
    background: var(--notion-bg-purple);
    color: var(--notion-text-purple);
}

.notion-badge--pink {
    background: var(--notion-bg-pink);
    color: var(--notion-text-pink);
}

.notion-badge--yellow {
    background: var(--notion-bg-yellow);
    color: var(--notion-text-yellow);
}

.notion-badge--accent {
    background: var(--notion-accent-light);
    color: var(--notion-text-green);
}

/* ========== 노션 버튼 ========== */

.notion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--notion-space-2);
    padding: var(--notion-space-2) var(--notion-space-4);
    border-radius: var(--notion-radius-md);
    font-size: var(--notion-text-base);
    font-weight: var(--notion-font-medium);
    cursor: pointer;
    transition: all var(--notion-transition-fast);
    border: none;
    outline: none;
}

.notion-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--notion-accent);
}

.notion-btn--primary {
    background: var(--notion-text-default);
    color: white;
}

.notion-btn--primary:hover {
    background: #2f2f2f;
}

.notion-btn--secondary {
    background: var(--notion-bg-gray);
    color: var(--notion-text-default);
}

.notion-btn--secondary:hover {
    background: var(--notion-border-default);
}

.notion-btn--ghost {
    background: transparent;
    color: var(--notion-text-default);
}

.notion-btn--ghost:hover {
    background: var(--notion-bg-gray);
}

.notion-btn--accent {
    background: var(--notion-accent);
    color: var(--notion-text-default);
}

.notion-btn--accent:hover {
    background: var(--notion-accent-dark);
}

.notion-btn--icon {
    padding: var(--notion-space-2);
    border-radius: var(--notion-radius-md);
}

.notion-btn--lg {
    padding: var(--notion-space-3) var(--notion-space-6);
    font-size: var(--notion-text-md);
}

.notion-btn--full {
    width: 100%;
}

/* ========== 노션 구분선 ========== */

.notion-divider {
    height: 1px;
    background: var(--notion-border-light);
    margin: var(--notion-space-4) 0;
    border: none;
}

.notion-divider--dashed {
    background: transparent;
    border-top: 1px dashed var(--notion-border-default);
}

/* ========== 노션 프로퍼티 리스트 ========== */

.notion-property-list {
    display: flex;
    flex-direction: column;
    gap: var(--notion-space-3);
}

.notion-property {
    display: flex;
    align-items: center;
    gap: var(--notion-space-3);
    padding: var(--notion-space-2) 0;
}

.notion-property-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--notion-text-gray);
    flex-shrink: 0;
}

.notion-property-label {
    min-width: 80px;
    font-size: var(--notion-text-sm);
    color: var(--notion-text-gray);
    font-weight: var(--notion-font-medium);
    flex-shrink: 0;
}

.notion-property-value {
    font-size: var(--notion-text-base);
    color: var(--notion-text-default);
    font-weight: var(--notion-font-normal);
    flex: 1;
}

/* ========== 노션 칩 (Amenity용) ========== */

.notion-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--notion-space-1);
    padding: var(--notion-space-1) var(--notion-space-3);
    background: var(--notion-bg-gray);
    border-radius: var(--notion-radius-full);
    font-size: var(--notion-text-sm);
    color: var(--notion-text-default);
    font-weight: var(--notion-font-medium);
    white-space: nowrap;
}

.notion-chip-icon {
    font-size: 12px;
}

.notion-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--notion-space-2);
}

/* ========== 노션 가격 표시 ========== */

.notion-price {
    display: flex;
    flex-direction: column;
    gap: var(--notion-space-1);
}

.notion-price-row {
    display: flex;
    align-items: center;
    gap: var(--notion-space-3);
}

.notion-price-discount {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    background: var(--notion-bg-red);
    color: var(--notion-text-red);
    border-radius: var(--notion-radius-sm);
    font-size: var(--notion-text-sm);
    font-weight: var(--notion-font-bold);
}

.notion-price-current {
    font-size: var(--notion-text-2xl);
    font-weight: var(--notion-font-bold);
    color: var(--notion-text-default);
}

.notion-price-original {
    font-size: var(--notion-text-base);
    color: var(--notion-text-gray);
    text-decoration: line-through;
}

.notion-price-unit {
    font-size: var(--notion-text-sm);
    color: var(--notion-text-gray);
    font-weight: var(--notion-font-normal);
}

/* ========== 노션 프로필/로고 ========== */

.notion-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--notion-radius-md);
    background: var(--notion-bg-gray);
    overflow: hidden;
    flex-shrink: 0;
}

.notion-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.notion-avatar--md {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.notion-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 22px;
}

.notion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 노션 제목 스타일 ========== */

.notion-title {
    font-weight: var(--notion-font-semibold);
    color: var(--notion-text-default);
    line-height: 1.3;
}

.notion-title--sm {
    font-size: var(--notion-text-base);
}

.notion-title--md {
    font-size: var(--notion-text-lg);
}

.notion-title--lg {
    font-size: var(--notion-text-xl);
}

.notion-title--xl {
    font-size: var(--notion-text-2xl);
}

.notion-subtitle {
    font-size: var(--notion-text-sm);
    color: var(--notion-text-gray);
    font-weight: var(--notion-font-normal);
}

/* ========== 노션 호버 링크 ========== */

.notion-link {
    color: var(--notion-text-default);
    text-decoration: none;
    transition: all var(--notion-transition-fast);
    cursor: pointer;
}

.notion-link:hover {
    color: var(--notion-text-default);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notion-link--with-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--notion-space-1);
}

.notion-link--with-arrow svg {
    transition: transform var(--notion-transition-fast);
}

.notion-link--with-arrow:hover svg {
    transform: translateX(2px);
}

/* ========== 유틸리티 클래스 ========== */

.notion-flex {
    display: flex;
}

.notion-flex-col {
    flex-direction: column;
}

.notion-items-center {
    align-items: center;
}

.notion-justify-between {
    justify-content: space-between;
}

.notion-gap-1 { gap: var(--notion-space-1); }
.notion-gap-2 { gap: var(--notion-space-2); }
.notion-gap-3 { gap: var(--notion-space-3); }
.notion-gap-4 { gap: var(--notion-space-4); }
.notion-gap-6 { gap: var(--notion-space-6); }

.notion-mt-2 { margin-top: var(--notion-space-2); }
.notion-mt-4 { margin-top: var(--notion-space-4); }
.notion-mt-6 { margin-top: var(--notion-space-6); }

.notion-mb-2 { margin-bottom: var(--notion-space-2); }
.notion-mb-4 { margin-bottom: var(--notion-space-4); }
.notion-mb-6 { margin-bottom: var(--notion-space-6); }
