/* Dragon89 Premium UI Redesign */

/* ============================================
   PREMIUM LOGIN MODAL REDESIGN
   ============================================ */

/* The full-viewport modal container stays a transparent positioner —
   the standard .modal-backdrop element is what dims the page. The
   Dragon89 art lives on the popup CARD itself (see list.blade.php
   inline overrides for the .modal-base rules). */
#login-modal {
    background: transparent !important;
}

#login-modal .modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 40px auto;
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#login-modal .modal-content {
    background: transparent;
    border: none;
    border-radius: 28px;
    overflow: visible;
}

#login-modal .modal-base {
    background: linear-gradient(165deg, rgba(30, 30, 50, 0.98) 0%, rgba(15, 15, 25, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 45px 40px;
    position: relative;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7),
                0 0 60px rgba(16, 185, 129, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

#login-modal .modal-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #8b5cf6, #f59e0b, #ef4444, #10b981);
    background-size: 400% 100%;
    animation: gradient-shift 4s linear infinite;
}

#login-modal .modal-base::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: ambientGlow 8s ease-in-out infinite;
}

@keyframes ambientGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* Login Hero Image - Hidden */
#login-modal .login-hero-image {
    display: none;
}

#login-modal .modal-base__header-decor {
    text-align: center;
    margin-bottom: 25px;
}

#login-modal .modal-base__decor-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
}

#login-modal .modal-base__title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#login-modal .modal-close--login {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 16px;
}

#login-modal .modal-close--login:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

/* Premium Form Fields */
#login-modal .form__field {
    margin-bottom: 24px;
    position: relative;
}

#login-modal .input-elem__label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

#login-modal .form__field:focus-within .input-elem__label {
    color: #10b981;
}

#login-modal .input-elem {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 16px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
}

#login-modal .input-elem::placeholder {
    color: rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease;
}

#login-modal .input-elem:focus::placeholder {
    opacity: 0.5;
}

#login-modal .input-elem:focus {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1),
                0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

#login-modal .input-elem:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* Forgot Password Link */
#login-modal .modal-base__forgot-password {
    text-align: center;
    margin: 20px 0;
}

#login-modal .modal-base__link {
    color: #8b5cf6;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

#login-modal .modal-base__link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* Premium Buttons */
#login-modal .modal-base__btn-wrp {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
}

#login-modal .form__btn {
    width: 100% !important;
    padding: 18px 28px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

#login-modal .button-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

#login-modal .button-secondary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.6s ease !important;
}

#login-modal .button-secondary:hover::before {
    left: 100% !important;
}

#login-modal .button-secondary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5),
                0 0 50px rgba(16, 185, 129, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#login-modal .button-secondary:active {
    transform: translateY(-1px) scale(1.01) !important;
}

#login-modal .button-neutral {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#login-modal .button-neutral:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Error Message */
#login-modal .modal__error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #ef4444;
    text-align: center;
    margin: 15px 0;
}

/* ============================================
   REGISTRATION MODAL REDESIGN
   ============================================ */

#registration-confirm .modal-dialog {
    max-width: 900px;
}

#registration-confirm .modal-content {
    background: transparent;
    border: none;
}

#registration-confirm .registry-modal {
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

#registration-confirm .modal-close--login {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff !important;
    z-index: 10;
}

#registration-confirm .registry-modal__content-title-big {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SIDEBAR MENU REDESIGN
   ============================================ */

/* Header/Sidebar Container */
.header {
    background: #000000 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
    .header {
        background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%) !important;
    }
}

/* Logo Enhancement */
.header__logo {
    padding: 20px 10px !important;
    text-align: center;
}

.header__logo-img {
    height: 100px !important;
    width: auto !important;
    max-width: 180px;
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.4));
    transition: all 0.3s ease;
}

.header__logo-img:hover {
    filter: drop-shadow(0 0 35px rgba(16, 185, 129, 0.6));
    transform: scale(1.05);
}

/* User Profile Section */
.header-auth {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.statuses-panel {
    background: transparent !important;
}

.statuses-panel__balance {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Menu Items */
.header-menu {
    padding: 10px !important;
}

.header-menu__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.header-menu__item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
}

.header-menu__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
    border-radius: 14px 0 0 14px;
}

.header-menu__item:hover::before {
    width: 4px;
}

.header-menu__item:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15) !important;
}

.header-menu__item--active,
.header-menu__item.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.header-menu__item--active::before,
.header-menu__item.active::before {
    width: 4px;
}

.header-menu__link {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 18px !important;
    text-decoration: none !important;
    color: #d1d5db !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.header-menu__link:hover {
    color: #fff !important;
}

.header-menu__icon,
.header-menu__live-icon {
    font-size: 22px !important;
    color: #10b981 !important;
    opacity: 0.85 !important;
    transition: all 0.3s ease !important;
}

.header-menu__item:hover .header-menu__icon,
.header-menu__item:hover .header-menu__live-icon {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.header-menu__txt {
    flex: 1;
}

/* Category badges */
.header-menu__count {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    min-width: 24px;
    text-align: center;
}

/* Mobile Menu */
.mobile-menu {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%) !important;
}

.mobile-menu__nav {
    background: transparent !important;
}

/* Top Bar Enhancement */
.top-bar {
    background: linear-gradient(90deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar__sign-up,
.top-bar__sign-in {
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.top-bar__sign-up {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.top-bar__sign-up:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.top-bar__sign-in {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.top-bar__sign-in:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Language Selector */
.locale-selector__selector {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    transition: all 0.3s ease !important;
}

.locale-selector__selector:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.locale-selector__dropdown {
    background: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
}

.locale-selector__item {
    transition: background 0.3s ease !important;
}

.locale-selector__item:hover {
    background: rgba(16, 185, 129, 0.1) !important;
}

/* Scrollbar Styling */
.header::-webkit-scrollbar {
    width: 4px;
}

.header::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.header::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}

.header::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .header__logo-img {
        height: 60px !important;
    }
    
    #login-modal .modal-base {
        padding: 30px 25px;
        margin: 20px;
    }
}
