/*
Theme Name: BizJobs Directory
Theme URI: https://example.com/bizjobs-directory
Author: Cascade AI
Author URI: https://example.com
Description: A WordPress theme that combines business directory with claim listing feature & job listing with applicant limits per job.
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: bizjobs
Tags: business-directory, job-listings, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* General Styling */
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --dark-color: #2e3a59;
    --light-color: #f8f9fc;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: #444;
    line-height: 1.7;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-right: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--dark-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-warning {
    background-color: var(--warning-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

/* Cards */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

/* Directory listings */
.directory-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.listing-item {
    position: relative;
}

.listing-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--warning-color);
    color: #333;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.listing-image {
    height: 200px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-details {
    padding: 15px;
}

.listing-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.listing-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.listing-description {
    margin-bottom: 15px;
}

/* Job listings */
.job-listing {
    margin-bottom: 30px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job-company-logo {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.job-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-details {
    flex-grow: 1;
}

.job-title {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.job-company {
    color: #555;
    font-weight: 500;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #777;
}

.job-meta-item {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.job-applicants {
    background-color: #f0f8ff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    display: inline-block;
}

.job-applicants.limit-reached {
    background-color: #ffeded;
    color: var(--danger-color);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget-title {
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .directory-listing {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}
