/*
Theme Name: DK Talents Theme
Theme URI: https://talent.dktalents.com
Author: DK Talents
Author URI: https://dktalents.com
Description: A custom theme for the DK Talents Freelancer Portal.
Version: 1.0
*/

/*--------------------------------------------------------------
>>> Global Styles
--------------------------------------------------------------*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9fafb;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

h1 {
    text-align: center;
    color: #111827;
    margin-bottom: 20px;
}

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

/*--------------------------------------------------------------
>>> Header & Footer
--------------------------------------------------------------*/
.site-header, .site-footer {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
}

.site-footer {
    border-bottom: none;
    border-top: 1px solid #e5e7eb;
    margin-top: 60px;
    font-size: 0.9em;
    color: #6b7280;
    text-align: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto; /* Overwrite default margin */
}

.site-branding a {
    font-size: 1.8em;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1em;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

.main-navigation a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/*--------------------------------------------------------------
>>> Freelancer Grid
--------------------------------------------------------------*/
.freelancer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.freelancer-card-link {
    text-decoration: none;
    color: inherit;
}

.freelancer-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.freelancer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.freelancer-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.freelancer-card h2 {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.5em;
    color: #111827;
}

.freelancer-card p {
    margin-top: 0;
    font-size: 1.1em;
    color: #6b7280;
    font-weight: 500;
}

/*--------------------------------------------------------------
>>> Single Freelancer Page
--------------------------------------------------------------*/
.single-freelancer-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.freelancer-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.freelancer-details h1 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 5px;
}

.freelancer-job-title {
    font-size: 1.5em;
    font-weight: 300;
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 20px;
}

