/**
 * Heylander Auth Styling
 * Login form, profile display, and FP exchange UI
 */

/* Container */
#heylander-auth-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== LOGIN SECTION ==================== */
#heylander-login-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.heylander-login-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
    text-align: center;
}

.heylander-login-subtitle {
    color: #636e72;
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

/* Form Elements */
.heylander-form-group {
    margin-bottom: 16px;
}

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

.heylander-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.heylander-form-group input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

/* Login Button */
#heylander-login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

#heylander-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

#heylander-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Forgot Password Link */
.heylander-forgot-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #6c5ce7;
    font-size: 14px;
    cursor: pointer;
}

.heylander-forgot-link:hover {
    text-decoration: underline;
}

/* Error Message */
#heylander-error {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

/* ==================== PROFILE SECTION ==================== */
#heylander-profile-section {
    display: none;
}

/* Profile Header */
.heylander-profile-header {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.heylander-profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

#heylander-username {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

#heylander-email {
    opacity: 0.8;
    font-size: 14px;
}

/* Stats Grid */
.heylander-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.heylander-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #f1f3f4;
}

.heylander-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.heylander-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
}

.heylander-stat-label {
    font-size: 12px;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* FP Card Special Styling */
.heylander-stat-card.fp-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-color: #ffc107;
}

/* ==================== EXCHANGE SECTION ==================== */
#heylander-exchange-section {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    display: none;
}

.heylander-exchange-title {
    font-size: 18px;
    font-weight: 700;
    color: #155724;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.heylander-exchange-rate {
    font-size: 14px;
    color: #155724;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
}

/* Slider */
.heylander-exchange-slider-container {
    margin-bottom: 20px;
}

#heylander-exchange-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #28a745;
    border-radius: 4px;
    outline: none;
}

#heylander-exchange-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #28a745;
    border-radius: 50%;
    cursor: pointer;
}

/* Exchange Preview */
.heylander-exchange-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 18px;
}

.heylander-exchange-arrow {
    color: #28a745;
    font-weight: bold;
}

/* Exchange Button */
#heylander-exchange-btn {
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#heylander-exchange-btn:hover {
    background: #218838;
}

#heylander-exchange-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Wallet Info */
.heylander-wallet-info {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    font-size: 13px;
    color: #155724;
}

/* ==================== WALLET CONNECT ==================== */
#heylander-wallet-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ab9ff2 0%, #6c5ce7 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#heylander-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

#heylander-wallet-btn.connected {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

#heylander-wallet-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#heylander-wallet-status {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
}

#heylander-wallet-status a {
    color: #6c5ce7;
    text-decoration: underline;
}

#heylander-wallet-address {
    display: none;
    text-align: center;
    font-family: monospace;
    background: rgba(0,0,0,0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    cursor: pointer;
}

#heylander-wallet-address:hover {
    background: rgba(0,0,0,0.15);
}

/* Exchange Status */
#heylander-exchange-status {
    display: none;
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ==================== LOGOUT BUTTON ==================== */
#heylander-logout-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #636e72;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

#heylander-logout-btn:hover {
    background: #f8f9fa;
    border-color: #b2bec3;
}

/* ==================== PASSWORD RESET SECTION ==================== */
#heylander-reset-section {
    display: none;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.heylander-reset-title {
    font-size: 24px;
    font-weight: 700;
    color: #856404;
    margin-bottom: 8px;
    text-align: center;
}

.heylander-reset-subtitle {
    color: #856404;
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

#heylander-reset-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

#heylander-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 173, 78, 0.4);
}

#heylander-reset-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#heylander-reset-error {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

#heylander-reset-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

/* ==================== GOOGLE LOGIN BUTTON ==================== */
#heylander-google-btn {
    width: 100%;
    padding: 14px 20px;
    background: white;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

#heylander-google-btn:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.2);
}

#heylander-google-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#heylander-google-btn img {
    width: 20px;
    height: 20px;
}

/* ==================== ADMIN SECTION ==================== */
.heylander-admin-section {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    color: white;
}

.heylander-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.heylander-admin-header h3 {
    margin: 0;
    font-size: 20px;
}

.admin-refresh-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.admin-refresh-btn:hover {
    background: rgba(255,255,255,0.3);
}

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

.admin-group h4 {
    font-size: 16px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.admin-empty {
    color: rgba(255,255,255,0.6);
    font-style: italic;
    font-size: 14px;
}

.admin-exchange-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-exchange-card.pending {
    border-left: 4px solid #f1c40f;
}

.admin-exchange-card.completed {
    border-left: 4px solid #27ae60;
    opacity: 0.7;
}

.admin-exchange-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-exchange-info strong {
    font-size: 15px;
}

.admin-exchange-info span {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.admin-exchange-amount {
    color: #f1c40f !important;
    font-weight: 600;
}

.admin-exchange-wallet {
    font-family: monospace;
    cursor: pointer;
}

.admin-complete-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.admin-complete-btn:hover {
    background: #2ecc71;
}

/* ==================== ADMIN BADGE ==================== */
.heylander-admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ==================== ADMIN SUBSECTIONS ==================== */
.admin-subsection {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-subsection h4 {
    font-size: 15px;
    margin: 0 0 8px 0;
    color: white;
    border-bottom: none;
    padding-bottom: 0;
}

.admin-subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-subsection-header h4 {
    margin: 0;
}

.admin-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 12px 0;
}

/* Admin Input Row */
.admin-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.admin-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    transition: border-color 0.2s;
}

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

.admin-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

/* Admin Buttons */
.admin-action-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.admin-action-btn:hover {
    background: #5b4cdb;
}

.admin-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-danger-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
}

.admin-danger-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
}

.admin-danger-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Admin Status Messages */
.admin-status {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 12px;
    background: rgba(255,255,255,0.1);
}

.admin-status.success {
    background: rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

.admin-status.error {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* ==================== ADMIN PLAYERS TABLE ==================== */
.admin-players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.admin-players-table th,
.admin-players-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-players-table th {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-players-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.admin-players-table tr.admin-current-user {
    background: rgba(108, 92, 231, 0.2);
}

.admin-you-badge {
    font-size: 10px;
    color: #a29bfe;
    font-weight: 600;
}

.admin-table-btn {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.admin-table-btn:hover {
    background: rgba(231, 76, 60, 0.5);
    color: white;
}

.admin-players-count {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    text-align: right;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    #heylander-auth-container {
        padding: 12px;
    }

    #heylander-login-section,
    .heylander-profile-header,
    #heylander-exchange-section,
    #heylander-reset-section {
        padding: 20px;
    }

    .heylander-stats-grid {
        grid-template-columns: 1fr;
    }

    /* Admin responsive */
    .heylander-admin-section {
        padding: 16px;
    }

    .heylander-admin-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .admin-exchange-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-complete-btn {
        width: 100%;
        margin-top: 12px;
    }

    /* Admin input responsive */
    .admin-input-row {
        flex-direction: column;
    }

    .admin-action-btn {
        width: 100%;
    }

    /* Admin players table responsive */
    .admin-players-table {
        font-size: 11px;
    }

    .admin-players-table th,
    .admin-players-table td {
        padding: 8px 4px;
    }

    .admin-table-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}
