/**
 * AI Article Toolbar Styles
 */

.ai-article-toolbar {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ai-toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ai-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Translate Button */
.ai-translate-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-read-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ai-translate-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.ai-translate-btn:active {
    transform: scale(0.98);
}

.ai-translate-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.ai-translate-btn.loading .ai-btn-text::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #1e40af;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Icon Buttons */
.ai-toolbar-icon-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1f2937;
    padding: 0;
}

.ai-toolbar-icon-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

.ai-toolbar-icon-btn:active {
    transform: scale(0.95);
}

/* Font Size Buttons - Circular with Devanagari letter */
.ai-font-size-btn {
    border-radius: 50% !important;
    border: 2px solid #1e40af !important;
    background: #fff;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Small font size button */
.ai-font-size-0 {
    width: 28px;
    height: 28px;
}

.ai-font-small {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
    color: inherit;
}

/* Medium font size button */
.ai-font-size-1 {
    width: 32px;
    height: 32px;
}

.ai-font-medium {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
    color: inherit;
}

/* Large font size button */
.ai-font-size-2 {
    width: 36px;
    height: 36px;
}

.ai-font-large {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
    color: inherit;
}

.ai-font-size-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6 !important;
}

.ai-font-size-btn.active {
    background: #1e40af;
    border-color: #1e40af !important;
    color: #fff;
}

/* Featured Image Caption Overlay */
.featured--img {
    position: relative;
    overflow: hidden;
}

.featured--img .landing__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent);
    color: #fff;
    padding: 12px 16px 10px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    z-index: 10;
    border-radius: 0 8px 0 0;
}

.featured--img img,
.featured--img iframe {
    display: block;
    width: 100%;
}

/* Translation Disclaimer */
.ai-translation-disclaimer {
    background: #f5f5f5;
    border: 2px solid #ff9800;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ai-disclaimer-inner {
    max-width: 100%;
}

.ai-disclaimer-title {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px 0;
    padding: 0;
}

.ai-disclaimer-inner p {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 8px 0;
}

.ai-disclaimer-inner p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-toolbar-container {
        flex-wrap: nowrap;
        gap: 12px;
    }
    
    .ai-toolbar-left {
        flex: 1;
        min-width: 0;
    }
    
    .ai-translate-btn {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ai-toolbar-right {
        flex-shrink: 0;
    }
    
    .ai-translated-content {
        padding: 16px;
        margin: 16px 0;
    }
}

/* Font size classes applied to article content */
.news-content-area.font-size-1,
.entry-content.font-size-1,
.post-content.font-size-1,
.singlePost-content.font-size-1 {
    font-size: 1.1em;
}

.news-content-area.font-size-2,
.entry-content.font-size-2,
.post-content.font-size-2,
.singlePost-content.font-size-2 {
    font-size: 1.2em;
}

.news-content-area.font-size-reset,
.entry-content.font-size-reset,
.post-content.font-size-reset,
.singlePost-content.font-size-reset {
    font-size: 1em;
}

/* Apply font size to content inside */
.news-content-area.font-size-1 p,
.news-content-area.font-size-1 div,
.entry-content.font-size-1 p,
.entry-content.font-size-1 div {
    font-size: 1.1em;
}

.news-content-area.font-size-2 p,
.news-content-area.font-size-2 div,
.entry-content.font-size-2 p,
.entry-content.font-size-2 div {
    font-size: 1.2em;
}

/* Title font sizes */
h1.font-size-1,
.entry-title.font-size-1,
.post-title.font-size-1 {
    font-size: 1.1em;
}

h1.font-size-2,
.entry-title.font-size-2,
.post-title.font-size-2 {
    font-size: 1.2em;
}

