/* Premium Account & Auth Theme Shared Styles */

/* 1. Global Variables & Dark Theme Roots */
:root {
    --bs-body-bg: #070b1e;
    --bs-body-color: #f8f9fa;
    --bs-card-bg: rgba(13, 17, 45, 0.6);
    --bs-card-border-color: rgba(255, 255, 255, 0.08);
    --bs-card-color: #f8f9fa;
    --bs-card-cap-bg: rgba(255, 255, 255, 0.05);
}

/* 2. Body & Typography Overrides */
html, body {
    background-color: var(--bs-body-bg) !important;
    background: radial-gradient(circle at center, #1a237e 0%, #070b1e 80%) !important;
    background-attachment: fixed !important;
    color: var(--bs-body-color) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* 3. Helper Classes */
.text-gold { color: #ffb200 !important; }
.bg-transparent { background: transparent !important; }

/* 4. Toolbar Customization */
#ccm-toolbar {
    background: rgba(7, 11, 30, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

#ccm-toolbar li.ccm-logo {
    display: none !important;
}

#ccm-toolbar li a {
    color: rgba(255,255,255,0.7) !important;
}

#ccm-toolbar li a:hover {
    color: #ffb200 !important;
    background: rgba(255,255,255,0.05) !important;
}

/* 5. Wrappers & Glassmorphism Cards */
.premium-profile-wrapper, 
.premium-login-wrapper {
    width: 100%;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically if height allows */
}

/* Account pages might rely on normal flow, but login/register use full height flex */
.premium-login-wrapper {
    min-height: 100vh;
}

.profile-page-content-wrapper,
.login-page-content-wrapper,
.register-page-content-wrapper {
    background: rgba(13, 17, 45, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    width: 100%;
    max-width: 600px; /* Default width */
    margin: 0 auto;
    animation: fadeInUp 0.7s ease-out;
}

/* Make profile edit wider if needed */
.premium-profile-wrapper .container {
    max-width: 900px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* 6. Form Elements */
.form-label, label {
    color: #ffffff !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 800;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.form-control, .form-select, textarea {
    background-color: rgba(9, 13, 33, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus, textarea:focus {
    background-color: rgba(9, 13, 33, 0.9) !important;
    border-color: #ffb200 !important;
    box-shadow: 0 0 0 4px rgba(255, 178, 0, 0.15) !important;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

/* 7. Input Groups */
.input-group-text, .input-group-addon {
    background-color: rgba(9, 13, 33, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    border-right: none !important;
    color: #fff !important;
    fill: #fff !important;
}

/* Social link addon tweaks */
div.ccm-social-link-attribute .input-prepend .add-on {
     background: transparent;
}
.ccm-social-link-service-add-on-wrapper {
    display: flex;
    align-items: center;
    gap: 1em;
}
.ccm-social-link-service-add-on-wrapper input {
    flex: 1;
}

/* 8. Buttons */
.btn-primary {
    background: linear-gradient(45deg, #ffb200, #ffca2c) !important;
    border: none !important;
    color: #000 !important;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 178, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 178, 0, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2) !important;
}

.btn-danger {
    background: linear-gradient(45deg, #d32f2f, #f44336) !important;
}

/* 9. Sidebar Navigation */
.ccm-page-account-navigation {
    background-color: rgba(13, 17, 45, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    padding: 20px !important;
    margin-bottom: 20px;
    list-style: none;
}

.ccm-page-account-navigation a {
    color: rgba(255, 255, 255, 0.8) !important;
    display: block;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s;
}

.ccm-page-account-navigation a:hover,
.ccm-page-account-navigation li.active a {
    color: #ffb200 !important;
    font-weight: 700;
}

.ccm-page-account-navigation h5, 
.ccm-page-account-navigation .list-group-item {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
}

/* 10. Page Titles */
h1.page-title, .page-title, legend {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

/* 11. Fieldsets */
fieldset {
    border: none;
    padding: 0;
    margin-bottom: 3rem;
    background: transparent;
}
legend {
    color: #ffb200 !important;
    font-weight: 800;
    border-bottom: 2px solid rgba(255, 178, 0, 0.2);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* 12. Helper Text */
.help-block, .text-muted, .form-text {
    color: rgba(255,255,255,0.5) !important;
    font-style: italic;
}
.ccm-ui .help-block {
    background-color: rgba(9, 13, 33, 0.6) !important;
}

/* 13. Avatar / Vue Cropper specific */
.ccm-avatar-cropper {
    background: rgba(0,0,0,0.2) !important;
    border: 2px dashed rgba(255, 178, 0, 0.4) !important;
    border-radius: 12px;
    padding: 40px !important;
}
.ccm-avatar-cropper:hover {
    background: rgba(255, 178, 0, 0.05) !important;
    border-color: #ffb200 !important;
}
.ccm-avatar-cropper p, .ccm-avatar-cropper span {
    color: #fff !important;
}
.ccm-avatar-cropper i, .ccm-avatar-cropper svg {
    color: rgba(255,255,255,0.5);
}

/* Logo */
.page-logo, .login-logo {
    max-width: 120px; 
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 15px rgba(255, 178, 0, 0.4));
}

.iconDiscord path {
    fill: black;
}

/* Hide the 'Welcome' and 'Messages' links from the account navigation menu */
.ccm-page-account-navigation a[href*="/account/welcome"],
.ccm-page-account-navigation li:has(a[href*="/account/welcome"]),
.ccm-page-account-navigation a[href*="/account/messages"],
.ccm-page-account-navigation li:has(a[href*="/account/messages"]) {
    display: none !important;
}

div.main-container-inner {
    margin: 0;
    padding: 0;
}
.body-page-login #ccm-toolbar {
    display: none;
}