/* =============================================
   SEO & SHARE BUTTONS STYLES
   ============================================= */

/* Floating Share Buttons (Mobile) */
.floating-share-buttons {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1000;
}

.floating-share-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ikmas-green);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-share-toggle:active,
.floating-share-toggle:focus {
    background: var(--ikmas-green-dark);
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

.floating-share-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 50px;
}

.floating-share-menu.active {
    display: flex;
}

.floating-share-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ikmas-gold-light);
    color: var(--ikmas-green-dark);
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.floating-share-item:hover,
.floating-share-item:focus {
    background: var(--ikmas-green-light);
    color: white;
    outline: none;
}

/* Share Buttons (Desktop & Mobile) */
.share-buttons {
    margin: 16px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.share-btn {
    font-size: 14px;
    padding: 6px 12px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: var(--ikmas-green);
    color: white;
    border-color: var(--ikmas-green);
}

.copy-link-btn {
    transition: all 0.2s ease;
}

.copy-link-btn:hover {
    background-color: var(--ikmas-gold);
    color: var(--ikmas-green-dark);
    border-color: var(--ikmas-gold);
}

/* Lazy Load Images */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image[src]:not([src=""]) {
    opacity: 1;
}

img[loading="lazy"] {
    /*background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);*/
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: transparent;
    padding: 8px 0;
    margin-bottom: 16px;
}

.breadcrumb-item a {
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Schema.org / SEO-friendly sections */
article {
    margin-bottom: 24px;
}

article header {
    margin-bottom: 16px;
}

article h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--ikmas-green-dark);
}

article h2 {
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--ikmas-green-dark);
    border-left: 4px solid var(--ikmas-gold);
    padding-left: 12px;
}

article h3 {
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--ikmas-green);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .floating-share-buttons,
    .share-buttons,
    nav,
    .navbar,
    footer {
        display: none;
    }
    
    article {
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        text-align: left;
    }
    
    article h1 {
        font-size: 24px;
    }
    
    article h2 {
        font-size: 20px;
    }
}
