/* Landing Pages Widget Styles */
.landing-pages-widget {
    background: white;
    margin: 2rem 0;
    padding: 2rem 0;
}

.tabs-section {
    background: white;
}

.tabs-navigation {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.explore-text {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 500;
    margin-right: 1rem;
    white-space: nowrap;
    margin-bottom: 8px;
}

#landingPagesTabs {
    font-size: 1.5rem;
    border-bottom: none;
}

.tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.tab-item {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    margin-bottom: -17px;
}

.tab-item:hover {
    color: #28a745;
}

.tab-item.active {
    color: #28a745;
    background: white;
    border-left: 2px solid #e0e0e0;
    border-right: 2px solid #e0e0e0;
    border-bottom: 1px solid white;
}

.no-items {
    padding: 4rem 0;
    text-align: center;
}

.no-items-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-items-content i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-items-content h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.no-items-content p {
    color: #6c757d;
    line-height: 1.6;
}

/* Images Landing Page Styles */
.images-landing-page {
    padding: 0;
}

.images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1300px;
    min-height: 600px;
    position: relative;
}

.images-cloud {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.image-cloud-item {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.cloud-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.image-placeholder span {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    word-break: break-word;
}

.no-images {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    padding: 2rem;
}

/* Word Cloud Styles */
.titles-only-landing-page {
    padding: 0;
}

.wordcloud-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

#wordcloud-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-indicator p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wordcloud-container {
        max-width: 100%;
        padding: 1rem;
    }

    #wordcloud-canvas {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .widget-title {
        font-size: 1.5rem;
    }

    .widget-description {
        font-size: 0.9rem;
    }

    .nav-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-link {
        min-width: 250px;
        padding: 0.75rem 1rem;
    }

    .tab-title {
        font-size: 0.9rem;
    }

    .tab-counter {
        font-size: 0.8rem;
    }

    .wordcloud-container {
        padding: 1rem;
        margin: 0 1rem;
    }

    #wordcloud-canvas {
        width: 100%;
        height: 400px;
    }

    .images-container {
        padding: 1rem;
        margin: 0 1rem;
        min-height: 400px;
    }

    .images-cloud {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .widget-title {
        font-size: 1.3rem;
    }

    .widget-description {
        font-size: 0.85rem;
    }

    .nav-link {
        min-width: 200px;
        padding: 0.5rem 0.75rem;
    }

    .tab-title {
        font-size: 0.85rem;
    }

    .tab-counter {
        font-size: 0.75rem;
    }

    .wordcloud-section {
        padding: 1rem 0 2rem 0;
    }

    .wordcloud-container {
        padding: 0.5rem;
        margin: 0 0.5rem;
    }

    #wordcloud-canvas {
        width: 100%;
        height: 300px;
    }

    .images-container {
        padding: 0.5rem;
        margin: 0 0.5rem;
        min-height: 300px;
    }

    .images-cloud {
        height: 300px;
    }
}
