/**
 * GLS Academy - AI Blog Modern Styling
 */

html {
    scroll-behavior: smooth;
}

h2 {
    scroll-margin-top: 100px;
    /* Prevent header overlap */
}

.gls-ai-blog-page .gls-course-wrapper .container {
    max-width: 1100px;
}

.gls-ai-blog-page .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gls-ai-blog-page .card:hover {
    transform: translateY(-5px);
}

/* TOC Styling */
.gls-toc-card {
    border-left: 5px solid #3b82f6 !important;
    transition: transform 0.3s ease;
}

.gls-toc-link {
    transition: all 0.2s ease;
}

.gls-toc-link:hover {
    color: #3b82f6 !important;
    padding-left: 5px;
}

/* Related Links */
.gls-link-hover {
    transition: color 0.2s ease;
}

.gls-link-hover:hover {
    color: #3b82f6 !important;
    text-decoration: underline;
}

/* Navigation Cards */
.gls-nav-card {
    border-radius: 15px;
    transition: all 0.3s ease !important;
}

.gls-nav-card:hover {
    background: #f8fafc;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Tags Styling */
.footer-entry .tags h4 {
    display: block;
    margin-bottom: 15px;
}

.footer-entry .tags a {
    display: inline-block;
    padding: 6px 15px;
    margin: 0 8px 10px 0;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.footer-entry .tags a:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Floating Action Buttons (FAB) */
.gls-floating-actions {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    flex-direction: column;
    gap: 15px;
    display: none;
    /* Default hidden, show on MD+ */
}

@media (min-width: 768px) {
    .gls-floating-actions {
        display: flex;
    }
}

.gls-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.gls-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gls-fab .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.gls-fab-pdf {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.gls-fab-demo {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.gls-fab-label {
    position: absolute;
    right: 75px;
    background: #1f3154;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.gls-fab-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #1f3154;
}

.gls-fab:hover .gls-fab-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Sticky Bar */
.gls-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    z-index: 10000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.gls-mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    color: #fff !important;
    transition: all 0.2s;
}

.gls-mobile-btn .dashicons {
    margin-right: 8px;
}

.gls-mobile-btn-pdf {
    background: #22c55e;
}

.gls-mobile-btn-demo {
    background: #3b82f6;
}

.gls-mobile-btn:active {
    filter: brightness(0.9);
}

/* Header Share Icons */
.gls-header-share a {
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gls-header-share a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.gls-header-share .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Utilities */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}