/* Spoed Coins Public Styles */

/* Balance Display for Logged-in Users */
.spoed-coins-balance-display {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spoed-coins-balance-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.spoed-coins-balance-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.coins-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.coin-icon {
    font-size: 1.8em;
    animation: rotate 4s linear infinite;
}

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

.balance-title {
    font-size: 1.2em;
    font-weight: 600;
}

.coins-amount {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.coins-value {
    font-size: 1.3em;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 5px;
}

.coins-info {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Status Checker */
.spoed-coins-status-checker {
    max-width: 500px;
    margin: 30px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.checker-header {
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    padding: 30px 25px 25px;
    text-align: center;
    border-bottom: 1px solid #FECACA;
}

.checker-header h3 {
    font-size: 1.6em;
    color: #DC2626;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.checker-header p {
    color: #6B7280;
    margin: 0;
    font-size: 1em;
}

.status-checker-form {
    padding: 30px 25px 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #D1D5DB;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #F9FAFB;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #DC2626;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.check-btn {
    width: 100%;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

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

.check-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.status-result {
    margin: 20px 25px 0;
    padding: 0;
    border-radius: 12px;
    min-height: 0;
    transition: all 0.3s ease;
}

.status-result:not(:empty) {
    padding: 20px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    min-height: 60px;
}

.result-success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border-color: #6EE7B7;
    color: #065F46;
}

.result-error {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-color: #FCA5A5;
    color: #991B1B;
}

.program-info {
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    padding: 25px;
    border-top: 1px solid #E5E7EB;
}

.program-info h4 {
    color: #DC2626;
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.program-info p {
    color: #374151;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.program-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.program-info li {
    color: #4B5563;
    margin-bottom: 8px;
    padding-left: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-spinner {
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .spoed-coins-status-checker {
        margin: 20px 15px;
        max-width: none;
    }

    .checker-header {
        padding: 25px 20px 20px;
    }

    .status-checker-form {
        padding: 25px 20px 20px;
    }

    .program-info {
        padding: 20px;
    }

    .spoed-coins-balance-display {
        margin: 15px;
        padding: 20px;
    }

    .coins-amount {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .checker-header h3 {
        font-size: 1.4em;
    }

    .coins-amount {
        font-size: 2.5em;
    }

    .form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Animation for result appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-result:not(:empty) {
    animation: fadeInUp 0.4s ease-out;
}

/* Custom styling for balance result */
.spoed-coins-status-display {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
}

.spoed-coins-status-display h4 {
    color: #DC2626;
    font-size: 1.3em;
    margin: 0 0 15px 0;
}

.spoed-coins-status-display .coins-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.spoed-coins-status-display .coin-icon {
    font-size: 2.5em;
}

.spoed-coins-status-display .balance-number {
    font-size: 3em;
    font-weight: 700;
    color: #DC2626;
}

.spoed-coins-status-display .balance-label {
    font-size: 1.1em;
    color: #6B7280;
}

.spoed-coins-status-display .balance-value {
    font-size: 1.3em;
    color: #059669;
    font-weight: 600;
    margin-top: 8px;
}