/*
* [모듈명]: 인사이트 & 수익 관리 스타일
* [파일명]: revenue.css
* [역할]: 수익 대시보드, 경쟁력 지표, 내역 리스트의 프리미엄 다크 스타일을 정의합니다.
*/

.revenue-container {
    width: 100%;
    min-height: 100dvh;
    background-color: #000000;
    padding-bottom: 40px;
}

/* 헤더 */
.revenue-header {
    position: sticky;
    top: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.revenue-header .material-icons {
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

.revenue-header .header-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
}

/* 수익 메인 카드 */
.revenue-main-card {
    margin: 20px;
    padding: 32px 24px;
    background: #111111;
    border-radius: 24px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.revenue-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.revenue-amount {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -1px;
}

.btn-withdraw {
    width: 100%;
    height: 56px;
    background-color: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-withdraw:active {
    opacity: 0.8;
}

/* 에스크로 카드 */
.escrow-card {
    margin: 0 20px 32px;
    padding: 20px;
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.escrow-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.escrow-icon {
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.escrow-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.escrow-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
}

.escrow-desc {
    font-size: 12px;
    color: #555;
}

.escrow-amount-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.escrow-val {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
}

.escrow-link {
    font-size: 11px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
}

/* 섹션 타이틀 */
.section-title-row {
    margin: 0 24px 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.section-subtitle {
    font-size: 12px;
    color: #444;
}

/* 경쟁력 그리드 */
.competitiveness-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 20px 40px;
}

.metric-card {
    padding: 20px;
    background-color: #0c0c0c;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric-label {
    font-size: 11px;
    color: #555;
    font-weight: 600;
}

.metric-value {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
}

.metric-value.highlight {
    color: #FFFFFF; /* B&W 룰에 따라 강조도 화이트로 유지 (굵기나 여백으로 차별화) */
}

.metric-desc {
    font-size: 11px;
    color: #333;
}

/* 최근 내역 */
.history-list {
    margin: 0 20px;
    display: flex;
    flex-direction: column;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #111;
}

.history-item:active {
    background: #050505;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-icon {
    width: 44px;
    height: 44px;
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.history-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.history-time-status {
    font-size: 12px;
    color: #555;
}

.history-amount {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF; /* 초록색 소거 */
}
