/*
Theme Name: Marketplace Theme
Author: Hasanurzzaman
Description: Freelance marketplace with USDT, chat, and gig management.
Version: 1.0
Text Domain: marketplace-theme
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* 
 * This file is intentionally minimal as all styling is handled by:
 * - assets/css/main.css (Main styles)
 * - assets/css/responsive.css (Responsive design)
 * - assets/css/admin.css (Admin dashboard styles)
 */

/* Basic WordPress theme requirements */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

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

.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;
    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;
}

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

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Hide WordPress admin bar for non-administrators */
.hide-admin-bar #wpadminbar,
.hide-admin-bar.admin-bar #wpadminbar {
    display: none !important;
    visibility: hidden !important;
}

.hide-admin-bar.admin-bar {
    padding-top: 0 !important;
}

.hide-admin-bar.admin-bar .site-header {
    top: 0 !important;
}

/* Ensure proper display of WordPress elements */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.wp-block-gallery .blocks-gallery-item {
    margin: 0 16px 16px 0;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.wp-block-gallery .blocks-gallery-item img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Comments styling */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 2em;
}

.comment-body {
    margin-bottom: 2em;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 5px;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1em;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 2em 0;
}

.pagination li {
    margin: 0 0.25em;
}

.pagination a,
.pagination span {
    display: block;
    padding: 0.5em 1em;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

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

.widget {
    margin-bottom: 2em;
}

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

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

.widget ul li {
    padding: 0.5em 0;
    border-bottom: 1px solid #eee;
}

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

/* Search form */
.search-form {
    /* display: flex; */
    gap: 0.5em;
}

#gig-search {
    padding: 15px 15px;
    width: 70%;
    border-radius: 10px;
    border-color: #fff;
}

.search-form .search-field {
    flex: 1;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.search-form .search-submit {
    padding: 0.5em 1em;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .navigation,
    .pagination {
        display: none !important;
    }
    
    .site-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        page-break-inside: avoid;
        max-width: 100% !important;
    }
}