/* style.css - Approved List View, Coded Logo, Pagination & Report Button Styling */
/* ──────────────────────────────────────────────── */
/* Changes: Responsive improvements only – no color/design changes */

:root {
    --bg-light: #f0f2f5;
    --text-dark: #111b21;
    --text-muted: #667781;
    --wa-green: #25D366;
    --platform-bure-red: #E1306C;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-soft: 0 4px 15px rgba(0,0,0,0.03);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;          /* थोड़ा बेहतर readability मोबाइल पर */
}

.container {
    max-width: 900px;          /* थोड़ा बढ़ाया ताकि लैपटॉप पर अच्छा लगे */
    margin: 0 auto;
    padding: 0 16px;           /* मोबाइल पर बेहतर side margin */
}

/* ──────────────────────────────────────────────── */
/* Header & Nav – already quite good, minor touch */
header {
    background: #ffffff;
    padding: 16px 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 3px solid #764ba2;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 54px;
    height: 54px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.logo-main {
    font-size: clamp(1.8rem, 5vw, 2.2rem);   /* responsive font */
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.nav-bar a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.btn-post-group {
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ──────────────────────────────────────────────── */
/* Search & Categories */
.search-bar {
    margin: 24px 0;
    text-align: center;
}

.search-bar input {
    width: 100%;
    max-width: 560px;          /* लैपटॉप पर बहुत चौड़ा न हो */
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    outline: none;
    background: white;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    margin: 0 auto;
    display: block;
}

.category-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.cat-card {
    background: white;
    padding: 10px 18px;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    white-space: nowrap;
}

.cat-card:hover {
    border-color: #ddd;
}

/* ──────────────────────────────────────────────── */
/* Upload Section */
.upload-section {
    background: #ffffff;
    border-radius: 12px;
    padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 24px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.92rem;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus, select:focus {
    border-color: #764ba2;
    outline: none;
}

button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    max-width: 320px;         /* मोबाइल पर पूरा चौड़ा, लेकिन बहुत लंबा न हो */
    margin: 12px auto 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ──────────────────────────────────────────────── */
/* APPROVED HORIZONTAL LIST – अब पूरी तरह responsive */
.social-list-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.social-list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    gap: 12px;                   /* बेहतर spacing */
    flex-wrap: wrap;             /* बहुत छोटे स्क्रीन पर wrap हो सकता है */
}

.social-list-item:last-child {
    border-bottom: none;
}

.social-list-item:hover {
    background-color: #fafafa;
}

.list-item-dp {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #adb5bd;
}

.list-item-info {
    flex: 1 1 auto;              /* सबसे महत्वपूर्ण बदलाव */
    min-width: 0;                /* text-overflow काम करे */
}

.list-item-name {
    font-size: clamp(15px, 3.4vw, 16px);
    font-weight: 600;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-subtitle {
    font-size: clamp(12px, 3vw, 13px);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-action {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;           /* right side पर push करता है */
}

.list-item-join-btn {
    background-color: var(--wa-green);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: clamp(12px, 3.2vw, 13px);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.list-item-join-btn:hover {
    background-color: #1da851;
}

.report-btn-list {
    color: #adb5bd;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.report-btn-list:hover {
    color: var(--platform-bure-red);
    background: rgba(225, 48, 108, 0.05);
}

/* ──────────────────────────────────────────────── */
/* Pagination */
.pagination {
    margin: 24px 0 48px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a, .pagination span {
    background: white;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
    min-width: 44px;
    text-align: center;
}

.pagination a:hover {
    background: #f1f5f9;
}

.pagination span {
    background: transparent;
    color: #666;
    box-shadow: none;
}

/* ──────────────────────────────────────────────── */
/* Footer & Messages */
footer {
    text-align: center;
    padding: 24px 0;
    margin-top: 24px;
    color: #666;
    font-size: 0.92rem;
    border-top: 1px solid #ddd;
}

footer a {
    color: #666;
    text-decoration: none;
    margin: 0 12px;
}

.success, .error {
    padding: 14px;
    border-radius: 8px;
    margin: 12px 0;
    text-align: center;
    font-size: 0.96rem;
    border: 1px solid;
}

.success {
    background: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}

.error {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ──────────────────────────────────────────────── */
/* Media Queries – मोबाइल के लिए बेहतर adjustments */
@media (max-width: 680px) {
    .container {
        padding: 0 12px;
    }

    .social-list-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .list-item-dp {
        width: 44px;
        height: 44px;
    }

    .list-item-action {
        flex-direction: row;
        gap: 10px;
    }

    .list-item-join-btn {
        padding: 7px 14px;
    }

    button {
        padding: 13px 20px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .logo-main {
        font-size: 1.9rem;
    }

    .nav-bar {
        gap: 8px;
    }

    .nav-bar a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .social-list-item {
        flex-direction: row;
        flex-wrap: nowrap;      /* कोशिश करेंगे row में ही रखने की */
        padding: 10px 12px;
    }

    .list-item-info {
        padding: 0 10px;
    }
}/* Header improvements – responsive only */
.header-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin: 8px 0 16px;
    font-weight: 500;
}

.nav-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap; /* Already tha, good */
}

@media (max-width: 600px) {
    .logo-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-main {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }
    
    .logo-sub {
        font-size: 0.75rem;
    }
    
    .nav-bar {
        gap: 10px;
        padding: 0 10px;
    }
    
    .nav-bar a {
        padding: 8px 14px;
        font-size: 0.9rem;
        flex: 1 1 auto; /* Buttons touch-friendly bade hon */
        text-align: center;
        min-width: 110px; /* Touch target size achha rahe */
    }
    
    .btn-post-group {
        padding: 10px 16px !important;
    }
    
    .header-tagline {
        margin: 6px 0 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav-bar a {
        width: 80%;
        justify-content: center;
    }
}