/* Stripe Donations Page Styles - Conversion Optimized Version */

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Container */
.donations-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section - Condensed */
.donations-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.donations-hero h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
}

.donations-hero p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Video Section */
.video-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    background: #1f2937;
}

.youtube-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.youtube-video-container img.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* Fallback when thumbnail doesn't load */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    z-index: 1;
}

.video-fallback-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.9;
}

.video-fallback-text .play-icon {
    font-size: 2rem;
}

.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-play-button:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-left: 24px solid white;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

/* Donation Form Section */
.donation-form-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    margin-bottom: 30px;
}

.donation-header {
    margin-bottom: 25px;
}

.donation-header h2 {
    color: white;
    font-size: 1.75rem;
    margin: 0 0 8px 0;
}

.donation-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

/* Social Proof Badge */
.social-proof-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 50px;
    margin: 0 auto 25px;
    max-width: fit-content;
    font-size: 0.9rem;
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-proof-item .sp-icon {
    font-size: 1.1rem;
}

/* Amount Selection - Card Style */
.amount-selection {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 0 0 20px 0;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
}

.amount-btn .btn-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.amount-btn .btn-description {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1.2;
}

.amount-btn:hover,
.amount-btn:active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.amount-btn.selected {
    background: white;
    color: #2563eb;
    border-color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.amount-btn.selected .btn-description {
    opacity: 1;
}

/* Custom Amount */
.custom-amount {
    margin: 0 auto 20px;
    max-width: 200px;
}

.custom-amount input {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-amount input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.custom-amount input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.3);
}

.custom-amount input[type="number"]::-webkit-inner-spin-button,
.custom-amount input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Selected Amount Display */
.selected-amount {
    margin: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Donate Button */
.donation-actions {
    margin: 20px 0 15px;
}

.stripe-donate-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    min-height: 56px;
    touch-action: manipulation;
    display: inline-block;
    min-width: 250px;
}

.stripe-donate-btn:hover,
.stripe-donate-btn:active {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.stripe-donate-btn:disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.stripe-donate-btn.loading {
    opacity: 0.8;
    cursor: wait;
}

/* Security Badge */
.security-badge {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
    flex-wrap: wrap;
}

/* Live Activity Ticker */
.live-activity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

.live-activity span {
    transition: opacity 0.3s ease;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.2); 
    }
}

/* Stripe Payment Form */
.stripe-payment-form {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stripe-payment-form h4 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    text-align: center;
}

#stripe-elements-container {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    min-height: 50px;
}

#payment-amount-display {
    animation: fadeIn 0.3s ease-in;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stripe-submit-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 48px;
    touch-action: manipulation;
}

.stripe-submit-btn:hover,
.stripe-submit-btn:active {
    background: #059669;
}

.stripe-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Thank You Message */
.donation-thank-you {
    display: none;
    text-align: center;
    padding: 30px 20px;
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 12px;
    margin-top: 20px;
    color: #065f46;
}

.donation-thank-you h3 {
    margin: 0 0 15px 0;
    color: #065f46;
    font-size: 1.5rem;
}

.donation-thank-you p {
    margin: 0;
    color: #1f2937;
    line-height: 1.5;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.content-section h2 {
    color: #1e40af;
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    text-align: center;
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 20px 15px;
    border-radius: 10px;
}

.stat-item:nth-child(1) {
    background: #eff6ff;
}

.stat-item:nth-child(2) {
    background: #f0fdf4;
}

.stat-item:nth-child(3) {
    background: #fef3f2;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.stat-item:nth-child(1) h3 {
    color: #2563eb;
}

.stat-item:nth-child(2) h3 {
    color: #10b981;
}

.stat-item:nth-child(3) h3 {
    color: #ef4444;
}

.stat-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Reviews Section */
.reviews-header {
    text-align: center;
    margin-bottom: 25px;
}

.reviews-header h2 {
    margin-bottom: 15px;
}

.trustpilot-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00b67a;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.trustpilot-badge .tp-stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.review-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.review-stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0 0 12px 0;
    line-height: 1.5;
    font-style: italic;
}

