/**
 * LawnLeveling Directory Styles
 * Design tokens extracted from existing site
 */

:root {
    /* Primary Colors - from existing theme */
    --lld-primary: #84c16e;           /* Primary green */
    --lld-primary-dark: #6ba856;      /* Darker green */
    --lld-secondary: #214344;         /* Dark teal */
    --lld-secondary-dark: #173232;    /* Footer dark */
    --lld-accent: #c49865;            /* Gold accent */
    --lld-accent-light: #f5af3d;      /* Yellow/amber */

    /* Text Colors */
    --lld-text: #214344;              /* Dark teal text */
    --lld-text-light: #666;
    --lld-text-cream: #faf8ee;        /* Light cream */

    /* UI Colors */
    --lld-border: #84c16e;            /* Green border */
    --lld-border-light: #e0e0e0;
    --lld-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --lld-radius: 8px;

    /* Fonts - from existing theme */
    --lld-font-heading: "Bouchers Sans 2.0", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --lld-font-body: "Avenir Next LT Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Styles */
.lld-directory,
.lld-dashboard,
.lld-single-business {
    font-family: var(--lld-font-body);
    color: var(--lld-text);
    line-height: 1.6;
}

/* Search Form */
.lld-search-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: var(--lld-radius);
    margin-bottom: 30px;
    border: 2px solid var(--lld-border);
}

.lld-search-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.lld-search-fields input,
.lld-search-fields select {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 2px solid var(--lld-border);
    border-radius: var(--lld-radius);
    font-size: 16px;
    font-family: var(--lld-font-body);
    background-color: transparent;
}

.lld-search-fields input:focus,
.lld-search-fields select:focus {
    outline: none;
    border-color: var(--lld-secondary);
}

.lld-search-fields button {
    background: var(--lld-secondary);
    color: var(--lld-text-cream);
    border: 4px solid white;
    box-shadow: 4px 4px 0px var(--lld-accent);
    padding: 12px 30px;
    border-radius: var(--lld-radius);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--lld-font-body);
}

.lld-search-fields button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--lld-accent);
}

/* Listings Grid */
.lld-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Listing Card */
.lld-listing-card {
    background: white;
    border-radius: var(--lld-radius);
    box-shadow: var(--lld-shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.lld-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.lld-listing-card.lld-status-premium {
    border: 2px solid #8c5eff;
}

.lld-listing-card.lld-status-featured {
    border: 2px solid var(--lld-accent-light);
}

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

.lld-listing-content {
    padding: 20px;
}

.lld-listing-content h4 {
    margin: 0 0 10px;
    font-size: 1.2em;
    font-family: var(--lld-font-heading);
}

.lld-listing-content h4 a {
    color: var(--lld-text);
    text-decoration: none;
}

.lld-listing-content h4 a:hover {
    color: var(--lld-primary);
}

.lld-listing-location,
.lld-listing-phone {
    margin: 5px 0;
    color: var(--lld-text-light);
    font-size: 0.95em;
}

.lld-listing-phone a {
    color: var(--lld-secondary);
    text-decoration: none;
    font-weight: 600;
}

/* Badges */
.lld-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
}

.lld-badge-premium {
    background: linear-gradient(135deg, #8c5eff, #6a3de8);
}

.lld-badge-featured {
    background: linear-gradient(135deg, var(--lld-accent-light), var(--lld-accent));
}

/* Buttons */
.lld-btn,
.lld-view-btn,
.lld-claim-btn {
    display: inline-block;
    background: var(--lld-secondary);
    color: var(--lld-text-cream);
    padding: 10px 20px;
    border-radius: var(--lld-radius);
    text-decoration: none;
    font-weight: 500;
    border: 4px solid white;
    box-shadow: 4px 4px 0px var(--lld-accent);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    font-family: var(--lld-font-body);
}

.lld-btn:hover,
.lld-view-btn:hover,
.lld-claim-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--lld-accent);
    color: var(--lld-text-cream);
}

.lld-claim-btn {
    width: 100%;
    margin-top: 15px;
}

.lld-claimed-badge {
    display: inline-block;
    background: #e8f5e9;
    color: var(--lld-primary-dark);
    padding: 8px 15px;
    border-radius: var(--lld-radius);
    font-weight: 600;
    border: 2px solid var(--lld-primary);
}

/* Single Business Page */
.lld-single-business {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.lld-business-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.lld-business-image {
    flex: 0 0 300px;
}

.lld-business-image img {
    width: 100%;
    height: auto;
    border-radius: var(--lld-radius);
    border: 2px solid var(--lld-border);
}

.lld-business-title {
    flex: 1;
}

.lld-business-title h1 {
    font-family: var(--lld-font-heading);
    color: var(--lld-secondary);
    margin: 0 0 15px;
    font-size: 2.5em;
}

.lld-business-title .lld-badge {
    position: static;
    display: inline-block;
    margin-bottom: 15px;
}

.lld-business-location {
    font-size: 1.2em;
    color: var(--lld-text-light);
    margin: 0 0 15px;
}

.lld-business-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lld-credential {
    display: inline-block;
    background: var(--lld-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.lld-business-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.lld-business-main .lld-section {
    margin-bottom: 30px;
}

.lld-business-main h2 {
    font-family: var(--lld-font-heading);
    color: var(--lld-secondary);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lld-border);
}

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

.lld-services-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--lld-border-light);
    position: relative;
    padding-left: 25px;
}

.lld-services-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--lld-primary);
    border-radius: 50%;
}

/* Contact Card */
.lld-contact-card,
.lld-claim-card {
    background: white;
    border: 2px solid var(--lld-border);
    border-radius: var(--lld-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.lld-contact-card h3,
.lld-claim-card h4 {
    font-family: var(--lld-font-heading);
    color: var(--lld-secondary);
    margin: 0 0 20px;
}

.lld-contact-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--lld-border-light);
}

