/* Unlocking Treasures Loyalty Public Styles */

.ut-loyalty-display {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.loyalty-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #6B8CAE 0%, #5A7A9A 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(107, 140, 174, 0.25);
}

.loyalty-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.loyalty-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.ut-icon-gift:before {
    content: "🎁";
    font-size: 24px;
}

/* No purchases message */
.no-purchases-message {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border: 2px dashed #e1e8ed;
}

.message-icon {
    margin-bottom: 20px;
    color: #95a5a6;
}

.no-purchases-message h4 {
    color: #6B8CAE;
    font-size: 22px;
    margin: 0 0 15px 0;
    font-weight: 300;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.no-purchases-message p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Loyalty categories */
.loyalty-categories {
    display: grid;
    gap: 30px;
}

.loyalty-category {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.loyalty-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.loyalty-category.can-claim {
    border-color: #27ae60;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.category-header h4 {
    margin: 0;
    color: #6B8CAE;
    font-size: 22px;
    font-weight: 300;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.reward-ready {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Progress container */
.progress-container {
    margin-bottom: 25px;
}

.progress-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
}

.progress-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 90px;
    min-width: 90px;
}

.progress-icon svg {
    transition: all 0.3s ease;
    width: 80px;
    height: 80px;
}

.progress-icon .ut-logo {
    width: 90px;
    height: 90px;
    background-image: url('../images/unlocking-treasures-logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: 3px solid #6B8CAE;
    box-shadow: 0 4px 15px rgba(107, 140, 174, 0.3);
    transition: all 0.3s ease;
}

.progress-icon.completed .ut-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(107, 140, 174, 0.4);
}

.progress-icon .empty-circle svg {
    width: 90px;
    height: 90px;
}

.progress-icon.pending .empty-circle {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.progress-icon.pending:hover .empty-circle {
    opacity: 0.8;
    transform: scale(1.02);
}

.progress-icon.filled svg {
    color: #6B8CAE;
    filter: drop-shadow(0 2px 4px rgba(107, 140, 174, 0.3));
}

.progress-icon.empty svg {
    color: #bdc3c7;
}

.icon-number {
    font-size: 12px;
    font-weight: bold;
    color: #34495e;
}

.reward-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    color: white;
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.reward-text {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive design for progress icons */
@media (max-width: 768px) {
    .progress-icons {
        gap: 8px;
        padding: 10px;
    }
    
    .progress-icon {
        width: 70px;
        min-width: 70px;
    }
    
    .progress-icon .ut-logo {
        width: 70px;
        height: 70px;
    }
    
    .progress-icon .empty-circle svg {
        width: 70px;
        height: 70px;
    }
    
    .progress-icon svg {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .progress-icons {
        gap: 6px;
    }
    
    .progress-icon {
        width: 60px;
        min-width: 60px;
    }
    
    .progress-icon .ut-logo {
        width: 60px;
        height: 60px;
    }
    
    .progress-icon .empty-circle svg {
        width: 60px;
        height: 60px;
    }
    
    .progress-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* Progress bar */
.progress-bar {
    background: #ecf0f1;
    border-radius: 10px;
    height: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #6B8CAE, #5A7A9A);
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

.progress-message {
    text-align: center;
    color: #34495e;
    font-size: 16px;
    font-weight: 500;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* Claim reward section */
.claim-reward-section {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8fff9, #eafaf1);
    border-radius: 12px;
    border: 2px solid #27ae60;
}

.claim-reward-section p:first-child {
    font-size: 18px;
    color: #27ae60;
    margin-bottom: 20px;
}

.claim-reward-btn, .booking-redirect-btn {
    background: linear-gradient(135deg, #6B8CAE, #5A7A9A);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(107, 140, 174, 0.3);
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
}

.claim-reward-btn:hover, .booking-redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 140, 174, 0.4);
    background: linear-gradient(135deg, #5A7A9A, #4A6A8A);
    text-decoration: none;
    color: white;
}

.redeem-reward-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.redeem-reward-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.admin-reward-controls {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.admin-reward-controls h5 {
    margin: 0 0 10px 0;
    color: #856404;
}

.claim-note {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 15px;
    font-style: italic;
}

.reward-details {
    font-size: 13px;
    color: #6B8CAE;
    margin: 5px 0 10px 0;
    font-style: italic;
    font-weight: 500;
}

.redemption-options {
    text-align: center;
    margin: 15px 0;
}

.redemption-instructions {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6B8CAE;
}

.redemption-instructions em {
    color: #e74c3c;
    font-weight: 600;
}

/* Admin Section */
.admin-section {
    background: #f8f9fa;
    border: 2px solid #6B8CAE;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-form-title {
    color: #6B8CAE;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.admin-purchase-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6B8CAE;
    box-shadow: 0 0 0 3px rgba(107, 140, 174, 0.1);
}

.admin-submit-btn {
    background: linear-gradient(135deg, #6B8CAE 0%, #5a7a9a 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.admin-submit-btn:hover {
    background: linear-gradient(135deg, #5a7a9a 0%, #4a6a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 140, 174, 0.3);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .admin-section {
        padding: 15px;
    }
}

/* Success Modal */
.success-modal {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    margin-bottom: 20px;
    color: #27ae60;
}

.success-modal h3 {
    color: #27ae60;
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #e74c3c;
}

.contact-info p {
    margin: 5px 0;
    color: #34495e;
}

/* Loyalty widget (for sidebar/footer) */
.ut-loyalty-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ut-loyalty-widget h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.loyalty-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.category-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.category-name {
    font-weight: 500;
    color: #34495e;
}

.progress {
    font-weight: bold;
    color: #6B8CAE;
}

.reward-ready {
    font-size: 16px;
}

.view-full-loyalty {
    display: inline-block;
    padding: 8px 16px;
    background: #6B8CAE;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.view-full-loyalty:hover {
    background: #5A7A9A;
    color: white;
}

/* Login message */
.ut-loyalty-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e1e8ed;
    color: #7f8c8d;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .ut-loyalty-display {
        padding: 10px;
    }
    
    .loyalty-header {
        padding: 20px;
    }
    
    .loyalty-header h3 {
        font-size: 24px;
        flex-direction: column;
        gap: 5px;
    }
    
    .loyalty-category {
        padding: 20px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .progress-icons {
        gap: 10px;
    }
    
    .progress-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .reward-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .claim-reward-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .no-purchases-message {
        padding: 40px 20px;
    }
    
    .no-purchases-message h4 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .progress-icons {
        gap: 8px;
    }
    
    .progress-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .icon-number {
        font-size: 10px;
    }
    
    .reward-icon {
        padding: 8px;
    }
    
    .reward-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .reward-text {
        font-size: 8px;
    }
}