.freelancer-meta {
    display: flex;
    gap: 30px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.freelancer-meta span {
    font-size: 1.1em;
}

.status-available {
    color: #059669;
    font-weight: bold;
}

.status-on-project {
    color: #d97706;
    font-weight: bold;
}

.freelancer-bio {
    line-height: 1.7;
}
/*--------------------------------------------------------------
>>> Freelancer's Project List
--------------------------------------------------------------*/
.freelancer-projects-section {
    margin-top: 60px;
}

.freelancer-projects-section h2 {
    text-align: center;
    font-size: 2em;
}

.project-list {
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.project-item {
    display: flex;
    gap: 20px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    align-items: center;
}

.project-item-thumbnail a {
    display: block;
}

.project-item-thumbnail img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.project-item-content h3 {
    margin: 0 0 10px 0;
}

.project-item-content h3 a {
    text-decoration: none;
    color: #111827;
}

.project-item-content h3 a:hover {
    text-decoration: underline;
}

.project-item-excerpt p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}
/*--------------------------------------------------------------
>>> Talent Filter Form
--------------------------------------------------------------*/
.talent-filter-form {
    max-width: 500px;
    margin: 0 auto 40px auto;
    display: flex;
    gap: 10px;
}

.talent-filter-form select {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.talent-filter-form button {
    padding: 12px 25px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    background-color: #111827;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.talent-filter-form button:hover {
    background-color: #374151;
}
/*--------------------------------------------------------------
>>> Talent Filter Form Tweaks
--------------------------------------------------------------*/
.talent-filter-form {
    grid-template-columns: 1fr 1fr auto; /* Adjust grid for 3 items */
    display: grid; /* Use grid for better alignment */
    max-width: 800px; /* Widen the form slightly */
}

.talent-filter-form .search-field {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}
/*--------------------------------------------------------------
>>> Single Project Page
--------------------------------------------------------------*/
.single-project-layout {
    max-width: 800px;
    margin: 0 auto;
}

.single-project-layout h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.project-featured-image {
    margin-bottom: 40px;
}

.project-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.project-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.project-content p,
.project-content ul,
.project-content ol {
    margin-bottom: 1.5em;
}

.project-back-link {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.project-back-link a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.project-back-link a:hover {
    color: #0056b3;
}
/*--------------------------------------------------------------
>>> Call to Action Button
--------------------------------------------------------------*/
.cta-button {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 25px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.cta-button:hover {
    background-color: #004082;
    transform: translateY(-2px);
}

/* Adjust spacing for meta box */
.freelancer-meta {
    margin-top: 25px;
}
/*--------------------------------------------------------------
>>> Page & Contact Form Styles
--------------------------------------------------------------*/
.page-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.entry-content {
    max-width: 700px;
    margin: 0 auto;
}

/* WPForms Specific Styles */
div.wpforms-container-full .wpforms-form .wpforms-field {
    padding: 0 0 20px 0;
}

div.wpforms-container-full .wpforms-form .wpforms-field-label {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
}

div.wpforms-container-full .wpforms-form .wpforms-field input[type=text],
div.wpforms-container-full .wpforms-form .wpforms-field input[type=email],
div.wpforms-container-full .wpforms-form .wpforms-field textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    background-color: #fff;
    font-size: 1em;
}

div.wpforms-container-full .wpforms-form .wpforms-submit-container .wpforms-submit {
    width: 100%;
    background-color: #0056b3;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

div.wpforms-container-full .wpforms-form .wpforms-submit-container .wpforms-submit:hover {
    background-color: #004082;
}
/*--------------------------------------------------------------
>>> Mobile Responsiveness
--------------------------------------------------------------*/

/* Tablet and Smaller Desktop */
@media (max-width: 992px) {
    .talent-filter-form {
        grid-template-columns: 1fr; /* Stack filter items */
    }
    .single-freelancer-layout {
        grid-template-columns: 1fr; /* Stack freelancer profile */
    }
    .freelancer-photo {
        max-width: 300px;
        margin: 0 auto 30px auto;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* --- Header & Navigation --- */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 11;
    }
    .menu-toggle .line {
        width: 30px;
        height: 3px;
        background: #333;
        border-radius: 10px;
        transition: all 0.3s linear;
    }

    .main-navigation {
        display: none; /* Hide nav by default */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .main-navigation.toggled {
        display: flex; /* Show nav when toggled */
    }
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .main-navigation a {
        font-size: 1.5em;
    }

    /* --- General Layout --- */
    .container {
        width: 95%;
    }
    .page-title,
    .single-project-layout h1 {
        font-size: 2em;
    }
    .freelancer-card {
        padding: 20px;
    }
    .project-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
}
/*--------------------------------------------------------------
>>> Login Page
--------------------------------------------------------------*/
.login-form-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.login-form-container .login-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.login-form-container .login-form input[type="text"],
.login-form-container .login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}

.login-form-container .login-submit input[type="submit"] {
    width: 100%;
    padding: 12px 25px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    background-color: #0056b3;
    color: #fff;
    cursor: pointer;
}
.login-form-container .login-submit input[type="submit"]:hover {
    background-color: #004082;
}

.login-form-container .login-remember {
    margin-bottom: 20px;
}
/*--------------------------------------------------------------
>>> Profile Edit Form
--------------------------------------------------------------*/
.profile-edit-form {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 30px;
}

.profile-edit-form .form-row {
    margin-bottom: 25px;
}

.profile-edit-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.profile-edit-form input[type="text"],
.profile-edit-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.profile-edit-form textarea {
    min-height: 150px;
    font-family: inherit;
}

.profile-edit-form button {
    padding: 12px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    background-color: #0056b3;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.profile-edit-form button:hover {
    background-color: #004082;
}

.profile-success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}
/*--------------------------------------------------------------
>>> General Page Content
--------------------------------------------------------------*/
.page-content .entry-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.page-content .entry-content p,
.page-content .entry-content ul,
.page-content .entry-content ol {
    margin-bottom: 1.5em;
}

.page-content .entry-content h2,
.page-content .entry-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
}
/*--------------------------------------------------------------
>>> Availability Status
--------------------------------------------------------------*/
.availability-status.is-available,
.status-badge.is-available {
    color: #059669; /* Green */
}
.availability-status.is-booked,
.status-badge.is-booked {
    color: #D97706; /* Amber */
}
.availability-status.is-on_project,
.status-badge.is-on_project {
    color: #4B5563; /* Gray */
}

/* Badge on Homepage Card */
.freelancer-card {
    position: relative; /* Needed for positioning the badge */
}
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid;
}

/* Status on Profile Page */
.availability-status {
    font-weight: bold;
}
/*--------------------------------------------------------------
>>> Client Reviews Section
--------------------------------------------------------------*/
.reviews-section {
    margin-top: 60px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2em;
}

.review-list {
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.review-item {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #0056b3;
    border-radius: 8px;
    padding: 25px;
}

.star-rating {
    font-size: 1.5em;
    color: #f59e0b; /* Amber color for stars */
    margin-bottom: 15px;
}

.review-content {
    font-style: italic;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-client {
    text-align: right;
    color: #111827;
}