/**
 * EPIC DRAGON SIDEBAR THEME 🐉🔥
 * Pure Power & Energy Effects for Sidebar
 * @package team-exciting
 * @version 1.0.0
 */

/* ===================================
   CSS VARIABLES - EPIC COLOR SCHEME
   =================================== */
:root {
    --epic-cyan: #00d9ff;
    --epic-purple: #8a2be2;
    --epic-pink: #ff1493;
    --epic-gradient: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple));
    --epic-gradient-triple: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple), var(--epic-pink));
}

/* ===================================
   SIDEBAR CONTAINER - EPIC GLOW 🌟
   =================================== */

.sidebar,
#sidebar,
.widget-area,
aside.sidebar {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(37, 37, 37, 0.95)) !important;
    border: 2px solid rgba(0, 217, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 217, 255, 0.2) !important;
    overflow: visible;
}

/* Cosmic Dust Effect */
.sidebar::before,
#sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 217, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(138, 43, 226, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 20, 147, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 100px 100px;
    animation: cosmicDust 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    border-radius: 20px;
}

/* Animated Grid */
.sidebar::after,
#sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 2s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    border-radius: 20px;
}

/* Ensure content stays above effects */
.sidebar > *,
#sidebar > * {
    position: relative;
    z-index: 1;
}

/* ===================================
   WIDGETS - EPIC CARDS 🎴
   =================================== */

.sidebar .widget,
#sidebar .widget,
.widget-area .widget {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(30, 30, 30, 0.8)) !important;
    border: 2px solid rgba(0, 217, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Top Gradient Border on Hover */
.sidebar .widget::before,
#sidebar .widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--epic-cyan), var(--epic-purple), var(--epic-pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .widget:hover::before,
#sidebar .widget:hover::before {
    transform: scaleX(1);
}

/* Hover Effect */
.sidebar .widget:hover,
#sidebar .widget:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 217, 255, 0.5) !important;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 217, 255, 0.3) !important;
}

/* ===================================
   WIDGET TITLES - GRADIENT TEXT 📝
   =================================== */

.sidebar .widget-title,
.sidebar .widget h3,
.sidebar .widget h4,
#sidebar .widget-title,
#sidebar .widget h3,
#sidebar .widget h4 {
    background: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   USER PROFILE / LOGIN WIDGET 👤
   =================================== */

/* Profile Card */
.sidebar .user-profile,
.sidebar .profile-widget,
#sidebar .user-profile {
    background: rgba(0, 217, 255, 0.05) !important;
    border: 2px solid rgba(0, 217, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    text-align: center;
}

/* Avatar with Epic Glow */
.sidebar .user-avatar,
.sidebar .profile-avatar,
.sidebar .avatar,
#sidebar .user-avatar,
#sidebar .avatar {
    border: 3px solid var(--epic-cyan) !important;
    border-radius: 50% !important;
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.5),
        0 0 40px rgba(0, 217, 255, 0.3) !important;
    transition: all 0.4s ease !important;
    animation: avatarFloat 3s ease-in-out infinite;
}

.sidebar .user-avatar:hover,
.sidebar .avatar:hover,
#sidebar .avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 0 30px rgba(0, 217, 255, 0.8),
        0 0 60px rgba(138, 43, 226, 0.5) !important;
    border-color: var(--epic-purple) !important;
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Username */
.sidebar .user-name,
.sidebar .profile-name,
#sidebar .user-name {
    background: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
    font-size: 18px !important;
    margin: 10px 0 !important;
}

/* User Stats */
.sidebar .user-stats,
#sidebar .user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.sidebar .stat-item,
#sidebar .stat-item {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
}

.sidebar .stat-item:hover,
#sidebar .stat-item:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--epic-cyan);
    transform: translateY(-3px);
}

.sidebar .stat-value,
#sidebar .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar .stat-label,
#sidebar .stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* ===================================
   LOGIN BUTTONS - EPIC STYLE 🔐
   =================================== */

