/**
 * Ambassadors Module - Front CSS
 * Simplified design using theme base styles
 *
 * @author    Coody
 * @copyright 2026 Coody
 */

/* ========================================
   Container & Layout
   ======================================== */
.ambassadors-container {
    margin-bottom: 90px;
}

.ambassadors-intro {
    margin: 0;
    max-width: 750px;
    text-align: left;
    margin-bottom: 50px;

}

.ambassadors-intro-text {
    line-height: 1.7;
}

/* ========================================
   Grid Layout (2 rows x 3 columns)
   ======================================== */
.ambassadors-grid {
    display: grid;
    gap: 30px;
}

.ambassadors-grid.items-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ambassadors-grid.items-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ambassadors-grid.items-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .ambassadors-grid.items-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .ambassadors-grid.items-3,
    .ambassadors-grid.items-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ambassadors-grid.items-2,
    .ambassadors-grid.items-3,
    .ambassadors-grid.items-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Ambassador Cards - Simple Style
   ======================================== */
.ambassador-tile {
    border: 2px solid #F3F3F3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease;
}

.ambassador-tile:hover {
    border-color: #50CC06;
}

.ambassador-tile-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hide back side - show all content directly */
.ambassador-tile-back {
    display: none;
}

.ambassador-tile-front {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image */
.ambassador-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.ambassador-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ambassador-tile:hover .ambassador-image {
    transform: scale(1.08);
}

.ambassador-image-overlay {
    display: none;
}

/* Info section - always visible */
.ambassador-info {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ambassador-name {
    font-weight: 700;
    margin: 0 0 8px;
}

.ambassador-description {
    line-height: 1.5;
}

/* Hashtags */
.ambassador-hashtags {
    color: #50CC06;
    font-weight: 600;
    line-height: 1.6;
    word-spacing: 4px;
}

/* Social links - always visible */
.ambassador-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.ambassador-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #F3F3F3;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    line-height: 0;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.ambassador-social .social-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.ambassador-social .social-link__icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Optical centering for original icon set */
.ambassador-social .social-facebook .social-link__icon svg {
    transform: translateY(2px);
}

.ambassador-social .social-instagram .social-link__icon svg {
    transform: translateY(1px);
}

.ambassador-social .social-tiktok .social-link__icon svg {
    transform: translateY(1px);
}

.ambassador-social .social-link:hover {
    border-color: #50CC06;
    color: #50CC06;
}

.ambassador-social .social-link::after {
    display: none !important;
    content: none !important;
}

/* View Profile Button - always visible */
.ambassador-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    border: 2px solid #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ambassador-more-btn:hover {
    background: #50CC06;
    border-color: #50CC06;
    color: #fff;
}

.ambassador-more-btn:after {
    display: none !important;
}

.ambassador-more-btn i {
    font-size: 1rem;
}

/* ========================================
   Empty State
   ======================================== */
.ambassadors-empty {
    text-align: center;
    padding: 80px 20px;
}

.ambassadors-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ========================================
   Detail Page Styles
   ======================================== */
.ambassador-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Back Navigation */
.ambassador-back-nav {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:after {
    display: none !important;
}

.back-link i {
    font-size: 1.2rem;
}

/* Profile Card */
.ambassador-profile-card {
    border: 2px solid #F3F3F3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ambassador-profile-header {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: #000;
    color: #fff;
}

@media (max-width: 768px) {
    .ambassador-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }
}

/* Profile Image */
.ambassador-profile-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.ambassador-profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.ambassador-profile-image-glow {
    display: none;
}

/* Profile Info */
.ambassador-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ambassador-profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: #fff;
}

.ambassador-profile-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 25px;
    line-height: 1.6;
}

/* Large Social Links */
.ambassador-profile-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .ambassador-profile-social {
        justify-content: center;
    }
}

.social-link-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link-large:hover {
    background: #50CC06;
    color: #000;
}

.social-link-large:after {
    display: none !important;
}

.social-link-large svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Profile Content */
.ambassador-profile-content {
    padding: 40px;
}

.content-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #50CC06;
}

.ambassador-profile-description {
    font-size: 1rem;
    line-height: 1.8;
}

.ambassador-profile-description p {
    margin-bottom: 15px;
}

/* ========================================
   Read More Link
   ======================================== */
.read-more-link {
    text-decoration: underline;
    color: inherit;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: 5px;
    font-size: inherit;
    display: inline-block;
} 

.read-more-link:hover {
    opacity: 0.8;
    text-decoration: none;

}
