/* ========================================
   MOJO CPTs Shortcodes - BuddyBoss Integration
   ======================================== */

/* Grundlegende Shortcode-Container */
.mojo-shortcode {
    margin: 2rem 0;
}

.mojo-shortcode .mojo-no-posts {
    text-align: center;
    padding: 2rem;
    background: var(--bb-body-background-color, #f8f9fa);
    border-radius: 8px;
    color: var(--bb-body-text-color, #6c757d);
    font-style: italic;
}

/* ========================================
   Team Shortcodes - BuddyBoss Grid Integration
   ======================================== */

/* Card Template - 4 Spalten Grid */
.mojo-template-card .mojo-team-grid,
.mojo-team-grid.mojo-team-grid-card {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

/* Grid Template - Responsive Grid */
.mojo-template-grid .mojo-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* List Template - Einspaltig */
.mojo-template-list .mojo-team-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Team Items - BuddyBoss Card Style */
.mojo-team-item {
    background: var(--bb-card-background, #fff);
    border-radius: var(--bb-card-border-radius, 12px);
    box-shadow: var(--bb-card-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    transition: all 0.2s ease;
}

.mojo-team-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--bb-card-shadow-hover, 0 4px 16px rgba(0, 0, 0, 0.15));
}

/* Team Images */
.mojo-team-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.mojo-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mojo-team-item:hover .mojo-team-image img {
    transform: scale(1.05);
}

/* Team Content */
.mojo-team-content {
    padding: 1.5rem;
}

.mojo-team-name {
    margin: 0 0 0.75rem 0;
    font-size: var(--bb-heading-font-size, 1.25rem);
    font-weight: var(--bb-heading-font-weight, 600);
    line-height: 1.3;
    color: var(--bb-heading-color, #2c3e50);
}

.mojo-team-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mojo-team-name a:hover {
    color: var(--bb-primary-color, #007cba);
}

.mojo-team-excerpt {
    color: var(--bb-body-text-color, #6c757d);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   Event Shortcodes
   ======================================== */

.mojo-events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mojo-event-item {
    background: var(--bb-card-background, #fff);
    border: 1px solid var(--bb-border-color, #e9ecef);
    border-radius: var(--bb-card-border-radius, 8px);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.mojo-event-item:hover {
    border-color: var(--bb-primary-color, #007cba);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.mojo-event-title {
    margin: 0 0 1rem 0;
    font-size: var(--bb-heading-font-size, 1.3rem);
    font-weight: var(--bb-heading-font-weight, 600);
    line-height: 1.3;
    color: var(--bb-heading-color, #2c3e50);
}

.mojo-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mojo-event-title a:hover {
    color: var(--bb-primary-color, #007cba);
}

.mojo-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--bb-body-text-color, #6c757d);
}

.mojo-event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mojo-event-excerpt {
    color: var(--bb-body-text-color, #495057);
    line-height: 1.6;
}

/* ========================================
   Diagnose Shortcodes
   ======================================== */

.mojo-diagnoses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mojo-diagnose-item {
    background: var(--bb-card-background, #f8f9fa);
    border-radius: var(--bb-card-border-radius, 8px);
    padding: 1.25rem;
    border-left: 4px solid var(--bb-danger-color, #e74c3c);
    transition: background-color 0.2s ease;
}

.mojo-diagnose-item:hover {
    background: var(--bb-card-background-hover, #e9ecef);
}

.mojo-diagnose-title {
    margin: 0 0 0.75rem 0;
    font-size: var(--bb-heading-font-size, 1.2rem);
    font-weight: var(--bb-heading-font-weight, 600);
    color: var(--bb-heading-color, #2c3e50);
}

.mojo-diagnose-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mojo-diagnose-title a:hover {
    color: var(--bb-danger-color, #e74c3c);
}

.mojo-diagnose-excerpt {
    color: var(--bb-body-text-color, #6c757d);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ========================================
   Fallstudien Shortcodes
   ======================================== */

/* Card Template - 4 Spalten Grid */
.mojo-template-card .mojo-fallstudien-grid,
.mojo-fallstudien-grid.mojo-fallstudien-grid-card {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

/* Grid Template - Responsive Grid */
.mojo-template-grid .mojo-fallstudien-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mojo-fallstudie-item {
    background: var(--bb-card-background, #fff);
    border-radius: var(--bb-card-border-radius, 12px);
    box-shadow: var(--bb-card-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    transition: all 0.2s ease;
}

.mojo-fallstudie-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--bb-card-shadow-hover, 0 4px 16px rgba(0, 0, 0, 0.15));
}

.mojo-fallstudie-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.mojo-fallstudie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mojo-fallstudie-item:hover .mojo-fallstudie-image img {
    transform: scale(1.05);
}

.mojo-fallstudie-content {
    padding: 1.5rem;
}

.mojo-fallstudie-title {
    margin: 0 0 1rem 0;
    font-size: var(--bb-heading-font-size, 1.25rem);
    font-weight: var(--bb-heading-font-weight, 600);
    line-height: 1.3;
    color: var(--bb-heading-color, #2c3e50);
}

.mojo-fallstudie-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mojo-fallstudie-title a:hover {
    color: var(--bb-primary-color, #007cba);
}

.mojo-fallstudie-excerpt {
    color: var(--bb-body-text-color, #6c757d);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design - BuddyBoss Breakpoints
   ======================================== */

/* BuddyBoss Standard Breakpoints */
@media (max-width: 1200px) {
    .mojo-template-card .mojo-team-grid,
    .mojo-template-card .mojo-fallstudien-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .mojo-template-card .mojo-team-grid,
    .mojo-template-card .mojo-fallstudien-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mojo-template-card .mojo-team-grid,
    .mojo-template-card .mojo-fallstudien-grid,
    .mojo-template-grid .mojo-team-grid,
    .mojo-template-grid .mojo-fallstudien-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mojo-template-list .mojo-team-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .mojo-template-list .mojo-team-image {
        width: 100px;
        height: 100px;
    }
    
    .mojo-event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .mojo-shortcode {
        margin: 1rem 0;
    }
    
    .mojo-team-content,
    .mojo-fallstudie-content {
        padding: 1rem;
    }
    
    .mojo-event-item {
        padding: 1rem;
    }
    
    .mojo-event-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   BuddyBoss Theme Integration
   ======================================== */

/* Verwende BuddyBoss CSS-Variablen wenn verfügbar */
.mojo-shortcode {
    font-family: var(--bb-body-font-family, inherit);
}

.mojo-team-name,
.mojo-event-title,
.mojo-diagnose-title,
.mojo-fallstudie-title {
    font-family: var(--bb-heading-font-family, inherit);
}

/* BuddyBoss Button Style Integration */
.mojo-team-item a,
.mojo-event-item a,
.mojo-diagnose-item a,
.mojo-fallstudie-item a {
    color: var(--bb-link-color, #007cba);
}

.mojo-team-item a:hover,
.mojo-event-item a:hover,
.mojo-diagnose-item a:hover,
.mojo-fallstudie-item a:hover {
    color: var(--bb-link-hover-color, #005a87);
}

/* ========================================
   Utility Classes
   ======================================== */

.mojo-text-center { text-align: center; }
.mojo-text-left { text-align: left; }
.mojo-text-right { text-align: right; }

.mojo-mb-0 { margin-bottom: 0; }
.mjo-mb-1 { margin-bottom: 0.5rem; }
.mojo-mb-2 { margin-bottom: 1rem; }
.mojo-mb-3 { margin-bottom: 1.5rem; }

.mojo-mt-0 { margin-top: 0; }
.mojo-mt-1 { margin-top: 0.5rem; }
.mojo-mt-2 { margin-top: 1rem; }
.mojo-mt-3 { margin-top: 1.5rem; }

/* ========================================
   Animation Classes
   ======================================== */

.mojo-fade-in {
    animation: mojoFadeIn 0.6s ease-in;
}

@keyframes mojoFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mojo-slide-in-left {
    animation: mojoSlideInLeft 0.5s ease-out;
}

@keyframes mojoSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
