/**
 * Save Your Progress / Claim Account Component Styles
 */

/* Overlay backdrop */
.claim-account-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.claim-account-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.claim-account-modal {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.claim-account-overlay.visible .claim-account-modal {
    transform: scale(1) translateY(0);
}

/* Header */
.claim-account-header {
    text-align: center;
    margin-bottom: 24px;
}

.claim-account-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.claim-account-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.claim-account-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.claim-account-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* Form */
.claim-account-form {
    margin-bottom: 20px;
}

.claim-account-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.claim-account-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.claim-account-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.claim-account-input:focus {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.claim-account-input.error {
    border-color: #ef4444;
}

/* Error message */
.claim-account-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.claim-account-error.visible {
    display: block;
}

/* Submit button */
.claim-account-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.claim-account-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.claim-account-submit:active:not(:disabled) {
    transform: translateY(0);
}

.claim-account-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state */
.claim-account-submit.loading {
    color: transparent;
    position: relative;
}

.claim-account-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Dismiss link */
.claim-account-dismiss {
    text-align: center;
    margin-top: 16px;
}

.claim-account-dismiss a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.claim-account-dismiss a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Success state */
.claim-account-success {
    text-align: center;
    display: none;
}

.claim-account-success.visible {
    display: block;
}

.claim-account-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.claim-account-success-icon svg {
    width: 36px;
    height: 36px;
    fill: white;
}

.claim-account-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.claim-account-success-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
    line-height: 1.5;
}

.claim-account-success-btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.claim-account-success-btn:hover {
    transform: translateY(-2px);
}

/* Collision state */
.claim-account-collision {
    text-align: center;
    display: none;
}

.claim-account-collision.visible {
    display: block;
}

.claim-account-collision-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.claim-account-collision-icon svg {
    width: 36px;
    height: 36px;
    fill: white;
}

.claim-account-collision-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.claim-account-collision-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Toast notification (subtle prompt) */
.claim-account-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    max-width: 90%;
    width: 360px;
}

.claim-account-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.claim-account-toast-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.claim-account-toast-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.claim-account-toast-content {
    flex: 1;
    min-width: 0;
}

.claim-account-toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
}

.claim-account-toast-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.claim-account-toast-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.claim-account-toast-btn:hover {
    transform: scale(1.05);
}

.claim-account-toast-close {
    padding: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.claim-account-toast-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

    .claim-account-title {
        font-size: 20px;
    }

    .claim-account-toast {
        width: calc(100% - 32px);
        bottom: 80px;
    }
}
