/**
 * Customer Profile Styles
 * Matches site design with dark theme
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

/* Arcade Font */
@font-face {
    font-family: 'Arcade';
    src: url('../fonts/ARCADE_I.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Wrapper for block editor integration */
.wp-customer-profile-wrapper {
    width: 100%;
    margin: 0 auto;
}

.customer-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #444;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    border-radius: 50%;
    border: 3px solid #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.profile-header-info {
    flex: 1;
}

.profile-name {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.loyalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Account Type Badges */
.loyalty-badge-regular {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.loyalty-badge-vip {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: #fff;
}

.loyalty-badge-staff {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: #fff;
}

.loyalty-badge-owner {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: #fff;
}

.loyalty-badge-affiliate {
    background: linear-gradient(135deg, #1ABC9C, #16A085);
    color: #fff;
}

.loyalty-icon {
    font-size: 18px;
}

/* Loyalty Header Badges */
.loyalty-header-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.show-loyalty-card-btn {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.show-loyalty-card-btn:hover {
    opacity: 0.8;
    background-color: transparent !important;
    color: rgb(231, 58, 65);
}

/* Loyalty Card Modal */
.loyalty-card-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: #151515;
}

.loyalty-card-modal.active {
    display: flex;
}

.loyalty-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 1;
}

.loyalty-card-wrapper {
    position: relative;
    z-index: 10000;
    width: calc(100% - 40px);
    max-width: 500px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.loyalty-card-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: #D4AF37;
    border: none;
    color: #fff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    font-weight: 700;
    padding: 0;
    flex-shrink: 0;
    z-index: 999999;
    pointer-events: auto;
}

.loyalty-card-close:hover {
    background: #C19B2E;
    transform: scale(1.05);
}

.loyalty-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.loyalty-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, -20px);
    }
}

.loyalty-card-header {
    text-align: left;
    padding: 30px 30px 20px 30px;
    background: rgba(0, 0, 0, 0.1);
}

.loyalty-card-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.loyalty-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.loyalty-card-body {
    position: relative;
    z-index: 1;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    flex: 1;
}

.loyalty-card-initials {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: left;
    color: #000;
    margin-bottom: 12px;
}

.loyalty-card-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: left;
    color: #666;
}

.loyalty-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: transparent;
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.loyalty-card-icon {
    font-size: 20px;
}

.loyalty-card-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.loyalty-card-stars {
    text-align: left;
    font-size: 28px;
    margin-bottom: 20px;
}

.loyalty-card-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.loyalty-card-dates {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.loyalty-card-date-item {
    flex: 1;
    text-align: left;
}

.date-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 600;
}

.date-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .loyalty-card-wrapper {
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .loyalty-card-header h2 {
        font-size: 20px;
    }
    
    .loyalty-card-header h3 {
        font-size: 16px;
    }
    
    .loyalty-card-initials {
        font-size: 36px;
    }
    
    .loyalty-card-name {
        font-size: 16px;
    }
    
    .loyalty-card-dates {
        flex-direction: column;
        gap: 12px;
    }
    
    .loyalty-card-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* Profile Sections */
.profile-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-size: 22px;
}

/* Info Grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-info-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.highscore-initials {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFD700;
    background: #1a1a1a;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Loyalty Section */
.loyalty-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #FFD700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}

.loyalty-section h2 {
    color: #FFD700;
    border-bottom-color: #444;
}

