/**
 * LC Award Management - Unique Template Styles
 * Version: 1.4.3
 * 
 * This CSS file contains plugin-specific styles that won't conflict with WordPress themes.
 * All classes use the 'lc-' prefix to ensure uniqueness.
 */

/* Enhanced photographer selection styles */
.photographer-search-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
}

.photographer-result-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.photographer-result-item:hover {
    background-color: #f8f9fa;
}

.photographer-result-item:last-child {
    border-bottom: none;
}

.photographer-name-result {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.photographer-email-result {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 2px;
}

.photographer-location-result {
    font-size: 0.85em;
    color: #888;
}

.photographer-loading,
.photographer-error,
.photographer-no-results {
    padding: 12px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.photographer-item.assigned {
    background: #f0f8ff;
    border: 1px solid #4a90e2;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-photographer-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.remove-photographer-btn:hover {
    background: #c0392b;
}

/* Main container */
.lc-photography-award-template {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Grid layout */
.lc-award-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

@media (max-width: 768px) {
    .lc-award-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lc-photography-award-template {
        padding: 1rem;
    }
}

/* Typography */
.lc-award-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.lc-award-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.lc-award-description p {
    margin: 0 0 1rem 0;
}

/* Image styling */
.lc-award-image-container {
    margin: 2rem 0;
}

.lc-award-image-frame {
    background: white;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.lc-award-featured-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.lc-photo-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.lc-exif-info {
    font-weight: 500;
    margin-bottom: 5px;
}

.lc-copyright {
    margin-bottom: 5px;
}

.lc-award-badge {
    color: #666;
    padding: 4px 0px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

.lc-award-category-badge {
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    font-weight: 500;
    margin-left: 5px;
    border-radius: 2px;
}

/* Photographer section */
.lc-photographer-bio-section {
    margin-top: 3rem;
}

.lc-photographer-bio-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.lc-photographer-badges {
    margin-bottom: 1.5rem;
}

.lc-badge {
    background: #7f8c8d;
    color: white;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    display: inline-block;
}

.lc-badge.registered {
    background: #27ae60;
}

.lc-badge.photographer {
    background: #3498db;
}

.lc-photographer-details {
    margin-top: 2rem;
}

.lc-detail-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lc-detail-group strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.lc-detail-group span {
    color: #666;
}

.lc-detail-group a {
    color: #3498db;
    text-decoration: none;
}

.lc-detail-group a:hover {
    text-decoration: underline;
}

/* Sidebar styles */
.lc-award-sidebar > div {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

/* Widget styles */
.lc-award-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.lc-widget-social-section {
    text-align: center;
    margin-bottom: 20px;
}

.lc-share-count-large {
    font-size: 4rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.lc-share-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.lc-social-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.lc-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.2s;
}

.lc-social-btn:hover {
    transform: translateY(-2px);
}

.lc-social-x {
    background: #000;
}

.lc-social-facebook {
    background: #4267B2;
}

.lc-social-linkedin {
    background: #0077B5;
}

/* Score sections */
.lc-widget-scores-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.lc-widget-scores-section .lc-score-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-radius: 6px;
    background: #f8f9fa;
}

.lc-widget-scores-section .lc-score-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.lc-score-divider {
    color: #7f8c8d;
    font-weight: normal;
}

.lc-widget-scores-section .lc-score-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.lc-widget-stats-section {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.lc-stats-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.lc-stats-content {
    font-size: 0.9rem;
    color: #666;
}

.lc-stats-divider {
    margin: 0 8px;
    color: #bbb;
}

.lc-reviews-link {
    color: #3498db;
    text-decoration: none;
}

.lc-reviews-link:hover {
    text-decoration: underline;
}

/* Award score styling */
.lc-award-score-section {
    text-align: center;
}

.lc-score-display {
    margin-bottom: 1.5rem;
}

.lc-award-score-section .lc-score-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.lc-award-score-section .lc-score-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 1px;
}

.lc-score-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lc-score-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.lc-score-breakdown {
    text-align: left;
}

.lc-score-breakdown .lc-score-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.9rem;
}

.lc-score-breakdown .lc-score-item:last-child {
    border-bottom: none;
}

.lc-score-name {
    color: #2c3e50;
}

.lc-score-value {
    font-weight: 500;
    color: #7f8c8d;
}

/* Details sections */
.lc-award-details-section {
    background: #fff;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lc-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #ecf0f1;
}

.lc-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.lc-award-taxonomy-section {
    background: #fff;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lc-taxonomy-title {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.lc-taxonomy-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.taxonomy-item {
    padding: 0.3rem 0;
    border-left: 3px solid #3498db;
    padding-left: 0.8rem;
    color: #2c3e50;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

.taxonomy-item.award-category {
    border-left-color: #e74c3c;
}

.taxonomy-item.location {
    border-left-color: #f39c12;
}

.taxonomy-item.tag {
    border-left-color: #27ae60;
}

.taxonomy-item a {
    text-decoration: none;
    color: inherit;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.taxonomy-item a:hover {
    text-decoration: underline;
    background: none !important;
    background-color: transparent !important;
}

/* Remove all box styling from taxonomy items */
.lc-award-taxonomy-section .taxonomy-item,
.lc-taxonomy-list .taxonomy-item,
div.taxonomy-item {
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    padding-right: 0 !important;
}

/* Resonance breakdown section */
.lc-resonance-breakdown-full {
    background: #fff;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.lc-resonance-header {
    padding: 2rem 2rem 1.5rem 2rem;
    background: #fff;
    color: #2c3e50;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
}

.lc-score-summary {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-weight: 400;
}

.lc-resonance-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    color: #2c3e50;
}

.lc-resonance-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lc-resonance-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lc-resonance-content {
    padding: 2rem;
}

.lc-breakdown-intro {
    background: #f8f9fa;
    border-left: 3px solid #2c3e50;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0;
}

.lc-breakdown-intro p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.lc-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .lc-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lc-resonance-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .lc-resonance-content {
        padding: 1rem;
    }
    
    .lc-breakdown-intro {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .lc-total-calculation {
        padding: 1rem;
    }
}

.lc-breakdown-item {
    background: #fff;
    border-radius: 0;
    padding: 1.5rem;
    border: 1px solid #ecf0f1;
    transition: box-shadow 0.2s ease;
}

.lc-breakdown-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lc-breakdown-metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lc-metric-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc-metric-icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lc-metric-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.lc-metric-score {
    font-weight: bold;
    color: #27ae60;
    font-size: 0.9rem;
}

.lc-metric-progress .lc-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.lc-metric-progress .lc-progress-fill {
    height: 100%;
    background: #2c3e50;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.lc-progress-text {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
}

.lc-total-calculation {
    background: #f8f9fa;
    border-radius: 0;
    padding: 1.5rem;
    border-top: 2px solid #2c3e50;
    margin-top: 2rem;
}

.lc-calc-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.lc-calc-total {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
    font-weight: bold;
}

.lc-calc-label {
    color: #2c3e50;
}

.lc-calc-value {
    color: #666;
    font-weight: 500;
}

.lc-calc-final {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}