/*
Theme Name: Pixgine
Theme URI: https://pixgine.com
Author: Charuka Sandaruwan
Author URI: https://pixgine.com
Description: Pixgine - Innovative Technology & Digital Solutions WordPress Theme developed by Charuka Sandaruwan.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixgine
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-theme
*/

/* ==========================================================================
   WordPress Core Alignment & Essential Styles
   (Prioritizes Demo Frontend Styling while supporting WordPress Core output)
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0 1.5em 1.5em 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #999996;
    text-align: center;
    margin-top: 0.5rem;
}

.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: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Header Top Bar (Email Left, Social Icons Right)
   ========================================================================== */

.header-top {
    padding: 10px 15px;
}

.header-top-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
}

.header-top-left {
    display: flex;
    align-items: center;
}

.topbar-email a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tj-color-heading-primary, #0c140f);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.topbar-email a i {
    color: var(--tj-color-theme-primary, #19b36b);
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.topbar-email a:hover {
    color: var(--tj-color-theme-primary, #19b36b);
}

.topbar-email a:hover i {
    transform: scale(1.15);
}

.header-top-right {
    display: flex;
    align-items: center;
}

.header-top-socials ul {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-top-socials ul li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.header-top-socials ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    color: var(--tj-color-heading-primary, #0c140f);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--tj-color-border-1, rgba(0, 0, 0, 0.08));
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-top-socials ul li a:hover {
    background-color: var(--tj-color-theme-primary, #19b36b);
    border-color: var(--tj-color-theme-primary, #19b36b);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Light mode specific styling */
.tj-light-mode .topbar-email a {
    color: var(--tj-color-heading-primary, #0c140f);
}

.tj-light-mode .topbar-email a:hover {
    color: var(--tj-color-theme-primary, #19b36b);
}

.tj-light-mode .header-top-socials ul li a {
    color: var(--tj-color-heading-primary, #0c140f);
    border-color: var(--tj-color-border-3, rgba(12, 20, 15, 0.1));
    background-color: rgba(12, 20, 15, 0.04);
}

.tj-light-mode .header-top-socials ul li a:hover {
    background-color: var(--tj-color-theme-primary, #19b36b);
    border-color: var(--tj-color-theme-primary, #19b36b);
    color: #ffffff;
}