/*
 * messages.css — Inbox cards, reply containers, message form controls,
 *                and anonymous profile message form.
 *
 * @author  Mr.Server hossam.net HOSSAM ALZYOD
 * @version 2.0
 */

/* ================================================================
   PAGE TITLE & SUBTITLE (override forms.css dark color)
   ================================================================ */
.messages-page-title {
    color: #fff !important;
}
.messages-page-subtitle {
    color: #8faab8;
    font-size: 0.95rem;
}

/* ================================================================
   MESSAGE CARDS
   ================================================================ */
.message-container {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    color: #fff;
    border-radius: 12px;
    position: relative;
}

.message-header {
    font-size: 13px;
    opacity: 0.9;
    color: #e0e0e0 !important;
}

.message-body {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.message-body p,
.reply-container p {
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #fff !important;
}
.message-body p { font-weight: 600; }

/* ================================================================
   REPLY BOX
   ================================================================ */
.reply-container {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.reply-container[dir="ltr"] { border-left:  5px solid #28a745; }
.reply-container[dir="rtl"] { border-right: 5px solid #28a745; }

.reply-icon {
    color: #28a745;
    font-size: 18px;
}

.action-btn          { color: #ffcdd2 !important; }
.action-btn:hover    { color: #fff !important; }

/* ================================================================
   DARK FORM CONTROLS (reply textarea, etc.)
   ================================================================ */
.form-control {
    background:    rgba(0, 0, 0, 0.2) !important;
    border-color:  rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}
.form-control::placeholder { color: #e0e0e0; }

/* ================================================================
   ANONYMOUS MESSAGE TEXTAREA (public profile page)
   ================================================================ */
#messageContent {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}
#messageContent::placeholder { color: #e0e0e0 !important; }
#messageContent:focus {
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2) !important;
}

/* ================================================================
   SIGNUP CTA (bottom of public profile)
   ================================================================ */
.signup-cta-section {
    background-color: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    margin-top: 30px;
    text-align: center;
}
.signup-cta-section h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.signup-cta-section p { color: #fff; margin-bottom: 20px; }

.signup-cta-btn {
    background: #fff !important;
    color: #555 !important;
    border: none !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.signup-cta-btn:hover,
.google-signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.google-signup-btn {
    text-decoration: none !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    background-color: #c53727 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}
.google-signup-btn:hover { background-color: #b02f22 !important; }

.flag-icon { line-height: 2 !important; }