/* Loyalty Stage Display */
.loyalty-stage-display {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.loyalty-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.loyalty-star {
    font-size: 48px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.loyalty-star.active {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    animation: starPulse 2s infinite;
}

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

.loyalty-stage-info {
    margin-top: 20px;
}

.loyalty-stage-name {
    color: #FFD700;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.loyalty-stage-description {
    color: #ccc;
    font-size: 16px;
    margin: 0;
    font-style: italic;
}

/* Loyalty Dates */
.loyalty-dates {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #444;
}

.loyalty-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

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

.loyalty-date-label {
    color: #999;
    font-weight: 600;
    font-size: 14px;
}

.loyalty-date-value {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

/* Loyalty Status Badge */
.loyalty-status {
    text-align: center;
    margin-top: 10px;
}

.loyalty-status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loyalty-status-badge.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.loyalty-status-badge.expired {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

/* Profile Actions */
.profile-actions {
    margin-top: 30px;
    text-align: center;
}

.profile-actions .button {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.button-secondary {
    background: #666;
    color: #fff;
}

.button-secondary:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Login Required Message */
.customer-profile-login-required {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.customer-profile-login-required h2 {
    margin: 0 0 20px 0;
    color: #333;
}

.customer-profile-login-required p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
}

.customer-profile-login-required .button {
    padding: 12px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.customer-profile-login-required .button:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-edit-form .profile-form-grid,
    .profile-form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .customer-profile-container {
        padding: 15px !important;
    }
    
    .profile-header {
        flex-direction: column !important;
        text-align: center !important;
        padding: 25px 20px !important;
    }
    
    .profile-name {
        font-size: 24px !important;
    }
    
    .loyalty-star {
        font-size: 36px !important;
    }
    
    .loyalty-stage-name {
        font-size: 22px !important;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .profile-edit-form .profile-form-grid,
    .profile-form-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .profile-edit-form .form-field,
    .form-field {
        min-height: auto !important;
    }
    
    .loyalty-dates {
        padding: 15px !important;
    }
    
    .loyalty-date-item {
        flex-direction: column !important;
        gap: 5px !important;
        align-items: flex-start !important;
    }
    
    .profile-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .profile-actions .button {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 20px 15px !important;
    }
    
    .profile-edit-form .profile-form-grid,
    .profile-form-grid {
        gap: 15px !important;
    }
    
    .profile-edit-form .form-input,
    .form-input {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

/* Empty state for non-loyalty customers */
.profile-section:empty {
    display: none;
}

/* Messages */
.profile-message {
    padding: 15px 20px;
    margin: 0 0 20px 0;
    border-radius: 6px;
    font-weight: 500;
}

.profile-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.profile-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.profile-message-error p {
    margin: 5px 0;
}

/* Edit Form */
.profile-edit-form {
    width: 100%;
}

.profile-avatar-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-avatar-img {
    border-radius: 50%;
    border: 3px solid #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.avatar-upload {
    text-align: center;
}

.avatar-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #000;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload-label:hover {
    background: #FFA500;
    transform: translateY(-2px);
}

.avatar-upload-input {
    display: none;
}

.avatar-upload .description {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #ccc;
}

/* Form Grid */
.profile-edit-form .profile-form-grid,
.profile-form-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    margin-bottom: 10px !important;
}

.profile-edit-form .form-field,
.form-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 85px !important; /* Ensures consistent vertical alignment */
}

.profile-edit-form .form-field label,
.form-field label {
    font-weight: 600 !important;
    color: #000 !important; /* Changed to black for visibility */
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.profile-edit-form .form-input,
.form-input {
    padding: 14px 16px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important; /* More rounded corners */
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
    color: #333 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.profile-edit-form .form-input:focus,
.form-input:focus {
    outline: none !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1) !important;
}

.profile-edit-form .field-note,
.field-note {
    margin: 5px 0 0 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Primary Button */
.button-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 700;
    border: none;
}

.button-primary:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

/* Button spacing in actions */
.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   User Scores Section - Arcade Style
   ========================================================================== */

.profile-scores-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Arcade-style header */
.scores-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.scores-title {
    display: inline-block;
    color: #FFD700 !important;
    font-size: 36px !important;
    font-weight: 900 !important;
    font-family: 'Arcade', 'Arial Black', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    margin: 0 !important;
    padding: 15px 40px !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border: 4px solid #FFD700 !important;
    border-radius: 12px !important;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.3),
        inset 0 0 10px rgba(255, 215, 0, 0.05) !important;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 5px rgba(255, 215, 0, 0.5) !important;
    position: relative !important;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.3),
            inset 0 0 10px rgba(255, 215, 0, 0.05);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.5),
            inset 0 0 15px rgba(255, 215, 0, 0.1);
    }
}

/* No scores message */
.no-scores-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.no-scores-message p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

/* Scores list */
.user-scores-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Individual game score */
.user-score-game {
    /*background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);*/
    /*border: 2px solid rgba(255, 215, 0, 0.3);*/
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-score-game:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

/* Game header (clickable) */
.score-game-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.score-game-header:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* Rank badge */
.score-rank-badge {
    flex-shrink: 0;
}

.rank-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    font-weight: 900 !important;
    font-size: 26px !important;
    padding-bottom: 7px !important;
    line-height: normal !important;
    background: linear-gradient(135deg, #555, #333) !important;
    color: #fff !important;
    border: 3px solid #666 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    border-color: #FFD700 !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8) !important;
    border-color: #E0E0E0 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.5) !important;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D) !important;
    border-color: #D4AF37 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.5) !important;
}

/* Game info - Score as main display */
.score-game-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-game-meta {
    width: 100%;
    text-align: center;
}

.score-value {
    display: block;
    font-weight: 900;
    color: #FF6B00;
    font-size: 42px;
    line-height: 1.2;
    font-family: 'Arcade', 'Courier New', monospace;
    letter-spacing: 2px;
/*   text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 10px rgba(255, 107, 0, 0.8);
    margin-bottom: 5px;*/

}

.score-game-name {
    width: 100%;
    text-align: center;
}

.score-game-name a {
    color: #FFD700 !important;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.score-game-name a:hover {
    color: #FFA500 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.score-separator {
    display: none;
}

.score-date {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 5px;
}

/* Toggle indicator */
.score-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 215, 0, 0.7);
    font-size: 14px;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-score-game.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Expanded scores table */
.score-game-details {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.scores-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.score-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.score-row.best-score {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.score-row-rank {
    flex-shrink: 0;
}

.rank-badge-small {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    padding-bottom: 4px !important;
    line-height: normal !important;
    background: linear-gradient(135deg, #555, #333) !important;
    color: #fff !important;
    border: 2px solid #666 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
}

.rank-badge-small.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    border-color: #FFD700 !important;
    color: #000 !important;
}

.rank-badge-small.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8) !important;
    border-color: #E0E0E0 !important;
    color: #000 !important;
}

.rank-badge-small.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D) !important;
    border-color: #D4AF37 !important;
    color: #fff !important;
}

