/*
Theme Name: Backcom Exness Theme
Theme URI: https://www.backcom-trading.com/
Description: A custom WordPress theme for Backcom Exness - 100% automated trading fee refund program. Features responsive design with mobile and desktop optimizations.
Author: Backcom Team
Version: 1.0.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: backcom-exness
Tags: forex, trading, responsive, business, finance
*/

/* Import existing CSS files */
@import url('css/main.css');
@import url('css/desktop.css');
@import url('css/mobile.css');

/* WordPress specific styles */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Fix anchor links offset for fixed header */
html {
    scroll-padding-top: 140px; /* Offset for fixed header */
}

/* Responsive scroll padding */
@media screen and (max-width: 767px) {
    html {
        scroll-padding-top: 110px; /* Smaller offset for mobile */
    }
}

/* Improved typography for better readability */
p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 16px;
}

li {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 8px;
}

h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 18px;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 16px;
}

h4 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 14px;
}

h5 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

h6 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Text in content area */
.entry-content p {
    font-size: 18px;
    line-height: 1.7;
}

.entry-content li {
    font-size: 18px;
    line-height: 1.7;
}

/* Text in sections */
.text-block-css p {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

.text-block-css li {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

.sticky {
    /* Add sticky post styles if needed */
}

.bypostauthor {
    /* Highlight comments by post author */
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    margin: 10px 0;
}

.gallery-caption {
    display: block;
    text-align: center;
    font-style: italic;
    margin: 10px 0;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.alignwide {
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    clear: both;
}

/* WordPress editor styles */
.wp-block-image {
    max-width: 100%;
}

.wp-block-embed {
    margin: 20px 0;
}

/* Comment styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-meta {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    margin-bottom: 20px;
}

.reply {
    text-align: right;
}

/* WordPress admin bar compatibility */
.admin-bar .com-section[style*="position: fixed"] {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .com-section[style*="position: fixed"] {
        top: 46px !important;
    }
}

/* WordPress search form */
.search-form {
    position: relative;
}

.search-field {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

/* WordPress navigation menus */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    display: inline-block;
    position: relative;
}

.menu a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

/* WordPress widget styles */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

/* WordPress pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
}

.page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.page-numbers:hover {
    background: #f5f5f5;
}

/* Responsive improvements for WordPress */
@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
    
    .menu li {
        display: block;
    }
    
    .menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
    }
    
    /* Mobile font size adjustments */
    p {
        font-size: 16px;
    }
    
    li {
        font-size: 16px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    h4 {
        font-size: 18px;
    }
    
    .entry-content p {
        font-size: 16px;
    }
    
    .entry-content li {
        font-size: 16px;
    }
    
    .text-block-css p {
        font-size: 16px !important;
    }
    
    .text-block-css li {
        font-size: 16px !important;
    }
}