/* Africa Sphere Features Plugin Styles */

/* ==================== CHATBOT STYLES ==================== */
.asf-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.asf-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #167E84;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #fff;
}

.asf-chatbot-toggle:hover {
    background: #126268;
    transform: scale(1.1);
}

.asf-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.asf-chatbot-header {
    background: linear-gradient(135deg, #167E84 0%, #126268 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asf-chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.asf-chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.asf-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f3f4f6;
}

.asf-bot-message,
.asf-user-message {
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.asf-bot-message p,
.asf-user-message p {
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.asf-user-message {
    text-align: right;
}

.asf-user-message p {
    background: #167E84;
    color: #fff;
    display: inline-block;
    max-width: 80%;
}

.asf-bot-message p {
    max-width: 85%;
}

.asf-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.asf-quick-reply {
    background: #fff;
    border: 1px solid #167E84;
    color: #167E84;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.asf-quick-reply:hover {
    background: #167E84;
    color: #fff;
}

.asf-chatbot-input {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

.asf-chatbot-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.asf-chatbot-input button {
    padding: 10px 20px;
    background: #167E84;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.asf-chatbot-input button:hover {
    background: #126268;
}

/* ==================== YOUTUBE VIEWER STYLES ==================== */
.asf-youtube-viewer {
    margin: 30px 0;
}

.asf-youtube-title {
    margin-bottom: 15px;
    font-size: 24px;
    color: #1f2937;
}

.asf-youtube-viewer iframe {
    max-width: 100%;
    border-radius: 8px;
}

.asf-youtube-playlist {
    display: flex;
    gap: 20px;
}

.asf-youtube-main {
    flex: 1;
}

.asf-youtube-thumbnails {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asf-youtube-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.asf-youtube-thumb:hover,
.asf-youtube-thumb.active {
    border-color: #2563eb;
}

.asf-youtube-thumb img {
    width: 100%;
    display: block;
}

.asf-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* YouTube Gallery */
.asf-youtube-gallery {
    display: grid;
    gap: 24px;
    margin: 30px 0;
}

.asf-youtube-gallery.asf-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.asf-youtube-gallery.asf-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.asf-youtube-video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.asf-youtube-video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.asf-youtube-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.asf-youtube-thumbnail img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.asf-youtube-thumbnail:hover img {
    transform: scale(1.05);
}

.asf-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.asf-youtube-thumbnail:hover .asf-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.asf-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2563eb;
}

.asf-youtube-video-item h4 {
    padding: 16px 16px 8px;
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.asf-youtube-video-item p {
    padding: 0 16px 16px;
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* ==================== PODCAST PLAYER STYLES ==================== */
.asf-podcast-player {
    margin: 30px 0;
}

.asf-podcast-episode {
    display: flex;
    gap: 24px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.asf-podcast-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.asf-podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.asf-podcast-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 60px;
}

.asf-podcast-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asf-podcast-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.asf-podcast-meta span {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.asf-podcast-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #1f2937;
}

.asf-podcast-excerpt {
    margin-bottom: 16px;
    color: #6b7280;
    line-height: 1.6;
}

.asf-audio-player {
    width: 100%;
    margin-bottom: 12px;
}

.asf-podcast-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.asf-podcast-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ==================== WISDOM QUOTES STYLES ==================== */
.asf-wisdom-quotes {
    margin: 40px 0;
    position: relative;
}

.asf-quotes-container {
    position: relative;
    min-height: 150px;
}

.asf-quote-item {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.5s ease;
}

.asf-quote-item.active {
    opacity: 1;
    position: relative;
}

.asf-quote-item blockquote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin: 0;
    border-left: none;
    position: relative;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.asf-quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.2;
}

.asf-quote-item blockquote p {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.asf-quotes-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.asf-quote-prev,
.asf-quote-next {
    background: #2563eb;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.asf-quote-prev:hover,
.asf-quote-next:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.asf-quotes-dots {
    display: flex;
    gap: 8px;
}

.asf-quote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asf-quote-dot.active {
    background: #2563eb;
    transform: scale(1.3);
}

/* Scrolling mode */
.asf-quotes-scroll .asf-quotes-container {
    overflow: hidden;
    max-height: 200px;
}

.asf-quotes-scroll .asf-quote-item {
    position: static;
    opacity: 1;
    animation: scrollUp 20s linear infinite;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Random quote */
.asf-random-quote blockquote {
    background: #f3f4f6;
    border-left: 4px solid #2563eb;
    padding: 20px 24px;
    margin: 20px 0;
    font-style: italic;
    color: #374151;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 768px) {
    .asf-chatbot-window {
        width: calc(100vw - 40px);
        height: 450px;
    }

    .asf-youtube-playlist {
        flex-direction: column;
    }

    .asf-youtube-thumbnails {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .asf-youtube-thumb {
        min-width: 120px;
    }

    .asf-podcast-episode {
        flex-direction: column;
    }

    .asf-podcast-thumbnail {
        width: 100%;
        height: auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .asf-quote-item blockquote {
        padding: 24px;
    }

    .asf-quote-item blockquote p {
        font-size: 16px;
    }
}