/*
Theme Name: Trekz WordPress Theme
Description: A custom WordPress theme based on the Trekz front-end design
Version: 1.0
Author: Your Name
*/

/* Import existing CSS files */
@import url('css/global.css');
@import url('css/typography.css');
@import url('css/color.css');
@import url('css/component.css');
@import url('css/style.css');

/* WordPress specific styles */
.wp-block-navigation {
    margin: 0;
}

.wp-block-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-block-navigation li {
    margin: 0;
}

.wp-block-navigation a {
    text-decoration: none;
}

/* Navigation menu styling */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem var(--gutter);
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0 0.5rem;
    padding: 1rem 0;
    line-height: 1;
    font-size: var(--font-size);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-dark);
}

/* Header top menu styling */
.header-top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem var(--gutter);
}

.header-top-menu li {
    margin: 0;
}

.header-top-menu a {
    color: white;
    font-weight: 500;
    text-decoration: none;
}

.header-top-menu a:hover {
    text-decoration: underline;
}

/* WordPress admin bar adjustment */
.admin-bar header.position-fixed {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header.position-fixed {
        top: 46px;
    }
}

/* WordPress content styles */
.wp-content {
    line-height: 1.6;
}

.wp-content img {
    max-width: 100%;
    height: auto;
}

.wp-content h1, .wp-content h2, .wp-content h3, 
.wp-content h4, .wp-content h5, .wp-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.wp-content p {
    margin-bottom: 1em;
}

.wp-content ul, .wp-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.wp-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
}

/* WordPress widgets */
.widget {
    margin-bottom: 2rem;
}

/* Ensure all sidebar headings match the design - HIGH PRIORITY */
.widget-title, 
.sidebar-widget .widget-title, 
.order-summary h5, 
.sidebar-widget h5,
.widget h1,
.widget h2,
.widget h3, 
.widget h4, 
.widget h5, 
.widget h6 {
    font-weight: 600 !important;
    color: var(--primary) !important;
    margin-bottom: 1rem !important;
    font-size: 1.2rem !important;
    letter-spacing: 0.01em !important;
}

/* WordPress block editor heading styles - HIGH PRIORITY */
.wp-block-heading,
.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6,
.wp-block h1,
.wp-block h2,
.wp-block h3,
.wp-block h4,
.wp-block h5,
.wp-block h6 {
    font-weight: 600 !important;
    color: var(--primary) !important;
    margin-bottom: 1rem !important;
    letter-spacing: 0.01em !important;
}

/* Block editor specific heading sizes */
.wp-block-heading h1,
.wp-block h1 {
    font-size: 2rem !important;
}

.wp-block-heading h2,
.wp-block h2 {
    font-size: 1.5rem !important;
}

.wp-block-heading h3,
.wp-block h3 {
    font-size: 1.3rem !important;
}

.wp-block-heading h4,
.wp-block h4 {
    font-size: 1.2rem !important;
}

.wp-block-heading h5,
.wp-block h5 {
    font-size: 1.1rem !important;
}

.wp-block-heading h6,
.wp-block h6 {
    font-size: 1rem !important;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-grey);
}

.footer-links li:last-child {
    border-bottom: none;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-grey);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
}

.widget a:hover {
    color: var(--primary);
}

/* WordPress comments */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 4px;
}

.comment-author {
    font-weight: 600;
    color: var(--primary);
}

.comment-meta {
    font-size: 0.9em;
    color: var(--text-light-color);
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-reply-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9em;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* WordPress search form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    height: var(--btn-height);
    padding: 0 1rem;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    border-radius: 0;
    font-size: var(--fs-sm);
    color: var(--text-color);
}

.search-form input[type="submit"] {
    /* Remove all custom styling - let .btn classes handle everything */
}

/* Ensure search button uses exact same styling as other buttons */
.search-form .btn {
    border-radius: 0 !important;
    height: var(--btn-height) !important;
    padding: 1rem var(--gutter-sm) !important;
    font-size: calc(var(--font-size) - .1rem) !important;
    font-weight: 600 !important;
    border-width: var(--bs-border-width) !important;
    border-style: var(--bs-border-style) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 .5rem !important;
    line-height: 1 !important;
}

/* Override default WordPress form styling */
.widget input[type="text"],
.widget input[type="search"],
.widget input[type="email"],
.widget textarea,
.widget select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    font-size: var(--font-size);
}

.widget input[type="submit"],
.widget button {
    /* Use standard .btn styling instead of custom styles */
}

/* Blog-specific styles */
.blog-page .entry-meta {
    margin-bottom: 1rem;
    font-size: 0.9em;
    color: var(--text-light-color);
}

.blog-page .entry-meta span {
    margin-right: 1rem;
}

.blog-page .entry-meta i {
    margin-right: 0.3rem;
}

.category-count {
    color: var(--text-light-color);
    font-size: 0.9em;
}

.tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list li {
    margin: 0;
}

.tag-list a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
}

.tag-list a:hover {
    background: var(--primary);
    color: white;
}

.entry-navigation {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-grey);
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-previous a:hover,
.nav-next a:hover {
    text-decoration: underline;
}
