/**
 * ポイントシステム & ログインストリークのスタイル
 */

/* ========================================
   ポイントダッシュボード
   ======================================== */

.points-dashboard {
    background: linear-gradient(135deg, #FFF5F8, #F0F8FF);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.15);
    border: 2px solid #FFD700;
}

.points-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.points-dashboard-header h2 {
    font-size: 24px;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.points-dashboard-header .subtitle {
    color: var(--text-gray);
    font-size: 14px;
}

.points-main-display {
    text-align: center;
    background: linear-gradient(135deg, #FF6B9D, #C77DFF);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.points-main-display .points-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.points-main-display .current-points {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.points-main-display .points-label {
    font-size: 18px;
    opacity: 0.9;
}

.points-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.points-stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.points-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 157, 0.2);
}

.points-stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 5px;
}

.points-stat-card .stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* 面談までの進捗 */
.consultation-progress-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.consultation-progress-section h3 {
    font-size: 18px;
    color: var(--primary-pink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consultation-progress-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.consultation-progress-bar-container {
    width: 100%;
    height: 20px;
    background: #F0F0F0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.consultation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D, #FFD700);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.consultation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #FFF5F8, #FFFDE7);
    border-radius: 8px;
    margin-top: 15px;
}

.consultation-info .info-item {
    text-align: center;
}

.consultation-info .info-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.consultation-info .info-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-pink);
}

/* ========================================
   ログインストリーク
   ======================================== */

.login-streak-display-section {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
}

.streak-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.streak-header h3 {
    font-size: 20px;
    margin: 0;
}

.streak-main {
    text-align: center;
}

.streak-number-display {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.streak-label {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 5px;
}

.streak-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.streak-stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.streak-stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.streak-stat-item .stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* ========================================
   ログインボーナスモーダル
   ======================================== */

.login-bonus-modal {
    animation: fadeIn 0.3s ease;
}

.login-bonus-content {
    max-width: 500px;
    padding: 0;
    overflow: hidden;
}

.login-bonus-header {
    background: linear-gradient(135deg, #FF6B9D, #C77DFF);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-bonus-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.login-bonus-body {
    padding: 30px;
}

.streak-display {
    text-align: center;
    margin-bottom: 30px;
}

.streak-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: fireAnimation 1s ease infinite;
}

@keyframes fireAnimation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.streak-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-pink);
    line-height: 1;
}

.streak-label {
    font-size: 18px;
    color: var(--text-gray);
    margin-top: 5px;
}

.bonus-points {
    text-align: center;
    background: linear-gradient(135deg, #FFF5F8, #FFFDE7);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.bonus-points .points-amount {
    font-size: 48px;
    font-weight: 700;
    color: #FFD700;
    display: block;
    text-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
}

.bonus-points .points-label {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 5px;
    display: block;
}

.bonus-message {
    text-align: center;
    font-size: 16px;
    color: var(--primary-pink);
    margin-bottom: 15px;
}

.extra-bonus {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 20px;
}

.next-milestone {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #FFD700;
    margin-bottom: 20px;
}

.next-milestone p {
    margin: 0 0 10px 0;
    text-align: center;
}

.milestone-info {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-pink);
}

.milestone-progress {
    width: 100%;
    height: 12px;
    background: #F0F0F0;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.milestone-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D, #FFD700);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.streak-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-pink);
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.login-bonus-footer {
    padding: 20px 30px;
    background: #F9F9F9;
}

.login-bonus-footer .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* ========================================
   ポイント獲得アニメーション
   ======================================== */

.points-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.points-animation.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

.points-animation-content {
    background: linear-gradient(135deg, #FF6B9D, #FFD700);
    color: white;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.5);
}

.points-animation-content i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    animation: starSpin 1s ease;
}

@keyframes starSpin {
    0% { transform: rotate(0deg) scale(0); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.points-amount {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.points-reason {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   ポイント履歴
   ======================================== */

.points-history-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.points-history-section h3 {
    font-size: 18px;
    color: var(--primary-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.points-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.points-history-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #F0F0F0;
    align-items: center;
}

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

.history-date {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
}

.history-reason {
    font-size: 14px;
    color: var(--text-dark);
}

.history-points {
    font-size: 16px;
    font-weight: 700;
}

.history-points.earned {
    color: #4CAF50;
}

.history-points.spent {
    color: #FF6B9D;
}

.no-history {
    text-align: center;
    color: var(--text-gray);
    padding: 40px;
    font-style: italic;
}

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 768px) {
    .points-main-display .current-points {
        font-size: 42px;
    }
    
    .points-stats {
        grid-template-columns: 1fr;
    }
    
    .streak-number-display {
        font-size: 48px;
    }
    
    .streak-stats {
        grid-template-columns: 1fr;
    }
    
    .bonus-points .points-amount {
        font-size: 36px;
    }
    
    .streak-number {
        font-size: 56px;
    }
    
    .points-history-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .history-points {
        text-align: left;
    }
}
