/**
 * User Profile Widget Styles
 *
 * @package Atenea_Plus
 * @since 1.4.0
 */

/* Container */
.atenea-user-widget {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Logged Out Buttons */
.atenea-logged-out-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.atenea-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

/* Compact buttons for mobile */
@media (max-width: 768px) {
    .atenea-logged-out-buttons {
        gap: 8px;
    }
    
    .atenea-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .atenea-logged-out-buttons {
        gap: 6px;
    }
    
    .atenea-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.atenea-btn-outline {
    background: transparent;
    border: 2px solid #333;
    color: #333;
}

.atenea-btn-outline:hover {
    background: #333;
    color: #fff;
}

.atenea-btn-primary {
    background: #0C3149;
    color: #fff;
    border: 2px solid #0C3149;
}

.atenea-btn-primary:hover {
    background: #0a2739;
    border-color: #0a2739;
}

/* Logged In Widget */
.atenea-logged-in-widget {
    position: relative;
}

/* Avatar Button */
.atenea-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.atenea-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0C3149;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.atenea-avatar-btn:hover .atenea-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(12, 49, 73, 0.3);
}

@media (max-width: 768px) {
    .atenea-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Modal */
.atenea-profile-modal {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: #2d3748;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    color: #fff;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .atenea-profile-modal {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* Header */
.atenea-profile-header {
    background: #1e2936;
    padding: 24px 20px;
    border-bottom: 1px solid #404e5f;
}

.atenea-profile-info h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.atenea-profile-meta-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.atenea-profile-meta-item:last-child {
    margin-bottom: 0;
}

.atenea-profile-meta-label {
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.atenea-profile-meta-value {
    color: #e2e8f0;
    font-weight: 500;
}

/* Navigation Links */
.atenea-profile-nav {
    padding: 0;
    background: #2d3748;
}

.atenea-profile-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #3a4556;
}

.atenea-profile-link-item:hover {
    background: #3a4556;
    padding-left: 24px;
}

.atenea-profile-link-item:last-child {
    border-bottom: none;
}

.atenea-profile-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #A1C52E;
    flex-shrink: 0;
}

.atenea-profile-link-text {
    font-size: 15px;
    font-weight: 500;
}

/* Sections */
.atenea-profile-section {
    padding: 16px 20px;
    background: #2d3748;
}

.atenea-profile-section:last-child {
    border-top: 1px solid #3a4556;
}

.atenea-profile-label {
    font-size: 11px;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.atenea-profile-value {
    font-size: 14px;
    color: #fff;
}

/* Buttons */
.atenea-btn-logout {
    width: 100%;
    background: transparent;
    color: #e2e8f0;
    border: 2px solid #3a4556;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
}

.atenea-btn-logout:hover {
    background: #3a4556;
    border-color: #4a5566;
    color: #fff;
}

/* Overlay */
.atenea-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    .atenea-profile-overlay {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }
}

/* Dark mode adjustments */
body.dark-mode .atenea-btn-outline {
    border-color: #fff;
    color: #fff;
}

body.dark-mode .atenea-btn-outline:hover {
    background: #fff;
    color: #000;
}
