/**
 * Developer-Project Relationship Styles
 * 
 * Styles for the admin interface and frontend display
 * of developer-project relationships
 */

/* ===================================
   ADMIN STYLES
   =================================== */

/* Developer Projects Meta Box */
.developer-projects-management {
    margin: 15px 0;
}

.projects-checklist {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.projects-checklist label {
    display: block;
    margin-bottom: 8px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.projects-checklist label:hover {
    background: #f0f8ff;
}

.projects-checklist input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.projects-checklist .project-meta {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Bulk Actions Section */
.developer-projects-bulk-actions {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.developer-projects-bulk-actions .button {
    margin-right: 5px;
}

/* Taxonomy Sync Section */
.developer-taxonomy-sync {
    margin-top: 15px;
    padding: 10px;
    background: #e6f3ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
}

.developer-taxonomy-sync h4 {
    margin-top: 0;
    color: #0073aa;
}

.developer-taxonomy-sync p {
    margin-bottom: 8px;
}

/* Contact Information Meta Box */
.developer-contact-meta-box .form-table th {
    width: 80px;
    padding: 8px 0;
}

.developer-contact-meta-box .form-table td {
    padding: 8px 0;
}

.developer-contact-meta-box input,
.developer-contact-meta-box textarea {
    width: 100%;
}

/* Developer Management Page */
.developer-management-page .notice {
    margin: 15px 0;
}

.developer-management-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.developer-stat-card {
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.developer-stat-card .stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
    display: block;
}

.developer-stat-card .stat-label {
    color: #666;
    margin-top: 5px;
}

/* ===================================
   FRONTEND STYLES
   =================================== */

/* Developer Single Page */
.developer-projects-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
}

.developer-projects-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8em;
    position: relative;
}

.developer-projects-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #0073aa;
    margin-top: 10px;
}

/* Developer Projects Grid */
.developer-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.developer-projects-grid .project-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-projects-grid .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.developer-projects-grid .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.developer-projects-grid .project-card:hover img {
    transform: scale(1.05);
}

.developer-projects-grid .project-card h3 {
    padding: 15px;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.developer-projects-grid .project-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-projects-grid .project-card h3 a:hover {
    color: #0073aa;
}

.developer-projects-grid .project-excerpt {
    padding: 0 15px 15px;
    color: #666;
    line-height: 1.6;
}

/* Project Developer Info (on project single pages) */
.project-developer-info {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.project-developer-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.developer-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.developer-image {
    flex-shrink: 0;
}

.developer-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.developer-info {
    flex-grow: 1;
}

.developer-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.developer-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-info h4 a:hover {
    color: #0073aa;
}

.developer-info p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.view-developer-link {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.view-developer-link:hover {
    background: #005a87;
}

/* Developer Contact Information */
.developer-contact-info {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.developer-contact-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.contact-details p {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details strong {
    min-width: 80px;
    color: #333;
}

.contact-details a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 768px) {
    .developer-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .developer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .developer-image {
        align-self: center;
    }
    
    .contact-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-details strong {
        min-width: auto;
    }
    
    .projects-checklist {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .developer-projects-section,
    .project-developer-info,
    .developer-contact-info {
        padding: 15px;
        margin: 20px 0;
    }
    
    .developer-projects-section h2 {
        font-size: 1.5em;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.developer-status-synced {
    color: #4caf50;
    font-weight: bold;
}

.developer-status-not-synced {
    color: #f44336;
    font-weight: bold;
}

.developer-project-count {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.developer-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.developer-no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* ===================================
   ADMIN QUICK ACTIONS
   =================================== */

.developer-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.developer-quick-actions .button-small {
    padding: 4px 8px;
    font-size: 11px;
}

/* Print Styles */
@media print {
    .developer-projects-management,
    .developer-taxonomy-sync,
    .developer-quick-actions {
        display: none;
    }
}