/*
 * Author:        Pierre-Henry Soria <ph7software@gmail.com>
 * Copyright:     (c) 2012-2019, Pierre-Henry Soria. All Rights Reserved.
 * License:       MIT License; See LICENSE.md and COPYRIGHT.md in the root directory.
 */

/* Amorra custom styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body, input, textarea, select, button {
    font-family: 'Poppins', sans-serif !important;
}

a.btn, .btn, input[type="submit"] {
    border-radius: 24px !important;
    transition: all 0.2s ease !important;
}

a.btn:hover, .btn:hover, input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

h2.underline {
    text-decoration: none !important;
    border-bottom: 2px solid #e91e63;
    padding-bottom: 8px;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
}

/* Amorra dashboard panels */
.amorra-profile-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.amorra-profile-panel h2 {
    font-size: 16px;
    margin-bottom: 12px;
}

.amorra-profile-panel ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
}

.amorra-profile-panel ul li {
    padding: 8px 0;
    font-size: 13px;
}

.amorra-main-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
}

.amorra-main-panel h2.underline {
    font-size: 15px;
    margin: 20px 0 12px;
}

.amorra-main-panel h2.underline:first-child {
    margin-top: 0;
}

.amorra-news-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
}

.amorra-news-panel h2 {
    font-size: 14px;
}

/* Amorra dashboard: Latest Users carousel avatars */
.amorra-main-panel ul.zoomer_pic li img {
    border: 2px solid rgba(255,255,255,0.15) !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.amorra-main-panel ul.zoomer_pic li img:hover {
    transform: scale(1.06);
    border-color: #e91e63 !important;
}

/* Amorra dashboard: Latest Users carousel avatars */
.amorra-main-panel ul.zoomer_pic li img {
    border: 2px solid rgba(255,255,255,0.15) !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.amorra-main-panel ul.zoomer_pic li img:hover {
    transform: scale(1.06);
    border-color: #e91e63 !important;
}

/* Amorra dashboard: visitor block avatar + caption */
#visitor_block .s_photo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 8px;
}

#visitor_block .s_visitor_name {
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
}

/* Amorra dashboard: profile panel avatar */
.amorra-profile-panel img {
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.15) !important;
    width: 160px !important;
    height: 160px !important;
    object-fit: cover;
}

/* Amorra dashboard: profile panel avatar */
.amorra-profile-panel img {
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255,255,255,0.15) !important;
    display: block;
    margin: 0 auto;
}

/* Amorra dashboard quick search */
.amorra-quick-search {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.amorra-quick-search label {
    font-size: 13px;
    margin-bottom: 4px;
}

.amorra-quick-search select,
.amorra-quick-search input[type="text"] {
    margin-bottom: 12px;
    border-radius: 8px;
}

.amorra-quick-search .form-group {
    margin-bottom: 10px;
}

.amorra-quick-search button[type="submit"] {
    margin-top: 8px;
    width: 100%;
}

.amorra-quick-search .pfbc-element:nth-of-type(3) {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 14px;
    padding-top: 14px;
}

.amorra-quick-search .pfbc-element:nth-of-type(6) {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 14px;
    padding-top: 14px;
}

.amorra-quick-search .pfbc-element:nth-of-type(3)::before {
    content: "Demographics & location";
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e91e63;
    font-weight: 500;
    margin-bottom: 10px;
}

.amorra-quick-search .pfbc-element:nth-of-type(6)::before {
    content: "Filters";
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e91e63;
    font-weight: 500;
    margin-bottom: 10px;
}


/* Amorra login page */
.amorra-login-panel {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.amorra-login-panel > p:first-child {
    text-align: center;
    margin-bottom: 20px;
}

/* Amorra Browse Members page */
.amorra-browse-search {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 16px;
}

.amorra-member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amorra-member-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.amorra-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.amorra-member-card figure {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.amorra-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.amorra-empty-state .empty_state_icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* Amorra mobile search link (shown only when sidebar is hidden) */
.amorra-mobile-search-link {
    display: none;
}

@media (max-width: 770px) {
    .amorra-mobile-search-link {
        display: block;
        margin-bottom: 16px;
    }

    .amorra-mobile-search-link .btn {
        width: 100%;
        text-align: center;
    }
}

/* Amorra messages list */
.amorra-msg-item {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.amorra-msg-item .user img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.amorra-msg-item .content {
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.amorra-msg-item .subject {
    font-weight: 600;
    font-size: 14px;
}

.amorra-msg-item .message {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amorra-msg-item .date {
    flex: 0 0 auto;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.amorra-msg-item .action {
    flex: 0 0 100%;
    margin-top: 6px;
    font-size: 13px;
}

.amorra-new-badge {
    background-color: #e91e63 !important;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 11px;
}

/* Mobile: stack content vertically, hide bulk-select checkbox for cleanliness */
@media (max-width: 600px) {
    .amorra-msg-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .amorra-msg-item .left {
        position: absolute;
        opacity: 0.5;
    }

    .amorra-msg-item .content {
        width: 100%;
    }

    .amorra-msg-item .message {
        white-space: normal;
    }

    .amorra-msg-item .date {
        margin-top: 4px;
    }
}

/* Amorra message detail view */
.amorra-msg-detail {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.amorra-msg-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.amorra-msg-detail-header img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.amorra-msg-detail-meta {
    display: flex;
    flex-direction: column;
}

.amorra-msg-detail-date {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.amorra-msg-detail-subject {
    font-size: 18px;
    margin: 0 0 12px;
    color: #e91e63;
}

.amorra-msg-detail-body {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.amorra-msg-detail-actions {
    font-size: 14px;
}

@media (max-width: 600px) {
    .amorra-msg-detail {
        padding: 16px;
        margin: 0 12px;
    }
}
