/* BrainBubbles Component Styles - Responsive Design */

.brainbubbles {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    /* max-width: 1200px; */
    min-height: 256px;
    margin-bottom: 16px;
    gap: 20px;
    box-sizing: border-box;
}

.brainbubbles .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brainbubbles .title-text {
    font-family: "Metropolis Semi Bold";
    color: var(--text-color, #4b4a4a);
    font-size: 17px;
    line-height: 20px;
    letter-spacing: 0.17px;
}

.brainbubbles .card {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--cards-background, #ffffff);
    box-shadow: 0 4px 4px 0 #dff4ff;
    border: none;
    position: relative;
}

.brainbubbles .subtitle {
    font-family: "Metropolis Semi Bold";
    color: var(--text-color, #4b4a4a);
    font-size: 17px;
    line-height: 20px;
    letter-spacing: 0.17px;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-weight: 600;
}

.brainbubbles-container {
    position: relative;
    min-height: 256px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.brainbubbles .bubble {
    position: absolute;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    padding-top: 2px;
    z-index: 1;
}

.brainbubbles .bubble:hover {
    transform: scale(1.05) translate(-50%, -50%);
    z-index: 2;
}

.brainbubbles .bubble img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: relative;
    top: -5px;
}

.brainbubbles .bubble div {
    color: white;
    font-family: "Metropolis", sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 12px;
    letter-spacing: 0.15px;
    position: relative;
    top: -5px;
    width: 88%;
    text-align: center;
    padding: 0 2px;
}

/* Cover message styles */
.brainbubbles .cover-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.brainbubbles .cover-message-title {
    font-family: "Metropolis Semi Bold";
    font-weight: bold;
    font-size: 18px;
    color: var(--text-color, #4b4a4a);
    margin-bottom: 10px;
}

.brainbubbles .cover-message-text {
    font-family: "Metropolis Semi Bold";
    font-size: 14px;
    color: var(--text-color, #4b4a4a);
    line-height: 1.4;
}

.brainbubbles .cover-message-text .highlight {
    color: var(--primary-color, #667eea);
    font-weight: bold;
}

/* Dark theme support */
.dark .brainbubbles .card {
    background-color: var(--cards-background, #1f2120);
    box-shadow: none;
}

.dark .brainbubbles .title .title-text,
.dark .brainbubbles .subtitle,
.dark .brainbubbles .cover-message-title,
.dark .brainbubbles .cover-message-text {
    color: var(--text-color, #ffffff);
}

/* Responsive design - Desktop and large screens */
@media (min-width: 1601px) {
    .brainbubbles {
        width: 85%;
        min-width: 1200px;
    }
    
    .brainbubbles-container {
        height: 230px;
        padding: 20px;
    }
}

/* Responsive design - Desktop (1200px - 1600px) */
@media (max-width: 1600px) and (min-width: 1200px) {
    .brainbubbles {
        width: 85%;
        min-width: 900px;
    }
    
    .brainbubbles-container {
        height: 220px;
        padding: 18px;
    }
}

/* Responsive design - Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .brainbubbles {
        width: 95%;
        min-width: auto;
    }
    
    .brainbubbles-container {
        height: 320px;
        padding: 16px;
    }
    
    .brainbubbles .title-text {
        font-size: 16px;
        line-height: 19px;
    }
    
    .brainbubbles .subtitle {
        font-size: 16px;
        line-height: 19px;
    }
    
    .brainbubbles .bubble div {
        font-size: 13px;
        line-height: 11px;
    }
    
    .brainbubbles .bubble img {
        width: 36px;
        height: 36px;
    }
}

/* Responsive design - Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .brainbubbles {
        width: 100%;
        min-width: auto;
        min-height: 200px;
        gap: 16px;
    }
    
    .brainbubbles-container {
        height: 180px;
        padding: 12px;
    }
    
    .brainbubbles .title-text {
        font-size: 15px;
        line-height: 18px;
    }
    
    .brainbubbles .subtitle {
        font-size: 15px;
        line-height: 18px;
        top: 12px;
        left: 12px;
    }
    
    .brainbubbles .bubble div {
        font-size: 10px;
        line-height: 10px;
    }
    
    .brainbubbles .bubble img {
        width: 24px;
        height: 24px;
    }
    
    .brainbubbles .cover-message-title {
        font-size: 16px;
    }
    
    .brainbubbles .cover-message-text {
        font-size: 13px;
    }
}

/* Responsive design - Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .brainbubbles {
        min-height: 160px;
        gap: 12px;
    }
    
    .brainbubbles-container {
        height: 150px;
        padding: 10px;
    }
    
    .brainbubbles .title-text {
        font-size: 18px;
    }
    
    .brainbubbles .subtitle {
        font-size: 18px;
        top: 10px;
        left: 10px;
    }
    
    .brainbubbles .bubble div {
        font-size: 14px;
    }
    
    .brainbubbles .bubble img {
        width: 20px;
        height: 20px;
    }
    
    .brainbubbles .cover-message-title {
        font-size: 15px;
    }
    
    .brainbubbles .cover-message-text {
        font-size: 12px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .brainbubbles-container {
        height: 140px;
        padding: 10px;
    }
    
    .brainbubbles .bubble div {
        font-size: 9px;
        line-height: 9px;
    }
    
    .brainbubbles .bubble img {
        width: 20px;
        height: 20px;
    }
}
