/**
 * Make Merch Button & Modal Styles
 */

/* Button Container */
.make-merch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0f0ff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0ff;
}

/* Main Button */
.make-merch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.make-merch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.make-merch-btn:active {
    transform: translateY(0);
}

.make-merch-btn.has-products {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.make-merch-btn.has-products:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.make-merch-btn svg {
    flex-shrink: 0;
}

/* Status Text */
.merch-status {
    font-size: 14px;
    color: #6b7280;
}

.merch-status.available {
    color: #059669;
    font-weight: 500;
}

/* Modal Overlay */
.merch-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.merch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal Content */
.merch-modal-content {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.merch-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.merch-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Step Content */
.merch-step {
    text-align: center;
}

.merch-step h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.merch-step p {
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Email Form */
.merch-form-group {
    text-align: left;
    margin-bottom: 20px;
}

.merch-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.merch-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.merch-form-group input:focus {
    outline: none;
    border-color: #7c3aed;
}

.merch-form-group small {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 13px;
}

/* Submit Button */
.merch-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.merch-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Processing Spinner */
.merch-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #7c3aed;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Bar */
.merch-progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.merch-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Success Icon */
.merch-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

/* Product List */
#merch-product-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    text-align: left;
}

#merch-product-list li {
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
}

#merch-product-list a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

#merch-product-list a:hover {
    text-decoration: underline;
}

.merch-email-note {
    font-size: 14px;
    color: #6b7280;
    margin-top: 16px;
}

/* Done Button */
.merch-done-btn {
    margin-top: 20px;
    padding: 12px 32px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.merch-done-btn:hover {
    background: #e5e7eb;
}

/* Error Icon */
.merch-error-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.merch-retry-btn {
    margin-top: 20px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 480px) {
    .merch-modal-content {
        padding: 24px;
    }

    .merch-step h2 {
        font-size: 20px;
    }

    .make-merch-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
