/**
 * WooCommerce Para Puan - Hesabım (Premium "Kuk Çiçek Club" Kimliği)
 *
 * Marka rehberiyle (Ethereal) aynı dil: altın vurgular, krem yüzeyler,
 * ince hairline kenarlıklar, zarif serif başlıklar ve çizgi-SVG ikonlar.
 *
 * @package Woo_Reward_Points
 * @since   2.8.0
 */

/* ============================================================
   TASARIM TOKENLARI - ETHEREAL (ALTIN / KREM / CHARCOAL)
   ============================================================ */
:root {
    --wrp-gold: #775a19;
    --wrp-gold-soft: #C5A059;
    --wrp-gold-bright: #F5D08C;
    --wrp-charcoal: #1A1A1A;
    --wrp-ink: #1a1c1c;
    --wrp-muted: #6b6155;
    --wrp-muted-soft: #94897a;
    --wrp-cream: #F9F6F0;
    --wrp-cream-deep: #F3ECDD;
    --wrp-line: #E7E2D8;
    --wrp-surface: #ffffff;
    --wrp-pos: #6b5518;         /* pozitif işlem (kazanım) - altın */
    --wrp-neg: #9a4d2f;         /* negatif işlem (harcama) - terracotta */
    --wrp-radius-sm: 10px;
    --wrp-radius-md: 14px;
    --wrp-radius-lg: 18px;
    --wrp-shadow-sm: 0 4px 18px -10px rgba(119,90,25,0.18);
    --wrp-shadow-md: 0 12px 40px -18px rgba(119,90,25,0.22);
    --wrp-hairline: 1px solid var(--wrp-line);
    --wrp-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --wrp-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wrp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   TABAN & TİPOGRAFİ (scoped)
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-content .wrp-cockpit,
.woocommerce-account .woocommerce-MyAccount-content .wrp-hero-card,
.woocommerce-account .woocommerce-MyAccount-content .wrp-metrics-grid,
.woocommerce-account .woocommerce-MyAccount-content .wrp-earn-section,
.woocommerce-account .woocommerce-MyAccount-content .wrp-activity-section,
.woocommerce-account .woocommerce-MyAccount-content .wrp-expiration-widget {
    font-family: var(--wrp-sans);
    color: var(--wrp-ink);
}

/* İkon tabanı */
.wrp-ico {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================================
   SADE HERO (tier kapalıyken) - Üyelik kartı
   ============================================================ */
.wrp-hero-card {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #161311 0%, #211c17 55%, #2a2119 100%) !important;
    border: 1px solid rgba(197,160,89,0.40) !important;
    border-radius: var(--wrp-radius-lg) !important;
    padding: 30px 32px !important;
    color: var(--wrp-cream) !important;
    margin-bottom: 22px !important;
    box-shadow: 0 24px 50px -24px rgba(0,0,0,0.55) !important;
}

.wrp-hero-card::after {
    content: '';
    position: absolute;
    top: -45%;
    right: -12%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(197,160,89,0.18), transparent 70%);
    pointer-events: none;
}

.wrp-hero-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: var(--wrp-gold-soft) !important;
    margin-bottom: 14px !important;
    position: relative;
    z-index: 1;
}

.wrp-hero-value {
    font-family: var(--wrp-serif) !important;
    font-size: 44px !important;
    font-weight: 600 !important;
    line-height: 1.05 !important;
    margin-bottom: 6px !important;
    color: #fff !important;
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
}

.wrp-hero-value span {
    font-family: var(--wrp-sans) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--wrp-gold-soft) !important;
    margin-left: 8px;
}

.wrp-hero-subtitle {
    font-size: 14px !important;
    color: rgba(249,246,240,0.72) !important;
    margin-bottom: 22px !important;
    position: relative;
    z-index: 1;
}

.wrp-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    position: relative;
    z-index: 1;
}

.wrp-hero-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--wrp-gold-soft) !important;
    border: 1px solid var(--wrp-gold-soft) !important;
    color: #1a1a1a !important;
    padding: 12px 24px !important;
    border-radius: var(--wrp-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-decoration: none !important;
    transition: var(--wrp-transition) !important;
}

