/**
 * HVAC Attendee Profile Styles
 * Harmonized with existing plugin styles
 */

.hvac-attendee-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header */
.hvac-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.hvac-profile-title h1 {
    margin: 0 0 0.5em 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.hvac-profile-subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
}

.hvac-profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hvac-profile-actions a,
.hvac-profile-actions button {
    min-width: 120px;
    text-align: center;
}

/* Statistics Row - Matching Dashboard Styles */
.hvac-stats-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: -10px;
    margin-bottom: 2em;
    justify-content: space-between;
    align-items: stretch;
}

.hvac-stat-col {
    flex: 1;
    min-width: 160px;
    padding: 10px;
    margin-bottom: 0.5em;
}

.hvac-stat-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 1.5em;
    background: white;
    text-align: center;
    width: 100%;
    flex-grow: 1;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hvac-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.hvac-stat-card h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.1em;
    color: #007cba;
    font-weight: 600;
}

.stat-value {
    font-size: 2.4em;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* Content Sections */
.hvac-content-section {
    margin-bottom: 2em;
    padding: 1.5em;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hvac-content-section h2 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.4rem;
    color: #333;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e0e0e0;
}

/* Info Table */
.hvac-info-table {
    overflow-x: auto;
}

.hvac-table {
    width: 100%;
    border-collapse: collapse;
}

.hvac-table td {
    padding: 0.75em 1em;
    border-bottom: 1px solid #e0e0e0;
}

.hvac-table tr:last-child td {
    border-bottom: none;
}

.hvac-label {
    font-weight: 600;
    color: #666;
    width: 150px;
}

.hvac-table a {
    color: #007cba;
    text-decoration: none;
}

.hvac-table a:hover {
    text-decoration: underline;
}

/* Timeline */
.hvac-no-activity {
    text-align: center;
    color: #666;
    padding: 2em;
    background: #f9f9f9;
    border-radius: 5px;
}

.hvac-timeline {
    position: relative;
    padding-left: 40px;
}

.hvac-timeline-item {
    position: relative;
    margin-bottom: 2em;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hvac-timeline-date {
    flex: 0 0 150px;
    text-align: right;
    padding-top: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.hvac-timeline-time {
    display: block;
    font-weight: 400;
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

.hvac-timeline-marker {
    position: absolute;
    left: 168px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hvac-timeline-marker i {
    font-size: 16px;
}

.hvac-timeline-connector {
    position: absolute;
    left: 187px;
    top: 40px;
    width: 2px;
    height: calc(100% + 20px);
    background: #e0e0e0;
    z-index: 1;
}

.hvac-timeline-content {
    flex: 1;
    background: #fff;
    padding: 1.5em;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-left: 40px;
}

.hvac-timeline-content h4 {
    margin: 0 0 0.5em 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.hvac-checkin-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
}

.hvac-checkin-status.checked-in {
    background: #d4edda;
    color: #155724;
}

.hvac-checkin-status.not-checked-in {
    background: #f3f4f6;
    color: #6b7280;
}

.hvac-certificate-number {
    display: inline-block;
    padding: 4px 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
}

.hvac-event-link {
    display: inline-block;
    margin-top: 10px;
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.hvac-event-link:hover {
    text-decoration: underline;
}

.hvac-event-link i {
    font-size: 12px;
    margin-left: 5px;
}

/* Icon for profile links */
.hvac-attendee-profile-icon {
    display: inline-block;
    margin-left: 10px;
    color: #007cba;
    text-decoration: none;
    font-size: 16px;
    vertical-align: middle;
}

.hvac-attendee-profile-icon:hover {
    color: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hvac-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .hvac-profile-actions {
        width: 100%;
    }
    
    .hvac-profile-actions a,
    .hvac-profile-actions button {
        flex: 1;
        min-width: auto;
    }
    
    .hvac-stats-row {
        flex-direction: column;
    }
    
    .hvac-stat-col {
        width: 100%;
        padding: 5px 0;
    }
    
    .hvac-timeline {
        padding-left: 20px;
    }
    
    .hvac-timeline-date {
        flex: 0 0 100px;
        font-size: 12px;
    }
    
    .hvac-timeline-marker {
        left: 118px;
        width: 30px;
        height: 30px;
    }
    
    .hvac-timeline-connector {
        left: 132px;
    }
    
    .hvac-timeline-content {
        margin-left: 20px;
        padding: 1em;
    }
}

/* Print Styles */
@media print {
    .hvac-profile-actions,
    .ast-button {
        display: none !important;
    }
    
    .hvac-attendee-profile {
        padding: 0;
    }
    
    .hvac-content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .hvac-timeline-item {
        page-break-inside: avoid;
    }
}