/**
 * Logbook Styles - Frontend and Admin
 */

/* Logbook Container */
.pt-logbook {
    max-width: 800px;
    margin: 0 auto;
}

/* Individual Entry */
.pt-log-entry {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pt-log-entry:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Header with Date Badge */
.pt-log-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
}

.pt-log-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    border: 3px solid #666;
    border-radius: 8px;
    background: #fff;
}

.pt-log-day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #1d2327;
}

.pt-log-month {
    font-size: 12px;
    text-transform: uppercase;
    color: #646970;
    letter-spacing: 0.5px;
}

.pt-log-meta {
    flex: 1;
}

.pt-log-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.3;
}

.pt-log-title a {
    color: #1d2327;
    text-decoration: none;
}

.pt-log-title a:hover {
    color: #2271b1;
}

.pt-log-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #646970;
}

.pt-log-mood {
    font-size: 16px;
}

.pt-log-hours {
    font-weight: 500;
    color: #2271b1;
}

.pt-log-location {
    color: #8c8f94;
}

.pt-log-competency {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Content */
.pt-log-content {
    font-size: 15px;
    line-height: 1.6;
    color: #3c434a;
}

.pt-log-content p {
    margin: 0 0 12px 0;
}

.pt-log-content p:last-child {
    margin-bottom: 0;
}

/* Connections Footer */
.pt-log-connections {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
    font-size: 13px;
}

.pt-log-connections > div {
    margin-bottom: 8px;
}

.pt-log-connections > div:last-child {
    margin-bottom: 0;
}

.pt-log-connections strong {
    color: #646970;
    margin-right: 5px;
}

.pt-log-connections a {
    color: #2271b1;
    text-decoration: none;
}

.pt-log-connections a:hover {
    text-decoration: underline;
}

/* No Entries */
.pt-no-entries {
    text-align: center;
    padding: 40px;
    color: #646970;
    font-style: italic;
}

/* Load More */
.pt-logbook-more {
    text-align: center;
    margin-top: 30px;
}

/* Summary Shortcode */
.pt-logbook-summary {
    background: #f6f7f7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.pt-logbook-summary h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #1d2327;
}

.pt-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.pt-summary-stat {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pt-stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2271b1;
    line-height: 1;
    margin-bottom: 5px;
}

.pt-stat-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mood Distribution */
.pt-mood-distribution h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #1d2327;
}

.pt-mood-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pt-mood-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.pt-mood-progress {
    flex: 1;
    height: 8px;
    background: #e2e4e7;
    border-radius: 4px;
    overflow: hidden;
}

.pt-mood-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.pt-mood-percent {
    font-size: 12px;
    color: #646970;
    min-width: 35px;
    text-align: right;
}

/* Archive Page */
.pt-logbook-archive {
    max-width: 800px;
    margin: 0 auto;
}

.pt-logbook-archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e4e7;
}

.pt-logbook-archive-header h1 {
    margin: 0 0 10px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .pt-log-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .pt-log-date-badge {
        flex-direction: row;
        gap: 5px;
        height: auto;
        padding: 8px 12px;
        min-width: auto;
        align-self: flex-start;
    }
    
    .pt-log-day {
        font-size: 18px;
    }
    
    .pt-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}