/*
Theme Name: GeneratePress Child
Description: Child theme for GeneratePress with custom company templates
Author: Your Name
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   Company Single Page Styles
   ========================================================================== */

/* Company Header */
.company-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #007cba;
}

.company-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.company-breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.company-breadcrumb a:hover {
    text-decoration: underline;
}

.company-title {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
}

.company-tax-code {
    font-size: 1.2em;
    color: #007cba;
    font-weight: 500;
}

/* Company Content */
.company-content {
    margin-bottom: 40px;
}

.company-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.5em;
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item span {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

/* Taxonomy Tags */
.taxonomy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.taxonomy-group {
    margin-bottom: 15px;
}

.taxonomy-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.taxonomy-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taxonomy-tag.status-active {
    background: #d4edda;
    color: #155724;
}

.taxonomy-tag.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.taxonomy-tag.business-type {
    background: #cce5ff;
    color: #004085;
}

.taxonomy-tag.industry {
    background: #fff3cd;
    color: #856404;
}

.taxonomy-tag.location {
    background: #e2e3e5;
    color: #383d41;
}

/* Company Description */
.company-description {
    line-height: 1.8;
    color: #555;
}

/* Crawl Information */
.company-crawl-info {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.company-crawl-info h3 {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 1.1em;
}

.crawl-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.crawl-item {
    display: flex;
    flex-direction: column;
}

.crawl-item label {
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    font-size: 13px;
}

.crawl-item span,
.crawl-item a {
    color: #333;
    font-size: 14px;
}

.crawl-item a {
    color: #007cba;
    text-decoration: none;
}

.crawl-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Company Archive & Taxonomy Styles
   ========================================================================== */

/* Archive Header */
.archive-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.archive-title {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
}

.archive-description {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Company Filters */
.company-filters {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.filter-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Company Grid */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Company Card */
.company-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.company-card-content {
    padding: 25px;
}

/* Company Card Header */
.company-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.company-card-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    line-height: 1.4;
}

.company-card-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.company-card-title a:hover {
    color: #007cba;
}

.company-tax-code {
    font-size: 14px;
    color: #007cba;
    font-weight: 500;
}

/* Company Card Info */
.company-card-info {
    margin-bottom: 20px;
}

.company-info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.company-info-item:last-child {
    margin-bottom: 0;
}

.company-info-item label {
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    font-size: 13px;
}

.company-info-item span {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Company Card Taxonomies */
.company-card-taxonomies {
    margin-bottom: 20px;
}

.company-card-taxonomies .taxonomy-tags {
    margin-top: 0;
}

/* Company Card Footer */
.company-card-footer {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.company-read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease;
}

.company-read-more:hover {
    background: #005a87;
    color: #fff;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .company-header {
        padding: 20px;
    }
    
    .company-title {
        font-size: 2em;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .company-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .crawl-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .company-header {
        padding: 15px;
    }
    
    .company-title {
        font-size: 1.8em;
    }
    
    .company-section {
        padding: 20px;
    }
    
    .company-card-content {
        padding: 20px;
    }
    
    .archive-header {
        padding: 20px;
    }
    
    .archive-title {
        font-size: 2em;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .company-filters,
    .company-read-more,
    .company-crawl-info {
        display: none;
    }
    
    .company-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .company-header {
        background: none;
        border-left: none;
    }
}