/* Walkathon E-Badges Styles */

.walkathon-e-badges-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.walkathon-e-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(107px, 1fr));
    gap: 15px;
    padding: 0;
    margin: 0;
}

.walkathon-e-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background: #fff;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.walkathon-e-badge-icon-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.walkathon-e-badge-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.walkathon-e-badge-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.3;
    margin-top: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Poppins', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .walkathon-e-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(133px, 1fr));
        gap: 10px;
    }
    
    .walkathon-e-badge-name {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .walkathon-e-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 8px;
    }
    
    .walkathon-e-badge-name {
        font-size: 10px;
    }
}

@media (min-width: 820px) and (max-width: 1180px) {
    .walkathon-e-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 10px;
    }
    
    .walkathon-e-badge-name {
        font-size: 13px;
    }
}

/* View more link (individual badges) */
.walkathon-e-badges-view-more-wrap {
    margin-top: 12px;
}
.walkathon-e-badges-view-more {
    font-weight: 600;
    color: #008249;
    text-decoration: none;
    font-size: 14px;
}
.walkathon-e-badges-view-more:hover {
    color: #006633;
    text-decoration: underline;
}

/* All E-Badges modal - badge items in modal */
#walkathon-e-badges-all-modal .walkathon-e-badge-modal-item {
    /* max-width: 100px; */
    margin: 0 auto;
}
#walkathon-e-badges-all-modal .walkathon-e-badge-modal-item .walkathon-e-badge-name {
    font-size: 11px;
    margin-top: 6px;
}

/* Share Button Styles */
.walkathon-e-badge-share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0;
}

.walkathon-e-badge-item:hover .walkathon-e-badge-share-overlay {
    opacity: 1;
}

.walkathon-e-badge-share-btn {
    background: #008249;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    padding: 0;
}

.walkathon-e-badge-share-btn:hover {
    background: #006638;
    transform: scale(1.1);
}

.walkathon-e-badge-share-btn svg {
    width: 20px;
    height: 20px;
}

/* Share Modal Styles - Bootstrap 5 Compatible - solid opaque background */
#walkathon-badge-share-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
}
#walkathon-badge-share-modal.modal,
#walkathon-badge-share-modal.modal.show {
    opacity: 1 !important;
}
#walkathon-badge-share-modal .modal-dialog {
    opacity: 1 !important;
}

#walkathon-badge-share-modal .modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.25rem 1.5rem;
}

#walkathon-badge-share-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

#walkathon-badge-share-modal .modal-body {
    padding: 1.5rem;
}

.walkathon-share-btn {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    min-height: 48px;
}

.walkathon-share-btn:hover {
    border-color: #008249;
    background: #f5f5f5;
    transform: translateY(-2px);
}

.walkathon-share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.walkathon-share-facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.walkathon-share-twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.walkathon-share-linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
}

.walkathon-share-whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
}

.walkathon-share-copy:hover {
    border-color: #008249;
    color: #008249;
}

/* Copy success message uses Bootstrap alert class */
#walkathon-share-copy-success {
    font-size: 14px;
}

/* Share Page Styles */
.walkathon-share-badge-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f5f5f5;
}

.walkathon-share-badge-container {
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.walkathon-share-badge-icon {
    margin-bottom: 30px;
}

.walkathon-share-badge-icon img {
    max-width: 200px;
    height: auto;
}

.walkathon-share-badge-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.walkathon-share-badge-description {
    font-size: 18px;
    color: #666;
    margin: 0 0 25px 0;
}

.walkathon-share-badge-message {
    font-size: 16px;
    color: #333;
    margin: 0 0 30px 0;
}

.walkathon-share-badge-cta {
    margin-top: 30px;
}

.walkathon-share-cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #008249;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.walkathon-share-cta-button:hover {
    background: #006638;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 130, 73, 0.3);
}

.walkathon-share-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.walkathon-share-error p {
    font-size: 18px;
    margin: 0;
}

/* Responsive adjustments for share modal - Bootstrap handles most of this */
@media (max-width: 768px) {
    #walkathon-badge-share-modal .modal-body {
        padding: 1.25rem;
    }
    
    .walkathon-share-badge-container {
        padding: 40px 25px;
    }
    
    .walkathon-share-badge-title {
        font-size: 26px;
    }
}


