/* ============================================
   WhatsApp Group Single Page - Modern Design
   FIXED COLOR SCHEME
   ============================================ */

/* Variables */
:root {
    --blue-bg: #b6cffd;
    --blue-text: #2872fa;
    --green-bg: #b2f6bb;
    --green-text: #27a844;
    --white: #ffffff;
    --light-bg: #fafbfc;
    --gray-light: #f1f3f5;
    --gray-medium: #dee2e6;
    --gray-dark: #495057;
    --black: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container */
.wg-single-wrapper {
    background: var(--white);
    padding: 40px 20px;
    min-height: 100vh;
}

.wg-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Grid Layout */
.wg-grid-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Featured Image */
.wg-featured-image {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.wg-image-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--gray-medium);
}

.wg-thumbnail {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

.wg-image-placeholder {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.wg-image-placeholder .dashicons {
    font-size: 100px;
    color: var(--gray-dark);
    opacity: 0.3;
}

.dashicons {
    margin-right: 10px;
}

.align-end {
    align-self: end;
    font-size: 1.5rem;
    margin-right: 0px;
}

/* Details Section */
.wg-details-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-medium);
}

.wg-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Post Views */
.wg-views {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    margin-bottom: 25px;
}

.wg-views .dashicons {
    font-size: 18px;
    color: var(--gray-dark);
}

/* Quick Info Cards Grid */
.wg-quick-info {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 15px;
    margin-bottom: 25px;
}

.wg-info-card {
    background: var(--blue-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(40, 114, 250, 0.2);
}

.wg-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.wg-info-card .dashicons {
    font-size: 32px;
    color: var(--blue-text);
    flex-shrink: 0;
}

.wg-card-content {
    display: flex;
    flex-direction: column;
}

.wg-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue-text);
    font-weight: 600;
    margin-bottom: 4px;
}

.wg-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

/* Color Variations for Cards */
.wg-info-card.wg-location {
    background: var(--green-bg);
    border: 1px solid rgba(39, 168, 68, 0.2);
}

.wg-info-card.wg-location .dashicons {
    color: var(--green-text);
}

.wg-info-card.wg-location .wg-label {
    color: var(--green-text);
}

.wg-info-card.wg-members {
    border: 1px solid var(--blue-text);
}

.wg-info-card.wg-members .dashicons {
    color: var(--blue-text);
}

.wg-info-card.wg-members .wg-label {
    color: var(--blue-text);
}

.wg-info-card.wg-rating {
    background: var(--green-bg);
    border: 1px solid var(--green-text);
}

.wg-info-card.wg-rating .dashicons {
    color: var(--green-text);
}

.wg-info-card.wg-rating .wg-label {
    color: var(--green-text);
}

/* Badges Row */
.wg-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.wg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.dashicons-yes-alt {
    margin-right: 0px;
}

.mr-2 {
    margin-right: 0px;
}

.wg-badge .dashicons {
    font-size: 20px;
}

.wg-badge-open {
    background: var(--green-bg);
    color: var(--green-text);
}

.platform-badges {
    margin: 0px !important;
}

.wg-badge-private {
    background: #ffe0e0;
    color: #dc3545;
}

.wg-badge-verified {
    background: var(--green-bg);
    color: var(--green-text);
}

.wg-badge-method {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.text {
    font-size: 1rem;
}

/* Join Button */
.wg-join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    background: var(--green-text);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wg-join-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #1e7e34;
    color: var(--white);
}

.wg-join-button .dashicons {
    font-size: 22px;
}

/* Platform Section */
.wg-platform-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--radius-md);
}

/* Language Section */
.wg-language-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--blue-bg);
    border-radius: 50px;
}

.wg-language-section .dashicons {
    font-size: 20px;
    color: var(--blue-text);
}

.wg-language-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-text);
}

.wg-language-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
}

/* Position & Upvote - MATCHING YOUR SECOND IMAGE */
.wg-position-upvote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: var(--green-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 70%;
    padding: 0px 3rem;
    margin: 0 auto;
}

/* Left side - Most Popular #1 */
.wg-position-upvote > div:first-child,
.wg-position-upvote > span:first-child {
    flex: 1;
    padding: 20px;
    background: var(--green-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
}

.wg-position-upvote .position-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    margin-bottom: 5px;
}

.wg-position-upvote .position-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    text-align: center;
}

.most-popular-section {
    display: flex;
    flex-direction: column;
}

.most-popular-section b {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
}

.most-popular-section span {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

/* Divider */
.wg-divider {
    display: none;
}

/* Right side - Upvote Button */
.wg-position-upvote > div:last-child,
.wg-position-upvote > a:last-child,
.wg-position-upvote .upvote-btn {
    flex: 2;
    padding: 0;
    margin: 0;
}

.wg-position-upvote button,
.wg-position-upvote .upvote-button {
    width: 100%;
    padding: 20px;
    background: var(--green-text);
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wg-position-upvote button:hover,
.wg-position-upvote .upvote-button:hover {
    background: #1e7e34;
}

/* Sections */
.wg-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-medium);
}

.wg-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-medium);
}

.wg-section-title .dashicons {
    font-size: 28px;
    color: var(--blue-text);
}

.wg-section-content {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

/* Responsive Design */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .wg-grid-layout {
        grid-template-columns: 300px 1fr;
        gap: 25px;
    }

    .wg-details-section {
        padding: 25px;
    }

    .wg-title {
        font-size: 28px;
    }
}

/* Mobile: 480px - 767px */
@media (max-width: 767px) {
    .wg-single-wrapper {
        padding: 20px 15px;
    }

    .wg-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wg-featured-image {
        position: static;
    }

    .wg-image-container {
        padding: 10px;
    }

    .wg-details-section {
        padding: 20px;
    }

    .wg-title {
        font-size: 24px;
    }

    .wg-quick-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wg-section {
        padding: 25px 20px;
    }

    .wg-section-title {
        font-size: 20px;
    }
}

/* Small Mobile: Below 480px */
@media (max-width: 480px) {
    .wg-title {
        font-size: 22px;
    }

    .wg-details-section {
        padding: 15px;
    }

    .wg-join-button {
        padding: 14px 24px;
        font-size: 14px;
    }

    .wg-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .wg-section-title {
        font-size: 18px;
    }

    .wg-position-upvote {
        width: 100%;
        padding: 10px 8px;
    }

    .wg-position-upvote > div:first-child {
        padding: 0px;
    }

    .most-popular-section {
        width: 50%;
    }

    .upvote-section {
        width: 50%;
    }

    .most-popular-section span {
        font-size: 0.8rem;
    }
}