.wrp-hero-cta:hover {
    background: var(--wrp-gold-bright) !important;
    border-color: var(--wrp-gold-bright) !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.wrp-hero-cta .wrp-ico { width: 16px; height: 16px; }

/* Ikincil (ghost) hero butonu */
.wrp-hero-cta-ghost {
    background: transparent !important;
    border: 1px solid rgba(197,160,89,0.55) !important;
    color: var(--wrp-gold-bright) !important;
}

.wrp-hero-cta-ghost:hover {
    background: rgba(197,160,89,0.16) !important;
    border-color: var(--wrp-gold-soft) !important;
    color: var(--wrp-gold-bright) !important;
}

/* ============================================================
   METRİK KARTLARI
   ============================================================ */
.wrp-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
}

.wrp-metric-card {
    background: var(--wrp-surface) !important;
    border: var(--wrp-hairline) !important;
    border-radius: var(--wrp-radius-md) !important;
    padding: 22px 24px !important;
    transition: var(--wrp-transition) !important;
    box-shadow: var(--wrp-shadow-sm) !important;
}

.wrp-metric-card:hover {
    box-shadow: var(--wrp-shadow-md) !important;
    transform: translateY(-3px);
    border-color: rgba(197,160,89,0.5) !important;
}

.wrp-metric-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
    background: var(--wrp-cream) !important;
    border: 1px solid var(--wrp-line) !important;
    color: var(--wrp-gold) !important;
}

.wrp-metric-icon .wrp-ico { width: 22px; height: 22px; }

.wrp-metric-value {
    font-family: var(--wrp-serif) !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: var(--wrp-ink) !important;
    line-height: 1.1 !important;
    font-variant-numeric: tabular-nums;
}

.wrp-metric-label {
    font-size: 11px !important;
    color: var(--wrp-muted) !important;
    margin-top: 6px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

.wrp-metric-card.wrp-earned .wrp-metric-value { color: var(--wrp-pos) !important; }
.wrp-metric-card.wrp-spent .wrp-metric-value { color: var(--wrp-neg) !important; }

/* ============================================================
   BÖLÜM BAŞLIĞI (premium label)
   ============================================================ */
.wrp-section-head {
    margin-bottom: 16px !important;
}

.wrp-section-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--wrp-gold) !important;
    margin-bottom: 4px !important;
}

.wrp-section-title {
    font-family: var(--wrp-serif) !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: var(--wrp-ink) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.wrp-section-sub {
    font-size: 13px !important;
    color: var(--wrp-muted) !important;
    margin: 7px 0 0 !important;
    line-height: 1.55 !important;
}

.wrp-section-sub strong {
    color: var(--wrp-gold) !important;
    font-weight: 700 !important;
}

/* ============================================================
   KAZANIM YÖNTEMLERİ
   ============================================================ */
.wrp-earn-section {
    margin-bottom: 32px !important;
}

.wrp-earn-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 14px !important;
}

.wrp-earn-card {
    background: var(--wrp-cream) !important;
    border: var(--wrp-hairline) !important;
    border-radius: var(--wrp-radius-md) !important;
    padding: 22px 20px !important;
    text-align: center !important;
    transition: var(--wrp-transition) !important;
}

.wrp-earn-card:hover {
    border-color: var(--wrp-gold-soft) !important;
    background: var(--wrp-surface) !important;
    transform: translateY(-3px);
    box-shadow: var(--wrp-shadow-sm) !important;
}

.wrp-earn-card-icon {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 14px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--wrp-gold-soft) !important;
    color: var(--wrp-gold) !important;
    background: var(--wrp-surface) !important;
}

.wrp-earn-card-icon .wrp-ico { width: 23px; height: 23px; }

.wrp-earn-card-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--wrp-ink) !important;
    margin-bottom: 4px !important;
}

.wrp-earn-card-desc {
    font-size: 12.5px !important;
    color: var(--wrp-muted) !important;
    line-height: 1.5 !important;
}

/* ============================================================
   İŞLEM LİSTESİ
   ============================================================ */
.wrp-activity-section {
    background: var(--wrp-surface) !important;
    border: var(--wrp-hairline) !important;
    border-radius: var(--wrp-radius-md) !important;
    padding: 24px 26px !important;
    margin-bottom: 20px !important;
    box-shadow: var(--wrp-shadow-sm) !important;
}

