/*
Theme Name:     Xivig Elite Magazine
Theme URI:      https://xivig.com/xivig-elite-magazine
Author:         Xivig
Author URI:     https://xivig.com/
Description:    Xivig Elite Magazine is a modern and clean WordPress theme for news and magazine websites.
Version:        1.0.0
License:        GNU General Public License v3 or later
License URI:    http://www.gnu.org/licenses/gpl-3.0.html
Text Domain:    xivig-elite-magazine
Tags:           news, magazine, grid-layout, custom-colors, one-column, two-columns, three-columns, left-sidebar, right-sidebar, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, custom-background, threaded-comments, custom-logo
*/

/* Boxed Layout Support */
body.boxed {
    background-color: #f4f4f4;
}
body.boxed .ticker-wrap,
body.boxed .main-header,
body.boxed main,
body.boxed .site-footer {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.single-post-page .entry-content p {
    text-align: justify;
}
body.boxed .ticker-wrap {
    margin-top: 20px;
    border-radius: 8px 8px 0 0;
}
body.boxed footer {
    border-radius: 0 0 8px 8px;
    margin-bottom: 20px;
}
/* Elite Gallery & Author Styles */
.wp-block-gallery {
    margin-bottom: 2rem;
    gap: 1rem;
}
.wp-block-gallery .wp-block-image {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.wp-block-gallery .wp-block-image:hover {
    transform: scale(1.02);
}
.author-avatar-wrapper img {
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.letter-spacing-1 {
    letter-spacing: 1px;
}
/* Elite Author Page Styles */
.author-header-elite {
    position: relative;
    overflow: hidden;
}
.author-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--text-danger) 0%, #222 100%);
    opacity: 0.1;
    z-index: 0;
}
.author-stats-bar {
    border-top: 1px solid var(--border-color);
}
.stat-item {
    padding: 0 20px;
}
.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}
/* Elite Pagination Styles */
.pagination-elite ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 8px;
}
.pagination-elite .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.pagination-elite .page-numbers.current {
    background-color: var(--text-danger);
    border-color: var(--text-danger);
    color: #fff;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}
.pagination-elite .page-numbers:hover:not(.current) {
    background-color: #f8f9fa;
    border-color: var(--text-danger);
    color: var(--text-danger);
    transform: translateY(-2px);
}
.pagination-elite .dots {
    border: none;
    background: transparent;
}
.pagination-elite .prev, .pagination-elite .next {
    background-color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
/* Elite Single Post & Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2000;
}
.progress-bar-xivig {
    height: 4px;
    background: var(--text-danger);
    width: 0%;
}
.entry-header .entry-title {
    color: var(--text-primary);
    letter-spacing: -1.5px;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.entry-thumbnail {
    position: relative;
    overflow: hidden;
}
.entry-thumbnail img {
    transition: transform 0.5s ease;
}
.entry-thumbnail:hover img {
    transform: scale(1.02);
}
.entry-thumbnail-meta {
    margin-top: -5px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.post-share-mini a {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.post-share-mini a:hover {
    color: var(--text-danger) !important;
}
.entry-content {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
}
.entry-content p {
    margin-bottom: 1.25rem;
}
.entry-content blockquote {
    padding: 40px;
    border-left: 5px solid var(--text-danger);
    background: #f9f9f9;
    font-style: italic;
    font-size: 1.4rem;
    margin: 40px 0;
    color: #444;
}
.elite-article-body {
    background: #fff;
    padding: 20px 0;
}
.share-box .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.share-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.letter-spacing-1 {
    letter-spacing: 1.5px;
}
.rounded-4 {
    border-radius: 1.5rem !important;
}
/* Elite Breadcrumbs */
.xivig-breadcrumb-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.xivig-breadcrumb-list {
    display: inline-flex;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
    border-radius: 0;
    border-bottom: 3px solid var(--text-danger);
    transition: border-color 0.3s ease;
}
.xivig-breadcrumb-item {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.xivig-breadcrumb-item + .xivig-breadcrumb-item::before {
    content: "/";
    padding: 0 15px;
    color: var(--text-muted);
    font-weight: 300;
}
.xivig-breadcrumb-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.xivig-breadcrumb-item a:hover {
    color: var(--text-danger);
}
.xivig-breadcrumb-item.active {
    color: var(--text-danger);
    font-weight: 600;
}

/* Mobile Hamburger Menu Center Alignment */
@media (max-width: 991.98px) {
    #mainNavbar .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
    }
    #mainNavbar .navbar-nav {
        align-items: center !important;
        width: 100%;
        text-align: center;
    }
    #mainNavbar .navbar-nav .menu-item {
        width: 100%;
    }
}
.rounded-search-input {
    border-radius: 9999px;
}
.rounded-newsletter-input {
    border-radius: 9999px;
}
/* Premium Social Box Styling */
.social-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.social-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.social-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.social-box:hover::before {
    transform: scaleX(1);
}
.social-box.facebook { background: linear-gradient(135deg, #1877F2, #0b5ac1); }
.social-box.twitter { background: linear-gradient(135deg, #000000, #333333); }
.social-box.youtube { background: linear-gradient(135deg, #FF0000, #c40000); }
.social-box.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-box.linkedin { background: linear-gradient(135deg, #0077B5, #005582); }
.social-box.pinterest { background: linear-gradient(135deg, #E60023, #a30018); }
.social-box.tiktok { background: linear-gradient(135deg, #000000, #25f4ee); }
.social-box.telegram { background: linear-gradient(135deg, #0088cc, #005a87); }
