<?php
/**
 * ============================================================================
 * FILE METADATA & DOCUMENTATION
 * ============================================================================
 * File Name:    forum_global_styles.css (Embedded/Style Component)
 * File Path:    /includes/forum_styles.php (or inline style block)
 * User of File: All RSM Matka Platform Visitors & Active Forum Members
 * Description:  Global CSS styling suite for forum layouts, card aesthetics, 
 *               modal responsiveness, glow indicators, theme cards, and mobile 
 *               bottom navigation clearance fixes.
 * ============================================================================
 */
?>
<style>
/* ==========================================================================
   FORUM GLOBAL STYLES
   ========================================================================== */
body { 
    background-color: #f4f6fa; 
    font-family: system-ui, sans-serif; 
    padding-bottom: 90px !important; /* 📱 Fixed mobile nav overlap & footer fix */
}

/* Modal ka size control karne ke liye */
.modal-sm {
    max-width: 350px !important; /* Box ki width fix kar di */
}

/* Modal body ki padding kam ki */
.modal-body {
    padding: 15px !important;
}

/* Avatar size thoda chhota */
#modalAvatar {
    width: 80px !important;
    height: 80px !important;
}

.stat-card h5 {
    font-size: 1rem !important;
}

/* Stats card ka font size thoda kam */
.stat-card {
    border-radius: 15px;
    padding: 8px !important;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

/* Post Theme (Blue) */
.theme-posts { background-color: #ebf5ff; }
.theme-posts .icon-box { background-color: #3b82f6; color: #fff; }
.theme-posts h5, .theme-posts small { color: #1e40af; }

/* Followers Theme (Green) */
.theme-followers { background-color: #f0fdf4; }
.theme-followers .icon-box { background-color: #22c55e; color: #fff; }
.theme-followers h5, .theme-followers small { color: #166534; }

/* Tricks Theme (Purple/Orange) */
.theme-tricks { background-color: #f5f3ff; }
.theme-tricks .icon-box { background-color: #8b5cf6; color: #fff; }
.theme-tricks h5, .theme-tricks small { color: #5b21b6; }

.icon-box {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

/* Jab modal band ho, toh backdrop ko zabardasti hatao */
.modal-backdrop {
    display: none !important;
    z-index: -1 !important;
}

/* Modal jab open ho, tab hi dikhao */
.modal.show + .modal-backdrop {
    display: block !important;
    z-index: 1040 !important;
}

/* Jab modal band ho, toh body ko force-unlock karein */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   CARD COMPONENT (Tight & Modern)
   ========================================================================== */
.card {
    border: 1px solid #dee2e6 !important; /* Border visible rakhi */
    border-radius: 16px;                 /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Modern soft shadow */
    margin-bottom: 15px !important;
    background: #ffffff;
}

.card-body {
    padding: 10px !important;
}

.card-body p, .card-body div {
    margin-bottom: 0 !important;
}

.card-footer {
    padding: 5px 10px !important;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* ==========================================================================
   FORM & UI ELEMENTS
   ========================================================================== */
.custom-filter-select { 
    height: 42px; 
    border-radius: 10px; 
    border: 1px solid #cbd5e1; 
    font-weight: 600; 
    font-size: 0.85rem; 
    background-color: #f8fafc; 
}

/* Modern Textarea Styling */
textarea[name="content"] {
    min-height: 120px;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

textarea[name="content"]:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.post-card { 
    border-radius: 16px; 
    overflow: hidden; 
    background: #ffffff; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
}

.industry-quote-box { 
    background: #f7f9fa; 
    border-left: 4px solid #2563eb; 
    padding: 10px; 
    margin: 10px 0; 
    font-size: 0.9rem; 
}

.quote-header { 
    font-weight: bold; 
    color: #4a5568; 
    margin-bottom: 5px; 
}

/* Avatar Glow Effect */
.avatar-glow-online { box-shadow: 0 0 10px #4ade80 !important; border: 2px solid #4ade80 !important; }
.avatar-glow-offline { box-shadow: none !important; border: 2px solid #94a3b8 !important; }

/* Text Glow Effect */
.text-glow-online { text-shadow: 0 0 8px #4ade80; color: #4ade80 !important; }
.text-glow-offline { color: #94a3b8 !important; }

.follow-btn:hover {
    background: #1e293b !important;
    transform: scale(1.05);
    transition: 0.2s;
}

.btn-followed {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.btn-default {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
}

/* Avatar image ka size limit karne ke liye */
.modal-avatar-img, 
.navbar-avatar-img, 
.post-avatar-img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover; /* Image stretch nahi hogi */
    border-radius: 50%;
}

#quotedContentPreview {
    max-height: 150px; 
    overflow-y: auto;  
    scrollbar-width: thin; 
}

.quote-chain-box { 
    border-radius: 8px; 
    padding: 10px; 
    margin-bottom: 10px;
    border-left: 4px solid #3b82f6; 
}

.level-0 { background-color: #f8fafc; } /* Last reply */
.level-1 { background-color: #f1f5f9; } /* Second last */
.level-2 { background-color: #e2e8f0; } /* Original post */

/* Desktop par content ki max-width fix karne ke liye taaki bohot zyada stretch na ho */
@media (min-width: 992px) {
    .main-content-wrapper {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }
}

</style>