.review-author {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

.view-all-reviews {
    display: block;
    text-align: center;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    transition: color 0.3s;
}

.view-all-reviews:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* FAQ Section - Using specific selectors to avoid conflicts */
.faq-section .faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-section .faq-item {
    border-bottom: 1px solid #e5e7eb;
}

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

.faq-section .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.3s;
}

.faq-section .faq-question:hover {
    color: #2563eb;
}

.faq-section .faq-toggle {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: transform 0.3s;
    font-weight: 300;
}

.faq-section .faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-section .faq-answer {
    display: none !important;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.faq-section .faq-item.open .faq-answer {
    display: block !important;
    padding-bottom: 18px;
}

.faq-section .faq-answer p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-section .faq-answer a {
    color: #2563eb;
}

/* Sticky Mobile Donate Button */
.sticky-donate {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.sticky-donate button {
    width: 100%;
    padding: 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.sticky-donate button:hover,
.sticky-donate button:active {
    background: #059669;
}

/* Animation */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .donations-container {
        padding: 15px;
    }
    
    .donations-hero {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .donations-hero h1 {
        font-size: 1.75rem;
    }
    
    .video-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .donation-form-section {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .donation-header h2 {
        font-size: 1.5rem;
    }
    
    .social-proof-badge {
        flex-direction: column;
        gap: 8px;
        padding: 10px 15px;
    }
    
    .amount-selection {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .amount-btn {
        padding: 12px 8px;
    }
    
    .amount-btn .btn-amount {
        font-size: 1.1rem;
    }
    
    .amount-btn .btn-description {
        font-size: 0.65rem;
    }
    
    .stripe-donate-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .content-section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sticky-donate {
        display: block;
    }
    
    /* Add padding to bottom for sticky button */
    .donations-container {
        padding-bottom: 100px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .donations-container {
        padding: 10px;
    }
    
    .donations-hero {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .donations-hero h1 {
        font-size: 1.5rem;
    }
    
    .donations-hero p {
        font-size: 1rem;
    }
    
    .video-section {
        padding: 10px;
        border-radius: 10px;
    }
    
    .custom-play-button {
        width: 60px;
        height: 60px;
    }
    
    .custom-play-button::after {
        border-left-width: 18px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }
    
    .donation-form-section {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .amount-selection {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amount-selection .amount-btn:nth-child(5) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .amount-btn .btn-amount {
        font-size: 1rem;
    }
    
    .amount-btn .btn-description {
        font-size: 0.6rem;
    }
    
    .stripe-donate-btn {
        padding: 16px 30px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .security-badge {
        flex-direction: column;
        gap: 5px;
    }
    
    .content-section {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .stat-item h3 {
        font-size: 1.75rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .faq-question {
        font-size: 0.95rem;
    }
}

/* Very small devices (360px and below) */
@media (max-width: 360px) {
    .donations-hero h1 {
        font-size: 1.3rem;
    }
    
    .donations-hero p {
        font-size: 0.9rem;
    }
    
    .donation-header h2 {
        font-size: 1.3rem;
    }
    
    .amount-btn {
        padding: 10px 6px;
    }
    
    .amount-btn .btn-amount {
        font-size: 0.95rem;
    }
    
    .amount-btn .btn-description {
        display: none;
    }
    
    .stripe-donate-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .live-activity {
        font-size: 0.8rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .donations-hero {
        padding: 20px;
    }
    
    .donation-form-section {
        padding: 20px;
    }
    
    .content-section {
        padding: 20px;
    }
}

/* ================================
   CHANGE AMOUNT BUTTON STYLES
   (Used by stripe-donations.js)
   ================================ */

#change-amount-btn {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

#change-amount-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}
