﻿/* user.css for default_br_pro theme */

.brpro-user-layout {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    align-items: flex-start;
}

/* Sidebar */
.brpro-user-sidebar {
    width: 260px;
    background: var(--brpro-panel);
    border-radius: var(--brpro-radius);
    box-shadow: var(--brpro-shadow-soft);
    padding: 16px 0;
    flex-shrink: 0;
}

.brpro-user-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--brpro-text);
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--brpro-border);
    margin-bottom: 8px;
}

.brpro-user-nav {
    display: flex;
    flex-direction: column;
}

.brpro-user-nav-item {
    padding: 14px 24px;
    font-size: 15px;
    color: var(--brpro-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brpro-user-nav-item:hover {
    background: var(--brpro-bg);
    color: var(--brpro-accent);
}

.brpro-user-nav-item.active {
    color: var(--brpro-accent);
    background: rgba(232, 93, 4, 0.05);
    border-right: 3px solid var(--brpro-accent);
    font-weight: 600;
}

.brpro-user-nav-divider {
    height: 1px;
    background: var(--brpro-border);
    margin: 8px 24px;
}

.brpro-user-nav-item.logout {
    color: #ff4747;
}

.brpro-user-nav-item.logout:hover {
    background: rgba(255, 71, 71, 0.05);
    color: #ff4747;
}

/* Main Content */
.brpro-user-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* VIP Card */
.brpro-vip-card {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: var(--brpro-radius);
    padding: 32px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.brpro-vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1));
    transform: skewX(-45deg);
}

.brpro-vip-info-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.brpro-user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brpro-user-avatar-large svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.brpro-user-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brpro-user-name-large {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brpro-user-id {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.brpro-vip-status {
    font-size: 14px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brpro-vip-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.brpro-vip-action {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.brpro-btn-vip {
    background: linear-gradient(90deg, #ffd700, #ffb300);
    color: #4a3500;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.brpro-btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Code Activation Panel */
.brpro-activation-panel {
    background: var(--brpro-panel);
    border-radius: var(--brpro-radius);
    box-shadow: var(--brpro-shadow-soft);
    padding: 32px;
}

.brpro-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--brpro-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brpro-activation-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
}

.brpro-activation-input {
    flex: 1;
    padding: 12px 16px;
    height: 44px;
    border: 1px solid var(--brpro-border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--brpro-bg);
    color: var(--brpro-text);
    outline: none;
    transition: border-color 0.2s;
}

.brpro-activation-input:focus {
    border-color: var(--brpro-accent);
}

.brpro-btn-activate {
    height: 44px;
    padding: 0 24px;
    background: var(--brpro-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.brpro-btn-activate:hover {
    background: var(--brpro-accent-2);
}

.brpro-activation-tip {
    font-size: 13px;
    color: var(--brpro-muted);
    margin-top: 12px;
}

/* Service Info */
.brpro-service-info {
    background: var(--brpro-panel);
    border-radius: var(--brpro-radius);
    box-shadow: var(--brpro-shadow-soft);
    padding: 24px;
    font-size: 14px;
    color: var(--brpro-muted);
    line-height: 1.6;
}

.brpro-service-info a {
    color: var(--brpro-accent);
    text-decoration: none;
    font-weight: 500;
}

.brpro-service-info a:hover {
    text-decoration: underline;
}

/* Mobile Action Buttons (Logout/Login) */
.brpro-user-actions-mobile {
    display: none;
}

.brpro-mobile-menu {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .brpro-user-layout {
        flex-direction: column;
        margin-top: 16px;
    }

    .brpro-user-sidebar {
        display: none; /* Hide sidebar on mobile, show menu items differently */
    }

    .brpro-user-actions-mobile {
        display: block;
        margin-top: 24px;
    }

    .brpro-btn-mobile-logout {
        width: 100%;
        height: 48px;
        background: #fff;
        border: 1px solid var(--brpro-border);
        color: var(--brpro-text);
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 24px;
    }

    .brpro-btn-mobile-logout.login {
        background: var(--brpro-accent);
        color: #fff;
        border: none;
    }

    .brpro-vip-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 20px;
        order: 1;
    }

    .brpro-user-avatar-large {
        flex: 0 0 80px;
        min-width: 80px;
        min-height: 80px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
    }

    .brpro-vip-action {
        width: 100%;
        align-items: center;
    }

    .brpro-btn-vip {
        width: 100%;
        text-align: center;
    }

    .brpro-activation-form {
        flex-direction: column;
    }

    .brpro-activation-input {
        height: 52px;
        font-size: 16px;
    }

    .brpro-btn-activate {
        width: 100%;
    }

    /* Mobile Menu List */
    .brpro-mobile-menu {
        display: block;
        background: var(--brpro-panel);
        border-radius: var(--brpro-radius);
        overflow: hidden;
        margin-bottom: 24px;
        box-shadow: var(--brpro-shadow-soft);
        order: 2;
    }

    .brpro-activation-panel {
        order: 3;
    }

    .brpro-service-info {
        order: 4;
    }

    .brpro-user-actions-mobile {
        display: block;
        margin-top: 24px;
        order: 5;
    }

    .brpro-mobile-menu-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        color: var(--brpro-text);
        font-size: 16px;
        text-decoration: none;
        border-bottom: 1px solid var(--brpro-border);
    }

    .brpro-mobile-menu-item:last-child {
        border-bottom: none;
    }

    .brpro-mobile-menu-item svg {
        fill: var(--brpro-muted);
        width: 16px;
        height: 16px;
    }
}
