/**
 * ATACAJUNTO APP - 积分卡片样式
 * css/pages/pontos-card.css
 * 
 * 包含: 积分卡片、订单入口卡片
 */

/* ===========================
   积分卡片 - Meu pontos
   =========================== */

/* 重置 profile-content 的 padding（仅在有积分卡片时） */
.profile-content:has(.pontos-card) {
    padding: 12px 0 16px;
}

.pontos-card {
    margin: 0 12px 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pontos-card-main {
    background: linear-gradient(135deg, #2C3E50 0%, #3D5A73 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* VIP 水印 - 斜体大字 */
.pontos-card-main::after {
    content: 'VIP';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 72px;
    font-weight: 800;
    font-style: italic;
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: 4px;
    pointer-events: none;
}

.pontos-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pontos-card-label {
    font-size: 14px;
    color: #C9A24D;
    font-weight: 500;
}

.pontos-card-value {
    font-size: 30px;
    font-weight: 600;
    color: #C9A24D;
    line-height: 1;
}

/* 积分加载状态 */
.pontos-card-value.loading {
    font-size: 24px;
    opacity: 0.7;
}

.pontos-card-value.loading::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 积分按钮区域 */
.pontos-card-actions {
    display: flex;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.pontos-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.pontos-action-btn:first-child {
    border-right: 1px solid #eee;
}

.pontos-action-btn:active {
    background: #f5f5f5;
}

/* ===========================
   订单入口卡片 - Meu pedidos
   =========================== */
.pedidos-card {
    margin: 0 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pedidos-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 12px;
}

.pedidos-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.pedidos-card-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.pedidos-card-link:hover {
    color: #666;
}

.pedidos-card-link i {
    font-size: 10px;
}

/* 订单状态入口 */
.pedidos-status-list {
    display: flex;
    padding: 8px 0 20px;
}

.pedidos-status-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pedidos-status-item:active {
    opacity: 0.7;
}

.pedidos-status-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pedidos-status-icon svg {
    width: 32px;
    height: 32px;
}

.pedidos-status-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ===========================
   响应式调整 - 小屏手机
   =========================== */
@media (max-width: 375px) {
    .pontos-card,
    .pedidos-card {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .pontos-card-value {
        font-size: 32px;
    }
    
    .pontos-card-main::after {
        font-size: 56px;
        right: -15px;
    }
}

/* ===========================
   响应式调整 - 平板端
   =========================== */
@media (min-width: 768px) {
    .pontos-card,
    .pedidos-card {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pontos-card-value {
        font-size: 40px;
    }
    
    .pontos-card-main::after {
        font-size: 84px;
    }
    
    .pontos-action-btn {
        padding: 16px 0;
    }
    
    .pontos-action-btn:hover {
        background: #f9f9f9;
    }
    
    .pedidos-status-item:hover {
        color: var(--primary);
    }
    
    .pedidos-status-icon {
        width: 48px;
        height: 48px;
    }
    
    .pedidos-status-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* ===========================
   大屏幕优化 - 1024px+
   =========================== */
@media (min-width: 1024px) {
    .pontos-card,
    .pedidos-card {
        max-width: 600px;
    }
}
