/**
 * Public Display Styles for CPO Shelter Manager
 */

.cpo-shelter-public-display {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.cpo-shelter-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: #14242b;
    color: #fff;
    border-radius: 8px;
}

.cpo-shelter-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.cpo-shelter-intro {
    font-size: 16px;
    margin: 10px 0;
    opacity: 0.95;
}

.cpo-shelter-contact {
    font-size: 18px;
    margin: 15px 0 0 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.cpo-shelter-contact strong {
    color: #fff;
    font-weight: 700;
}

/* Summary Stats */
.cpo-shelter-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-stat {
    background: #fff;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid #e5e5e5;
}

.summary-stat.available {
    border-color: #00a32a;
}

.summary-stat .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.summary-stat.available .stat-number {
    color: #00a32a;
}

.summary-stat .stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shelter List */
.cpo-shelter-list {
    display: grid;
    gap: 20px;
}

.no-shelters {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    font-size: 18px;
    color: #666;
}

/* Shelter Item */
.shelter-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 2fr 1fr;
    border-left: 5px solid #ccc;
    transition: box-shadow 0.3s ease;
}

.shelter-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.shelter-item.shelter-available {
    border-left-color: #00a32a;
}

.shelter-item.shelter-limited {
    border-left-color: #dba617;
}

.shelter-item.shelter-full {
    border-left-color: #d63638;
}

/* Shelter Main Section */
.shelter-main {
    padding: 25px;
}

.shelter-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.shelter-name {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 700;
}

.shelter-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.shelter-status-badge.available {
    background: #d5f4e6;
    color: #00a32a;
}

.shelter-status-badge.limited {
    background: #f9e9c2;
    color: #996800;
}

.shelter-status-badge.full {
    background: #ffd7d7;
    color: #d63638;
}

.status-icon {
    font-size: 16px;
}

/* Shelter Details */
.shelter-details {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.detail-icon {
    font-size: 18px;
    min-width: 20px;
}

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 70px;
}

.detail-value {
    color: #1a1a1a;
}

.detail-value a {
    color: #2271b1;
    text-decoration: none;
}

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

.detail-row.features .detail-value {
    color: #666;
}

/* Shelter Availability Section */
.shelter-availability {
    background: #f8f9fa;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #e5e5e5;
}

.availability-display {
    text-align: center;
    margin-bottom: 20px;
}

.beds-available {
    margin-bottom: 15px;
}

.beds-number {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
}

.shelter-available .beds-number {
    color: #00a32a;
}

.shelter-limited .beds-number {
    color: #dba617;
}

.shelter-full .beds-number {
    color: #d63638;
}

.beds-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beds-total {
    font-size: 13px;
    color: #666;
}

.beds-capacity {
    font-weight: 600;
    margin-bottom: 3px;
}

.beds-occupied {
    color: #999;
}

.capacity-bar-container {
    height: 10px;
    background: #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.capacity-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.capacity-bar.available {
    background: #00a32a;
}

.capacity-bar.limited {
    background: #dba617;
}

.capacity-bar.full {
    background: #d63638;
}

.last-updated {
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* Footer */
.cpo-shelter-footer {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.refresh-notice {
    margin: 0 0 15px 0;
    color: #666;
}

#last-refresh-time {
    font-weight: 600;
}

.refresh-button {
    background: #ffd52c;
    color: #1B3039;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    border: 1px solid transparent !important;
}

.refresh-button:hover {
    background: #1B3039 !important;
    color: white !important;
    border: 1px solid transparent !important;
}

.refresh-button .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Disclaimer */
.cpo-shelter-disclaimer {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cpo-shelter-disclaimer p {
    margin: 10px 0;
    font-size: 14px;
    color: #664d03;
}

.cpo-shelter-disclaimer p:first-child {
    margin-top: 0;
}

.cpo-shelter-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shelter-item {
        grid-template-columns: 1fr;
    }
    
    .shelter-availability {
        border-left: none;
        border-top: 1px solid #e5e5e5;
    }
    
    .shelter-header-row {
        flex-direction: column;
    }
    
    .shelter-status-badge {
        align-self: flex-start;
    }
    
    .cpo-shelter-header h2 {
        font-size: 24px;
    }
    
    .cpo-shelter-summary {
        grid-template-columns: 1fr;
    }
    
    .beds-number {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .cpo-shelter-header {
        padding: 20px 15px;
    }
    
    .shelter-name {
        font-size: 20px;
    }
    
    .shelter-main,
    .shelter-availability {
        padding: 20px;
    }
}



