/*
Theme Name: MFRT Blog
Theme URI: https://avuetech.in
Description: A modern, responsive WordPress blog theme with Bootstrap integration. Features include custom header, navigation menu, social media links, newsletter signup, and optimized for SEO and security.
Author: MFRT Team
Author URI: https://avuetech.in
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mfrt-blog
Tags: blog, two-columns, custom-header, custom-menu, featured-images, sticky-post, translation-ready, responsive-design, bootstrap
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4

MFRT Blog is a modern WordPress theme designed for bloggers and content creators.
It features a clean, responsive design with Bootstrap integration and focuses on
readability and user experience.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# WordPress Core Styles
# Theme Styles Import
# WordPress Specific Overrides
# Accessibility
# Security Enhancements
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# WordPress Core Styles
--------------------------------------------------------------*/

/* WordPress alignment classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* WordPress Gallery */
.gallery {
    margin: 0 auto 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33333%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66667%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28571%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11111%;
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
# WordPress Specific Overrides
--------------------------------------------------------------*/

/* Sticky posts */
.sticky {
    border: 2px solid #007cba;
    padding: 1em;
    margin-bottom: 2em;
}

/* Post navigation */
.post-navigation {
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #eee;
}

/* Comment form */
.comment-form {
    margin-top: 2em;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1em;
}

/* Widget styles */
.widget {
    margin-bottom: 2em;
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 1em;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5em;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    left: -9999px;
    position: absolute;
    top: -9999px;
}

.skip-link:focus {
    display: block;
    left: 6px;
    top: 7px;
    z-index: 999999;
}

/*--------------------------------------------------------------
# Security Enhancements
--------------------------------------------------------------*/

/* Prevent content injection */
iframe,
object,
embed {
    max-width: 100%;
}

/* Hide sensitive information */
.error-details {
    display: none;
}

/*--------------------------------------------------------------
# Custom Logo & Branding Styles
--------------------------------------------------------------*/

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    height: auto;
    max-height: 80px;
    transition: all 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.2;
}

.site-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--mfrt-primary-color, #007cba);
}

.site-description {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/*--------------------------------------------------------------
# Enhanced Social Links Styles
--------------------------------------------------------------*/

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1;
}

.social-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Social Links Styles */
.social-links-icons a {
    padding: 10px;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.social-links-icons .social-text {
    display: none;
}

.social-links-text .bi {
    display: none;
}

.social-links-icons_text a {
    padding: 8px 15px;
}

/* Platform-specific colors */
/* .social-link-facebook {
    background-color: #1877f2;
    color: white;
} */

/* .social-link-twitter {
    background-color: #1da1f2;
    color: white;
} */

/* .social-link-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link-linkedin {
    background-color: #0077b5;
    color: white;
}

.social-link-youtube {
    background-color: #ff0000;
    color: white;
} */

.social-link-tiktok {
    background-color: #000000;
    color: white;
}

.social-link-pinterest {
    background-color: #bd081c;
    color: white;
}

.social-link-whatsapp {
    background-color: #25d366;
    color: white;
}

.social-link-telegram {
    background-color: #0088cc;
    color: white;
}

.social-link-github {
    background-color: #333;
    color: white;
}

.social-link-dribbble {
    background-color: #ea4c89;
    color: white;
}

/* Sidebar Social Links */
.sidebar-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-social-links .social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.sidebar-social-links .social-link:hover {
    background-color: var(--mfrt-primary-color, #007cba);
    color: white;
    transform: translateX(5px);
}

.sidebar-social-links .social-link i {
    font-size: 18px;
    min-width: 20px;
}

.sidebar-social-links .social-link span {
    font-weight: 500;
}

/*--------------------------------------------------------------
# Responsive Design for Logo & Social
--------------------------------------------------------------*/

@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .social-link {
        justify-content: center;
    }
    
    .social-links-icons a {
        width: 35px;
        height: 35px;
        padding: 8px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .custom-logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .social-link {
        gap: 5px;
    }
    
    .social-links-icons a {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .sidebar-social-links .social-link {
        padding: 10px 12px;
    }
}

/*--------------------------------------------------------------
# Single Post & Sharing Styles
--------------------------------------------------------------*/

.social-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.social-share a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: white;
}

.share-facebook { background-color: #1877f2; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-whatsapp { background-color: #25d366; }
.share-email { background-color: #6c757d; }

.social-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.tags-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tags-label {
    font-weight: bold;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-link {
    padding: 4px 12px;
    background-color: #f1f3f4;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--mfrt-primary-color, #007cba);
    color: white;
}

.author-bio {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.author-bio .author-avatar img {
    border-radius: 50%;
}

.author-bio .author-info h4 {
    margin: 0 0 10px 0;
}

.author-bio .author-info h4 a {
    color: var(--mfrt-primary-color, #007cba);
    text-decoration: none;
}

.related-posts {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.related-post-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.related-post-item:hover {
    transform: translateY(-5px);
}

.related-post-item .post-content {
    padding: 15px;
}

.related-post-item h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.related-post-item h5 a {
    color: #333;
    text-decoration: none;
}

.related-post-item .post-date {
    font-size: 13px;
    color: #666;
}

.post-navigation {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.nav-link {
    display: block;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--mfrt-primary-color, #007cba);
    color: white;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.7;
}

.nav-title {
    display: block;
    font-weight: bold;
}

/*--------------------------------------------------------------
# Customizer Live Preview Styles
--------------------------------------------------------------*/

.site-branding.customizer-preview {
    transition: all 0.3s ease;
}

.custom-logo.customizer-preview {
    transition: all 0.3s ease;
}

/*--------------------------------------------------------------
# Import Original Theme Styles
--------------------------------------------------------------*/
/* The original theme styles are loaded via functions.php to ensure proper WordPress integration */