/**
 * Bot Profile Panel Styles
 * Dedicated styling for bot profile display with lore, platforms, and tipping
 */

.bot-profile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bot-profile-backdrop.show {
    opacity: 1;
}

.bot-profile-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #6366f1;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(99, 102, 241, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.bot-profile-backdrop.show .bot-profile-modal {
    transform: scale(1);
}

.bot-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.bot-profile-header h2 {
    margin: 0;
    font-family: 'RemiliaMincho', serif;
    color: #baa674;
    font-size: 24px;
}

.bot-profile-header .close-btn {
    background: none;
    border: none;
    color: rgba(186, 166, 116, 0.6);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.bot-profile-header .close-btn:hover {
    background: rgba(186, 166, 116, 0.1);
    color: #baa674;
}

.bot-profile-body {
    padding: 24px;
}

.bot-profile-body.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
}

.loading-spinner {
    font-size: 48px;
    animation: spin 2s linear infinite;
}

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

/* Bot Info Section */
.bot-info-section {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    margin-bottom: 24px;
}

.bot-avatar-container {
    flex-shrink: 0;
}

.bot-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #6366f1;
    object-fit: cover;
}

.bot-basic-info {
    flex: 1;
}

.bot-name {
    margin: 0 0 4px 0;
    font-size: 24px;
    color: #baa674;
    font-family: 'RemiliaMincho', serif;
}

.bot-username {
    color: rgba(186, 166, 116, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.bot-badge.official {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bot-rank {
    display: inline-block;
    background: rgba(186, 166, 116, 0.1);
    color: #baa674;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-left: 8px;
}

/* Bot Details Section */
.bot-details-section {
    margin-bottom: 24px;
}

.bot-details-section > div {
    margin-bottom: 20px;
}

.bot-details-section h4 {
    margin: 0 0 8px 0;
    color: #baa674;
    font-size: 16px;
    font-family: 'RemiliaMincho', serif;
}

.bot-details-section p {
    margin: 0;
    color: rgba(186, 166, 116, 0.8);
    line-height: 1.6;
}

.bot-bio,
.bot-personality,
.bot-lore {
    padding: 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

/* Capabilities */
.capabilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.capability-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #baa674;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Platforms Section */
.bot-platforms-section h4 {
    margin: 0 0 16px 0;
    color: #baa674;
    font-size: 16px;
    font-family: 'RemiliaMincho', serif;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.platform-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.platform-card:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    transform: translateY(-2px);
}

.platform-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.platform-name {
    color: #baa674;
    font-size: 13px;
    font-weight: 500;
}

/* Wallet Section */
.bot-wallet-section {
    background: rgba(186, 166, 116, 0.05);
    border: 2px solid rgba(186, 166, 116, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.bot-wallet-section h4 {
    margin: 0 0 8px 0;
    color: #baa674;
    font-size: 18px;
    font-family: 'RemiliaMincho', serif;
}

.tip-description {
    color: rgba(186, 166, 116, 0.7);
    margin: 0 0 16px 0;
    font-size: 14px;
}

.wallet-address-box {
    margin-bottom: 16px;
}

.wallet-address-box label {
    display: block;
    color: rgba(186, 166, 116, 0.8);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-display {
    display: flex;
    gap: 8px;
    align-items: center;
}

.address-display code {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: 8px;
    color: #6366f1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.copy-btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid #6366f1;
    color: #baa674;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.tip-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tip-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.tip-btn.custom {
    background: rgba(186, 166, 116, 0.2);
    border: 1px solid #baa674;
    color: #baa674;
}

.tip-btn.custom:hover {
    background: rgba(186, 166, 116, 0.3);
}

/* Stats Section */
.bot-stats-section h4 {
    margin: 0 0 16px 0;
    color: #baa674;
    font-size: 16px;
    font-family: 'RemiliaMincho', serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #baa674;
    margin-bottom: 4px;
    font-family: 'RemiliaMincho', serif;
}

.stat-label {
    font-size: 12px;
    color: rgba(186, 166, 116, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Top Tippers */
.top-tippers {
    margin-top: 20px;
}

.top-tippers h4 {
    margin: 0 0 12px 0;
    color: #baa674;
    font-size: 16px;
    font-family: 'RemiliaMincho', serif;
}

.tippers-list {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    padding: 12px;
}

.tipper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.tipper-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.tipper-rank {
    color: rgba(186, 166, 116, 0.6);
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
}

.tipper-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.tipper-name {
    flex: 1;
    color: #baa674;
    font-size: 14px;
}

.tipper-amount {
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .bot-profile-modal {
        width: 95%;
        max-height: 95vh;
    }

    .bot-info-section {
        flex-direction: column;
        text-align: center;
    }

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

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tip-actions {
        grid-template-columns: 1fr 1fr;
    }
}
