/*  profile-menu.css - DARK THEME */
.fv-prof-menu{
    position:absolute; top:70px;
    /* right removed - handled by media queries */
    width:270px;
    background:rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius:14px;
    box-shadow:0 12px 32px rgba(0,0,0,0.8);
    padding:18px 20px 14px;
    display:none;
    z-index:1200;
    font-family:Poppins,Arial,sans-serif;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    /* Smooth scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Animation */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fv-prof-menu.open{
    display:block;
    opacity: 1;
    /* transform removed - handled by media queries */
    /* animation removed - conflicts with mobile centering */
}

/* Desktop - no horizontal centering needed */
@media(min-width:901px){
    .fv-prof-menu{
        right: 12px;
    }

    .fv-prof-menu.open{
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
.fv-prof-menu::-webkit-scrollbar {
    width: 6px;
}

.fv-prof-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.fv-prof-menu::-webkit-scrollbar-thumb {
    background: rgba(105, 178, 84, 0.5);
    border-radius: 10px;
}

.fv-prof-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(105, 178, 84, 0.7);
}

.fv-prof-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.fv-prof-head img{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid rgba(105, 178, 84, 0.3);}
.fv-prof-head h4{margin:0 0 2px;font-weight:700;font-size:1.1rem;color:#ffffff;}
.fv-prof-head p {margin:0;font-size:.88rem;color:rgba(255, 255, 255, 0.7);}

.fv-prof-stats{list-style:none;margin:6px 0 14px;padding:0;font-size:.95rem}
.fv-prof-stats li{margin:4px 0}

.logout-btn{
    width:100%;
    padding:10px 0;
    border:none;
    border-radius:8px;
    background:#69B254;
    color:#fff;
    font-weight:600;
    font-size:1rem;
    cursor:pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logout-btn:hover{
    background:#5fa149;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 178, 84, 0.4);
}
.logout-btn:active{
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(105, 178, 84, 0.3);
}

/* Responsive Adjustments */
@media(max-width:900px){
    .fv-prof-menu{
        /* Position below navbar, centered on screen */
        position: fixed !important;
        top: 66px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px) !important;
        width: 90vw !important;
        max-width: 340px !important;
        max-height: calc(100vh - 76px) !important;
        margin: 0 !important;
    }

    .fv-prof-menu.open{
        transform: translateX(-50%) translateY(0) !important;
        left: 50% !important;
        right: auto !important;
    }
}

@media(max-width:600px){
    .fv-prof-menu{
        position: fixed !important;
        top: 62px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px) !important;
        width: 92vw !important;
        max-width: 360px !important;
        max-height: calc(100vh - 72px) !important;
        margin: 0 !important;
    }

    .fv-prof-menu.open{
        transform: translateX(-50%) translateY(0) !important;
        left: 50% !important;
        right: auto !important;
    }

    .fv-prof-head{
        flex-direction:column;
        text-align:center;
        gap:8px;
    }

    .fv-prof-head img{
        width:56px;
        height:56px;
    }
}

@media(max-width:480px){
    .fv-prof-menu{
        position: fixed !important;
        top: 58px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px) !important;
        width: 94vw !important;
        max-width: 360px !important;
        padding: 16px 18px 12px !important;
        max-height: calc(100vh - 68px) !important;
        margin: 0 !important;
    }

    .fv-prof-menu.open{
        transform: translateX(-50%) translateY(0) !important;
        left: 50% !important;
        right: auto !important;
    }
}

/* Landscape Optimization */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .fv-prof-menu{
        right:50%;
        transform:translateX(50%);
        width:60vw;
        max-width:400px;
        top:62px;
        padding:14px 18px 12px;
        max-height: calc(100vh - 72px);
    }

    .fv-prof-head{
        margin-bottom:8px;
    }

    .fv-prof-head img{
        width:42px;
        height:42px;
    }

    .fv-prof-links{
        margin:8px 0 14px;
    }

    .fv-prof-links li a{
        padding:6px 10px;
        font-size:.9rem;
    }
}

.fv-prof-links{
    list-style:none; margin:10px 0 20px; padding:0;
}
.fv-prof-links li a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    font-size:.95rem;
    color:rgba(255, 255, 255, 0.9);
    text-decoration:none;
    transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius:8px;
    min-height: 44px;
}
.fv-prof-links li a:hover{
    color:#7bc463;
    background:rgba(105, 178, 84, 0.15);
    transform: translateX(4px);
}
.fv-prof-links li a:active{
    transform: translateX(2px);
    background:rgba(105, 178, 84, 0.2);
}

.fv-prof-links svg{width:18px;height:18px;flex:0 0 18px;}

/* (opciono) sakrij e-mail na desktopu da ne pravi prelom */
@media(min-width:768px){ #prof-email{display:none;} }
