/* Dark Mode Styles */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --surface-light: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-secondary: #1e293b;
    --surface-light: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --card-shadow: rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Print Styles */
@media print {

    .theme-toggle,
    .back-button,
    .search-filter-container,
    .sort-container,
    footer,
    .share-buttons {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .blog-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }

    article {
        max-width: 100%;
    }

    .hero-image {
        max-height: 300px;
    }

    a {
        text-decoration: underline;
        color: black;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    align-items: center;
}

.share-buttons-label {
    font-weight: 600;
    color: var(--text-main);
    margin-right: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.linkedin {
    background: #0077B5;
}

.share-btn.reddit {
    background: #FF4500;
}

.share-btn.copy {
    background: #64748b;
}

.share-btn.copy.copied {
    background: #10b981;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}