.score-row-value {
    flex: 1;
    color: #3498db;
    font-weight: 700;
    font-size: 16px;
}

.score-row-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scores-title {
        font-size: 28px !important;
        padding: 12px 30px !important;
        letter-spacing: 2px !important;
    }
    
    .score-game-header {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .score-rank-badge {
        align-self: flex-start;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .score-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .score-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .score-row-date {
        width: 100%;
        text-align: center;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .scores-title {
        font-size: 20px !important;
        padding: 10px 20px !important;
        letter-spacing: 1px !important;
    }
    
    .rank-badge {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .score-value {
        font-size: 30px;
    }
    
    .score-game-name a {
        font-size: 14px;
    }
}

/* ========================================
   LOYALTY CARD VERSION 2 (Alternative Design)
   ======================================== */

.loyalty-card-v2 {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    position: relative;
    color: #D4AF37;
    font-family: 'Outfit', sans-serif !important;
    min-height: 600px;
    width: 100%;
    border-radius: 16px;
    box-shadow: none;
    border: none;
}

.loyalty-card-v2-body {
    position: relative;
    z-index: 1;
    padding: 0px 0px 0px 0px;
    margin: 180px 0px 0px 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loyalty-card-v2-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.loyalty-card-v2-field .field-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #dfcb8b;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.loyalty-card-v2-field .field-value {
    font-size: 25px;
    font-weight: 400;
    color: #a79046;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.loyalty-card-v2-field .field-value.loyalty-level {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loyalty-v2-stars {
    margin-top: 5px;
    font-size: 24px;
    color: #D4AF37;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 2px;
}

/* Mobile Responsiveness for V2 */
@media (max-width: 480px) {
    .loyalty-card-wrapper {
        width: calc(100% - 20px);
        margin: 10px;
    }
    
    .loyalty-card-v2 {
        min-height: 550px;
        margin: 0 !important;
    }
    
    .loyalty-card-v2-body {
        padding: 0 !important;
        margin: 150px 0 0 68px !important;
        gap: 12px;
    }
    
    .loyalty-card-v2-field .field-label {
        font-size: 10px;
    }
    
    .loyalty-card-v2-field .field-value {
        font-size: 25px;
    }
    
    .loyalty-card-v2-field .field-value.loyalty-level {
        font-size: 20px;
    }
    
    .loyalty-v2-stars {
        font-size: 20px;
    }
}