.sidebar .btn,
.sidebar button,
.sidebar input[type="submit"],
.sidebar .button,
#sidebar .btn,
#sidebar button,
#sidebar input[type="submit"] {
    background: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple)) !important;
    border: 2px solid var(--epic-cyan) !important;
    border-radius: 12px !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 20px !important;
    width: 100%;
    margin: 8px 0 !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3) !important;
}

/* Ripple Effect */
.sidebar .btn::before,
.sidebar button::before,
#sidebar .btn::before,
#sidebar button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.sidebar .btn:hover::before,
.sidebar button:hover::before,
#sidebar .btn:hover::before,
#sidebar button:hover::before {
    width: 300px;
    height: 300px;
}

.sidebar .btn:hover,
.sidebar button:hover,
#sidebar button:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow:
        0 8px 25px rgba(0, 217, 255, 0.6),
        0 0 30px rgba(0, 217, 255, 0.4) !important;
}

/* Discord Button */
.sidebar .btn-discord,
#sidebar .btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4) !important;
    border-color: #5865F2 !important;
    color: #fff !important;
}

.sidebar .btn-discord:hover,
#sidebar .btn-discord:hover {
    box-shadow:
        0 8px 25px rgba(88, 101, 242, 0.6),
        0 0 30px rgba(88, 101, 242, 0.4) !important;
}

/* Steam Button */
.sidebar .btn-steam,
#sidebar .btn-steam {
    background: linear-gradient(135deg, #1b2838, #0d1824) !important;
    border-color: #1b2838 !important;
    color: #fff !important;
}

.sidebar .btn-steam:hover,
#sidebar .btn-steam:hover {
    box-shadow:
        0 8px 25px rgba(27, 40, 56, 0.6),
        0 0 30px rgba(27, 40, 56, 0.4) !important;
}

/* ===================================
   FORM INPUTS - EPIC STYLE 📝
   =================================== */

.sidebar input[type="text"],
.sidebar input[type="email"],
.sidebar input[type="password"],
.sidebar input[type="search"],
.sidebar textarea,
#sidebar input[type="text"],
#sidebar input[type="email"],
#sidebar input[type="password"],
#sidebar textarea {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid rgba(0, 217, 255, 0.3) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 12px 15px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    margin-bottom: 10px;
}

.sidebar input:focus,
.sidebar textarea:focus,
#sidebar input:focus,
#sidebar textarea:focus {
    border-color: var(--epic-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    outline: none !important;
}

.sidebar input::placeholder,
#sidebar input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ===================================
   LISTS & LINKS 📋
   =================================== */

.sidebar ul,
.sidebar ol,
#sidebar ul,
#sidebar ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li,
#sidebar li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.sidebar li:hover,
#sidebar li:hover {
    padding-left: 10px;
    border-bottom-color: rgba(0, 217, 255, 0.3);
}

.sidebar a,
#sidebar a {
    color: var(--epic-cyan) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.sidebar a:hover,
#sidebar a:hover {
    color: var(--epic-purple) !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    padding-left: 5px;
}

/* Link Underline Effect */
.sidebar a::after,
#sidebar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--epic-cyan), var(--epic-purple));
    transition: width 0.3s ease;
}

.sidebar a:hover::after,
#sidebar a:hover::after {
    width: 100%;
}

/* ===================================
   XP BAR / PROGRESS BARS 📊
   =================================== */

.sidebar .xp-bar,
.sidebar .progress-bar,
#sidebar .xp-bar,
#sidebar .progress-bar {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    height: 30px;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
}

.sidebar .xp-fill,
.sidebar .progress-fill,
#sidebar .xp-fill,
#sidebar .progress-fill {
    background: linear-gradient(90deg, var(--epic-cyan), var(--epic-purple), var(--epic-pink));
    height: 100%;
    border-radius: 20px;
    position: relative;
    transition: width 0.6s ease;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    animation: progressGlow 2s ease-in-out infinite;
}