.wrp-activity-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
}

.wrp-activity-title {
    font-family: var(--wrp-serif) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: var(--wrp-ink) !important;
}

.wrp-activity-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wrp-activity-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--wrp-line) !important;
}

.wrp-activity-item:last-child {
    border-bottom: none !important;
}

.wrp-activity-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.wrp-activity-dot.wrp-dot-earned { background: var(--wrp-gold-soft) !important; }
.wrp-activity-dot.wrp-dot-redeemed { background: var(--wrp-charcoal) !important; }
.wrp-activity-dot.wrp-dot-refunded { background: #b98a3e !important; }
.wrp-activity-dot.wrp-dot-admin_adjustment { background: var(--wrp-gold) !important; }
.wrp-activity-dot.wrp-dot-expired { background: var(--wrp-muted-soft) !important; }

.wrp-activity-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.wrp-activity-desc {
    font-size: 13.5px !important;
    color: var(--wrp-ink) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.wrp-activity-time {
    font-size: 11.5px !important;
    color: var(--wrp-muted-soft) !important;
    margin-top: 2px !important;
}

.wrp-activity-points {
    font-size: 15px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0 !important;
    font-family: var(--wrp-serif) !important;
}

.wrp-activity-points.wrp-positive { color: var(--wrp-pos) !important; }
.wrp-activity-points.wrp-negative { color: var(--wrp-neg) !important; }

/* Sayfalama */
.wrp-activity-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
}

.wrp-activity-pagination .wrp-page-link {
    display: inline-block !important;
    padding: 8px 18px !important;
    border: 1px solid var(--wrp-gold-soft) !important;
    border-radius: var(--wrp-radius-sm) !important;
    text-decoration: none !important;
    color: var(--wrp-gold) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: var(--wrp-transition) !important;
}

.wrp-activity-pagination .wrp-page-link:hover {
    background: var(--wrp-gold-soft) !important;
    color: #fff !important;
    border-color: var(--wrp-gold-soft) !important;
}

.wrp-activity-pagination .wrp-page-info {
    color: var(--wrp-muted) !important;
    font-size: 13px !important;
}

/* ============================================================
   BOŞ DURUM
   ============================================================ */
.wrp-empty-state {
    text-align: center !important;
    padding: 44px 24px !important;
    color: var(--wrp-muted) !important;
}

.wrp-empty-state-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 16px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--wrp-line) !important;
    background: var(--wrp-cream) !important;
    color: var(--wrp-gold-soft) !important;
}

.wrp-empty-state-icon .wrp-ico { width: 28px; height: 28px; }

.wrp-empty-state-text {
    font-size: 14px !important;
    margin-bottom: 18px !important;
    color: var(--wrp-muted) !important;
}

.wrp-empty-state-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: var(--wrp-charcoal) !important;
    color: #fff !important;
    padding: 11px 24px !important;
    border-radius: var(--wrp-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: var(--wrp-transition) !important;
}

