.discover_container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 150px;
}

.discover_menu,
.groups_container {
    width: 80%;
}

.discover_menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px 30px;
}

.discover_title {
    justify-self: flex-start;
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    color: var(--bg-main);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.create_btn {
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;

    border-style: solid;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    align-self: center;
    cursor: pointer;
    padding: 10px 20px;
    transition:
        transform 0.3s ease-in-out,
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out;
}

.create_btn:hover {
    transform: scale(1.05);
    background-color: #ffffff;
    color: var(--text-primary);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.groups_container {
    position: relative;
    height: 60vh;
    max-height: 60vh;
    background: var(--bg-card);
    border-radius: 5px;
    border-style: solid;
    border-color: var(--bg-main);
    border-width: 2px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    justify-items: center;
    align-items: start;
    gap: 20px;
    z-index: 1;
}

.groups_container::before {
    content: "";
    background: url("img/Grouply_Logo.png");
    position: fixed;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.4;
    filter: blur(5px);
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 300px;
    height: 300px;
    z-index: 2;
}

.group_cards {
    background: #ffffff;
    width: 100%;;
    height: 25vh;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 3;
    padding: 15px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.group_cards:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 6px rgba(15, 23, 42, 0.2));

}

.group_icon {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background:
        linear-gradient(var(--text-primary)) padding-box,
        linear-gradient(
            135deg,
            #0f172a 0%,      /* text-primary dark */
            #475569 50%,     /* text-secondary mid */
            #0f172a 100%
        ) border-box;

    /* Shadow for depth */
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.group_info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 15px;
}

.group_name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.group_details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.group_limit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.group_limit_number {
    display: flex;
    font-size: 12px;
}

.group_limit_icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.join_btn {
    background-color: var(--accent);
    color: var(--text-primary);

    border-style: solid;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    align-self: center;
    cursor: pointer;
    padding: 10px 20px;
    transition:
        transform 0.3s ease-in-out,
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out;
}

.join_btn:hover {
    transform: scale(1.1);
    background-color: var(--text-primary);
    color: var(--bg-card);
}

/*Group Details Pop Up*/
#groupModal {
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.groupModalContent {
    position: absolute;
    background: var(--bg-card);
    width: 500px;
    max-width: 50%;
    max-height: 85vh;
    padding: 30px;
    border-radius: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.group_header {
    text-align: center;
}

.groupImage {
    width: 120px;
    height: 120px;
    border-radius: 8%;
    object-fit: cover;
    margin-bottom: 10px;
}

.group_title {
    font-size: 22px;
    font-weight: 700;
    margin: 5px 0;
}

.group_members {
    font-size: 14px;
    color: var(--text-secondary);
}

.group_section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.group_section label {
    font-size: 14px;
    font-weight: 700;
}

.group_section p,
.group_section a {
    font-size: 14px;
    line-height: 1.15;
}


#group_qr {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-top: 10px;
    border-radius: 10px;
    border: 2px dashed #ccc;
}