/* Custom User Leaderboard System - WordPress Theme Integration */

* {
    box-sizing: border-box;
}

/* Custom User Forms */
.custom-user-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(30, 30, 40, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.custom-user-form h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #d1d5db;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f3f4f6;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
    background: rgba(17, 24, 39, 0.95);
}

.form-group input::placeholder {
    color: #6b7280;
}

/* Buttons */
.btn-primary,
button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-primary:active,
button[type="submit"]:active {
    transform: translateY(0);
}

.custom-user-form p {
    text-align: center;
    margin-top: 1.5rem;
    color: #9ca3af;
}

.custom-user-form p a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.custom-user-form p a:hover {
    color: #c4b5fd;
}

/* Alert Messages */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    animation: slideIn 0.25s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

/* Leaderboard Styles */
.leaderboard-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(30, 30, 40, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-container h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.leaderboard-table thead th {
    background: rgba(17, 24, 39, 0.8);
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table tbody tr {
    background: rgba(17, 24, 39, 0.6);
    transition: all 0.25s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(17, 24, 39, 0.9);
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.leaderboard-table tbody tr.current-user {
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.2), transparent);
    border-left: 4px solid #a78bfa;
}

.leaderboard-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
}

.rank {
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-1 {
    font-size: 1.5rem;
}

.rank-2 {
    font-size: 1.4rem;
}

.rank-3 {
    font-size: 1.3rem;
}

.username {
    font-weight: 600;
    color: #f3f4f6;
}

.you-badge {
    color: #a78bfa;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.score {
    font-weight: 700;
    font-size: 1.1rem;
    color: #a78bfa;
}

/* Responsive */
@media (max-width: 768px) {

    .custom-user-form,
    .leaderboard-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .custom-user-form h2,
    .leaderboard-container h2 {
        font-size: 1.5rem;
    }
}