.wrp-empty-state-cta:hover {
    background: #000 !important;
    color: #fff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* ============================================================
   MENÜ - KUK Para Puan özel ikon (altın)
   ============================================================ */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--reward-points a::before {
    content: "" !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%23775a19'><path d='M22 13.35a.52.52 0 0 0-.76-.19a6.05 6.05 0 0 1-2.35 1a6.4 6.4 0 0 0-2.1.83a2.58 2.58 0 0 0-1.29 2.06a2.2 2.2 0 0 0 .1.62a.23.23 0 0 1-.08.27a16 16 0 0 0-1.69 1.58a.25.25 0 0 1-.27.06a.25.25 0 0 1-.16-.23v-4.44a.25.25 0 0 1 .21-.25a7.38 7.38 0 1 0-2.42 0a.25.25 0 0 1 .21.25v3.46a.26.26 0 0 1-.14.22a.26.26 0 0 1-.27 0a10.7 10.7 0 0 0-1.89-1.27a.16.16 0 0 1-.1-.14a2.79 2.79 0 0 0-1.37-2.25A6.28 6.28 0 0 0 1.8 15a.47.47 0 0 0-.22.37a.46.46 0 0 0 .15.4a5.4 5.4 0 0 1 1.23 2A6 6 0 0 0 4 19.55a2.31 2.31 0 0 0 2.08.89a2.2 2.2 0 0 0 1.58-1.28a.3.3 0 0 1 .39-.16a7.7 7.7 0 0 1 3.33 3a.17.17 0 0 1 0 .12V23a1 1 0 0 0 1.05 1a1 1 0 0 0 .94-.54a14.1 14.1 0 0 1 3.4-4a.1.1 0 0 1 .14 0a2.32 2.32 0 0 0 1.55 1.19a3.09 3.09 0 0 0 2.63-1.08a6.85 6.85 0 0 0 .91-6.22m-11.4-1.5a.88.88 0 1 1 0-1.75h2.44a.73.73 0 0 0 .27-1.41l-2.48-1a2.49 2.49 0 0 1 .49-4.76c.21 0 .2-.22.2-.36a.88.88 0 1 1 1.75 0c0 .23.11.32.25.32h.68a.88.88 0 0 1 0 1.75h-2.42a.74.74 0 0 0-.74.74a.73.73 0 0 0 .46.68l2.48 1a2.49 2.49 0 0 1-.48 4.76c-.21 0-.21.22-.21.36a.88.88 0 1 1-1.75 0c0-.23-.1-.33-.25-.33Z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    font-family: inherit !important;
}

/* Aktif durum: ikon beyaz */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--reward-points.is-active a::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%23ffffff'><path d='M22 13.35a.52.52 0 0 0-.76-.19a6.05 6.05 0 0 1-2.35 1a6.4 6.4 0 0 0-2.1.83a2.58 2.58 0 0 0-1.29 2.06a2.2 2.2 0 0 0 .1.62a.23.23 0 0 1-.08.27a16 16 0 0 0-1.69 1.58a.25.25 0 0 1-.27.06a.25.25 0 0 1-.16-.23v-4.44a.25.25 0 0 1 .21-.25a7.38 7.38 0 1 0-2.42 0a.25.25 0 0 1 .21.25v3.46a.26.26 0 0 1-.14.22a.26.26 0 0 1-.27 0a10.7 10.7 0 0 0-1.89-1.27a.16.16 0 0 1-.1-.14a2.79 2.79 0 0 0-1.37-2.25A6.28 6.28 0 0 0 1.8 15a.47.47 0 0 0-.22.37a.46.46 0 0 0 .15.4a5.4 5.4 0 0 1 1.23 2A6 6 0 0 0 4 19.55a2.31 2.31 0 0 0 2.08.89a2.2 2.2 0 0 0 1.58-1.28a.3.3 0 0 1 .39-.16a7.7 7.7 0 0 1 3.33 3a.17.17 0 0 1 0 .12V23a1 1 0 0 0 1.05 1a1 1 0 0 0 .94-.54a14.1 14.1 0 0 1 3.4-4a.1.1 0 0 1 .14 0a2.32 2.32 0 0 0 1.55 1.19a3.09 3.09 0 0 0 2.63-1.08a6.85 6.85 0 0 0 .91-6.22m-11.4-1.5a.88.88 0 1 1 0-1.75h2.44a.73.73 0 0 0 .27-1.41l-2.48-1a2.49 2.49 0 0 1 .49-4.76c.21 0 .2-.22.2-.36a.88.88 0 1 1 1.75 0c0 .23.11.32.25.32h.68a.88.88 0 0 1 0 1.75h-2.42a.74.74 0 0 0-.74.74a.73.73 0 0 0 .46.68l2.48 1a2.49 2.49 0 0 1-.48 4.76c-.21 0-.21.22-.21.36a.88.88 0 1 1-1.75 0c0-.23-.1-.33-.25-.33Z'/></svg>") !important;
    background-color: transparent !important;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--reward-points.is-active a {
    color: #fff !important;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--reward-points a::after {
    display: none !important;
    content: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .wrp-hero-card { padding: 24px 22px !important; }
    .wrp-hero-value { font-size: 36px !important; }
    .wrp-hero-actions .wrp-hero-cta { flex: 1 1 100% !important; justify-content: center !important; }
    .wrp-activity-section { padding: 20px 18px !important; }
    .wrp-metric-value { font-size: 24px !important; }
}