.lld-contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.lld-contact-item strong {
    display: block;
    font-size: 0.85em;
    color: var(--lld-text-light);
    margin-bottom: 3px;
}

.lld-contact-item a {
    color: var(--lld-secondary);
    text-decoration: none;
    font-weight: 500;
}

.lld-contact-item a:hover {
    color: var(--lld-primary);
}

.lld-btn-call {
    width: 100%;
    text-align: center;
}

.lld-claim-card p {
    color: var(--lld-text-light);
    margin: 0 0 15px;
}

/* Dashboard */
.lld-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.lld-dashboard h2 {
    font-family: var(--lld-font-heading);
    color: var(--lld-secondary);
    margin: 0 0 30px;
}

.lld-dashboard-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: var(--lld-radius);
    border: 2px dashed var(--lld-border);
}

.lld-dashboard-empty p {
    margin: 0 0 20px;
    color: var(--lld-text-light);
}

.lld-business-editor {
    background: white;
    padding: 30px;
    border-radius: var(--lld-radius);
    box-shadow: var(--lld-shadow);
    margin-bottom: 30px;
    border: 2px solid var(--lld-border);
}

.lld-business-editor-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--lld-border);
}

.lld-business-editor h3 {
    font-family: var(--lld-font-heading);
    color: var(--lld-secondary);
    margin: 0;
}

.lld-form-row {
    margin-bottom: 20px;
}

.lld-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--lld-text);
}

.lld-form-row input,
.lld-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--lld-border);
    border-radius: var(--lld-radius);
    font-size: 16px;
    font-family: var(--lld-font-body);
    background-color: transparent;
}

.lld-form-row input:focus,
.lld-form-row textarea:focus {
    outline: none;
    border-color: var(--lld-secondary);
}

.lld-form-row-inline {
    display: flex;
    gap: 15px;
}

.lld-form-row-inline > div {
    flex: 1;
}

/* Pricing Cards */
.lld-dashboard-subscription {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--lld-border);
}

.lld-dashboard-subscription h3 {
    font-family: var(--lld-font-heading);
    color: var(--lld-secondary);
    margin: 0 0 20px;
}

.lld-pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lld-pricing-card {
    background: white;
    border: 2px solid var(--lld-border-light);
    border-radius: var(--lld-radius);
    padding: 25px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.lld-pricing-card:hover {
    transform: translateY(-3px);
}

.lld-pricing-card.active {
    border-color: var(--lld-primary);
    background: linear-gradient(to bottom, #f0fff0, white);
}

.lld-pricing-card h4 {
    font-family: var(--lld-font-heading);
    margin: 0 0 15px;
    font-size: 1.3em;
    color: var(--lld-secondary);
}

.lld-price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--lld-primary);
    margin-bottom: 20px;
}

.lld-price span {
    font-size: 0.4em;
    color: var(--lld-text-light);
    font-weight: 400;
}

.lld-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.lld-pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.lld-pricing-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--lld-primary);
    border-radius: 50%;
}

.lld-subscribe-btn {
    width: 100%;
    background: var(--lld-secondary);
    color: var(--lld-text-cream);
    border: 4px solid white;
    box-shadow: 4px 4px 0px var(--lld-accent);
    padding: 12px;
    border-radius: var(--lld-radius);
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--lld-font-body);
    transition: transform 0.2s, box-shadow 0.2s;
}

.lld-subscribe-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--lld-accent);
}

.lld-current-plan {
    display: block;
    padding: 12px;
    background: #e8f5e9;
    color: var(--lld-primary-dark);
    border-radius: var(--lld-radius);
    font-weight: 600;
    border: 2px solid var(--lld-primary);
}

.lld-manage-subscription {
    color: var(--lld-secondary);
    text-decoration: underline;
}

/* Status badges */
.lld-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.lld-status-unclaimed { background: #999; }
.lld-status-claimed { background: #0073aa; }
.lld-status-basic { background: #00a32a; }
.lld-status-featured { background: var(--lld-accent-light); }
.lld-status-premium { background: #8c5eff; }

/* Pagination */
.lld-pagination {
    text-align: center;
    margin-top: 30px;
}

.lld-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    background: white;
    border: 2px solid var(--lld-border);
    border-radius: var(--lld-radius);
    color: var(--lld-text);
    text-decoration: none;
}

.lld-pagination .page-numbers.current {
    background: var(--lld-primary);
    border-color: var(--lld-primary);
    color: white;
}

.lld-pagination .page-numbers:hover:not(.current) {
    border-color: var(--lld-secondary);
    color: var(--lld-secondary);
}

/* No Results */
.lld-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: var(--lld-radius);
    color: var(--lld-text-light);
    border: 2px dashed var(--lld-border);
}

.lld-no-results a {
    color: var(--lld-secondary);
    font-weight: 600;
}

/* Featured Listings */
.lld-featured-listings h3 {
    font-family: var(--lld-font-heading);
    color: var(--lld-secondary);
    margin: 0 0 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .lld-search-fields {
        flex-direction: column;
    }

    .lld-business-header {
        flex-direction: column;
    }

    .lld-business-image {
        flex: none;
        width: 100%;
    }

    .lld-business-content {
        grid-template-columns: 1fr;
    }

    .lld-form-row-inline {
        flex-direction: column;
    }

    .lld-pricing-cards {
        grid-template-columns: 1fr;
    }

    .lld-business-title h1 {
        font-size: 1.8em;
    }

    .lld-listings-grid {
        grid-template-columns: 1fr;
    }
}