.sidebar .xp-fill::after,
.sidebar .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: progressShine 2s linear infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
    }
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.sidebar .xp-text,
.sidebar .progress-text,
#sidebar .xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

/* ===================================
   BADGES & ACHIEVEMENTS 🏆
   =================================== */

.sidebar .badge,
.sidebar .achievement,
#sidebar .badge,
#sidebar .achievement {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: badgeShine 3s ease-in-out infinite;
    border: 2px solid rgba(255, 215, 0, 0.6);
}

@keyframes badgeShine {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.7);
    }
}

.sidebar .badge.legendary,
#sidebar .badge.legendary {
    background: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple), var(--epic-pink));
    color: #fff;
    animation: badgeShine 2s ease-in-out infinite, badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ===================================
   RANK / LEVEL DISPLAY 🎖️
   =================================== */

.sidebar .rank-display,
.sidebar .level-display,
#sidebar .rank-display,
#sidebar .level-display {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.sidebar .rank-icon,
.sidebar .level-number,
#sidebar .rank-icon,
#sidebar .level-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: rankPulse 2s ease-in-out infinite;
}

@keyframes rankPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.sidebar .rank-name,
#sidebar .rank-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--epic-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* ===================================
   NOTIFICATIONS 🔔
   =================================== */

.sidebar .notification,
.sidebar .alert,
#sidebar .notification {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--epic-cyan);
    border-left: 4px solid var(--epic-cyan);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
    animation: notificationSlide 0.4s ease-out;
}

@keyframes notificationSlide {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar .notification.success,
#sidebar .notification.success {
    border-color: #38ff1e;
    border-left-color: #38ff1e;
    background: rgba(56, 255, 30, 0.1);
}

.sidebar .notification.error,
#sidebar .notification.error {
    border-color: #ff3233;
    border-left-color: #ff3233;
    background: rgba(255, 50, 51, 0.1);
}

/* ===================================
   SOCIAL ICONS ⚡
   =================================== */

.sidebar .social-icons,
#sidebar .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.sidebar .social-icons a,
#sidebar .social-icons a {
    color: var(--epic-cyan) !important;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
}

.sidebar .social-icons a:hover,
#sidebar .social-icons a:hover {
    color: var(--epic-purple) !important;
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    border-color: var(--epic-purple);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* ===================================
   SEARCH WIDGET 🔍
   =================================== */

.sidebar .search-form,
#sidebar .search-form,
#searchform {
    position: relative;
}

.sidebar .search-form input[type="search"],
#sidebar .search-form input[type="search"],
#searchform input[type="search"] {
    padding-right: 50px !important;
}

.sidebar .search-submit,
#sidebar .search-submit,
#searchform .search-submit {
    position: absolute !important;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

/* ===================================
   KEYFRAME ANIMATIONS
   =================================== */

@keyframes cosmicDust {
    0% {
        background-position: 0% 0%, 50% 50%, 100% 0%;
    }
    50% {
        background-position: 100% 100%, 0% 100%, 0% 50%;
    }
    100% {
        background-position: 0% 0%, 50% 50%, 100% 0%;
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

/* ===================================
   RESPONSIVE DESIGN 📱
   =================================== */

@media (max-width: 768px) {
    .sidebar,
    #sidebar {
        padding: 15px !important;
        border-radius: 15px !important;
    }

    .sidebar .widget,
    #sidebar .widget {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .sidebar .user-stats,
    #sidebar .user-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS ⚡
   =================================== */

.sidebar,
.sidebar .widget,
.sidebar .btn,
.sidebar a,
#sidebar,
#sidebar .widget {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .sidebar *,
    #sidebar * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   🐉 EPIC DRAGON SIDEBAR - COMPLETE! 🔥
   =================================== */
