/**
 * Lottery Suggestion Modal Styles
 * 
 * Modern, accessible modal styles for lottery donation suggestions.
 */

.lottery-suggestion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lottery-suggestion-modal.show {
    opacity: 1;
    visibility: visible;
}

.lottery-suggestion-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lottery-suggestion-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    z-index: 1;
    margin: auto;
}

.lottery-suggestion-modal.show .lottery-suggestion-container {
    transform: scale(1) translateY(0);
}

/* Header */
.lottery-suggestion-header {
    position: relative;
    padding: 1.5rem 1.5rem 0;
}

.lottery-suggestion-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}

.lottery-suggestion-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.lottery-suggestion-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Body */
.lottery-suggestion-body {
    padding: 2rem 2.5rem;
    text-align: center;
}

.lottery-suggestion-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
}

.lottery-suggestion-icon svg {
    width: 48px;
    height: 48px;
}

.lottery-suggestion-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.lottery-suggestion-message {
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.lottery-suggestion-explanation {
    margin-top: 1.5rem;
}

.explanation-text {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem;
    text-align: center;
}

.lottery-suggestion-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    color: #374151;
}

.benefit-item svg {
    flex-shrink: 0;
    color: #10b981;
    margin-top: 0.125rem;
}

.benefit-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.benefit-content strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.benefit-description {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Footer */
.lottery-suggestion-footer {
    padding: 0 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lottery-suggestion-btn {
    padding: 0.9375rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    width: 100%;
}

.lottery-suggestion-btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px 0 rgba(236, 72, 153, 0.3);
}

.lottery-suggestion-btn-primary:hover {
    background: linear-gradient(135deg, #db2777 0%, #9f1239 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.lottery-suggestion-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.lottery-suggestion-btn-primary:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

.lottery-suggestion-btn-secondary {
    background-color: #ffffff;
    color: #374151;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lottery-suggestion-btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lottery-suggestion-btn-secondary:active {
    background-color: #f3f4f6;
    transform: translateY(0);
}

.lottery-suggestion-btn-secondary:focus {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .lottery-suggestion-container {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .lottery-suggestion-title {
        color: #f9fafb;
    }
    
    .lottery-suggestion-message {
        color: #d1d5db;
    }
    
    .explanation-text {
        color: #f9fafb;
    }
    
    .lottery-suggestion-benefits {
        background-color: #111827;
        border-color: #374151;
    }
    
    .benefit-item {
        color: #e5e7eb;
    }
    
    .benefit-content strong {
        color: #f9fafb;
    }
    
    .benefit-description {
        color: #d1d5db;
    }
    
    .lottery-suggestion-close {
        color: #9ca3af;
    }
    
    .lottery-suggestion-close:hover {
        background-color: #374151;
        color: #f9fafb;
    }
    
    .lottery-suggestion-btn-secondary {
        background-color: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
    
    .lottery-suggestion-btn-secondary:hover {
        background-color: #4b5563;
        border-color: #6b7280;
    }
}

body.dark-mode .lottery-suggestion-container,
[data-theme="dark"] .lottery-suggestion-container {
    background: #1f2937;
    color: #f9fafb;
}

body.dark-mode .lottery-suggestion-title,
[data-theme="dark"] .lottery-suggestion-title {
    color: #f9fafb;
}

body.dark-mode .lottery-suggestion-message,
[data-theme="dark"] .lottery-suggestion-message {
    color: #d1d5db;
}

body.dark-mode .lottery-suggestion-benefits,
[data-theme="dark"] .lottery-suggestion-benefits {
    background-color: #111827;
    border-color: #374151;
}

body.dark-mode .benefit-item,
[data-theme="dark"] .benefit-item {
    color: #e5e7eb;
}

body.dark-mode .explanation-text,
[data-theme="dark"] .explanation-text {
    color: #f9fafb;
}

body.dark-mode .benefit-content strong,
[data-theme="dark"] .benefit-content strong {
    color: #f9fafb;
}

body.dark-mode .benefit-description,
[data-theme="dark"] .benefit-description {
    color: #d1d5db;
}

body.dark-mode .lottery-suggestion-close,
[data-theme="dark"] .lottery-suggestion-close {
    color: #9ca3af;
}

body.dark-mode .lottery-suggestion-close:hover,
[data-theme="dark"] .lottery-suggestion-close:hover {
    background-color: #374151;
    color: #f9fafb;
}

body.dark-mode .lottery-suggestion-btn-secondary,
[data-theme="dark"] .lottery-suggestion-btn-secondary {
    background-color: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

body.dark-mode .lottery-suggestion-btn-secondary:hover,
[data-theme="dark"] .lottery-suggestion-btn-secondary:hover {
    background-color: #4b5563;
    border-color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
    .lottery-suggestion-modal {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
    }
    
    .lottery-suggestion-container {
        max-width: 100%;
        max-height: calc(100vh - 1.5rem);
        border-radius: 16px;
        margin: 0;
        transform: scale(0.95) translateY(0);
    }
    
    .lottery-suggestion-modal.show .lottery-suggestion-container {
        transform: scale(1) translateY(0);
    }
    
    .lottery-suggestion-body {
        padding: 1.5rem 1.25rem;
    }
    
    .lottery-suggestion-footer {
        padding: 0 1.25rem 1.5rem;
    }
    
    .lottery-suggestion-title {
        font-size: 1.5rem;
    }
    
    .lottery-suggestion-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.25rem;
    }
    
    .lottery-suggestion-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .lottery-suggestion-message {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .lottery-suggestion-explanation {
        margin-top: 1.25rem;
    }
    
    .explanation-text {
        font-size: 0.9375rem;
        margin-bottom: 0.875rem;
    }
    
    .lottery-suggestion-benefits {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
        gap: 1rem;
    }
    
    .benefit-item {
        gap: 0.875rem;
    }
    
    .benefit-content strong {
        font-size: 0.875rem;
    }
    
    .benefit-description {
        font-size: 0.8125rem;
    }
    
    .lottery-suggestion-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .lottery-suggestion-modal,
    .lottery-suggestion-container,
    .lottery-suggestion-btn {
        transition: none;
    }
}

/* Print styles */
@media print {
    .lottery-suggestion-modal {
        display: none;
    }
}
