/* GiftPet Public Styles */

/* Donation Container */
.giftpet-donation-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.giftpet-donation-header {
    background: linear-gradient(135deg, #fef7f0 0%, #f0fdfa 100%);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.giftpet-logo {
    height: 60px;
    margin-bottom: 20px;
}

.giftpet-title {
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.giftpet-event-name {
    color: #6b7280;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* Campaign Info */
.giftpet-campaign-info {
    padding: 30px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.campaign-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.campaign-name {
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.campaign-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

/* Donation Form */
.giftpet-donation-form {
    padding: 40px 30px;
}

.suggested-amount {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fef7f0 0%, #fed7aa 100%);
    border-radius: 12px;
    border: 2px solid #f97316;
}

.amount-label {
    display: block;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    color: #92400e;
    font-size: 36px;
    font-weight: 800;
}

/* Donate Button */
.giftpet-donate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.giftpet-donate-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.giftpet-donate-button .button-icon {
    height: 24px;
    margin-right: 12px;
}

/* Security Info */
.giftpet-security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f0fdfa;
    border-radius: 8px;
    color: #065f46;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.security-icon {
    height: 20px;
    margin-right: 8px;
}

/* Footer */
.giftpet-footer {
    padding: 20px 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.giftpet-footer p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Progress Container */
.giftpet-progress-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.progress-header {
    padding: 25px;
    background: linear-gradient(135deg, #fef7f0 0%, #f0fdfa 100%);
    border-bottom: 1px solid #e5e7eb;
}

.progress-header h3 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.progress-meta {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Progress Stats */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e7eb;
}

.stat-item {
    background: white;
    padding: 20px 15px;
    text-align: center;
}

.stat-item .stat-value {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-item .stat-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar */
.progress-bar-container {
    padding: 25px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #10b981 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* Progress Details */
.progress-details {
    padding: 0 25px 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

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

.detail-item strong {
    color: #374151;
    font-weight: 600;
}

/* Thank You Page */
.giftpet-thank-you-page {
    padding: 60px 20px;
    background: linear-gradient(135deg, #fef7f0 0%, #f0fdfa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-content {
    max-width: 600px;
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.thank-you-content .giftpet-logo {
    height: 80px;
    margin-bottom: 30px;
}

.thank-you-content h1 {
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Donation Summary */
.donation-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.donation-summary h2 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
}

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

.summary-item strong {
    color: #374151;
    font-weight: 600;
}

/* Thank You Message */
.thank-you-message {
    margin: 30px 0;
}

.thank-you-message p {
    color: #6b7280;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* Social Share */
.social-share {
    margin-top: 40px;
}

.social-share h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-buttons a {
    padding: 12px 20px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-buttons a:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-whatsapp:hover {
    background: #25d366;
    color: white;
}

/* Error Messages */
.giftpet-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    font-weight: 500;
    text-align: center;
    margin: 20px 0;
}

/* Loading States */
.giftpet-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

.giftpet-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .giftpet-donation-container {
        margin: 20px;
        border-radius: 12px;
    }
    
    .giftpet-donation-header {
        padding: 30px 20px;
    }
    
    .giftpet-title {
        font-size: 24px;
    }
    
    .giftpet-event-name {
        font-size: 16px;
    }
    
    .giftpet-campaign-info,
    .giftpet-donation-form {
        padding: 25px 20px;
    }
    
    .campaign-name {
        font-size: 18px;
    }
    
    .amount-value {
        font-size: 28px;
    }
    
    .giftpet-donate-button {
        font-size: 16px;
        padding: 16px 25px;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .thank-you-content {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .thank-you-content h1 {
        font-size: 26px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons a {
        width: 200px;
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .giftpet-donate-button,
    .progress-fill,
    .share-buttons a {
        transition: none;
    }
    
    .giftpet-loading::before {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .giftpet-donation-container {
        border: 2px solid #000;
    }
    
    .giftpet-donate-button {
        border: 2px solid #000;
    }
    
    .progress-bar {
        border: 1px solid #000;
    }
}
