/* css/modern-cards.css */

/* Ensure consistent card height */
.modern-card {
    /* You might need to adjust min-height based on content, 
       or use a more complex method if content varies wildly */
    min-height: 280px; 
    display: flex;
    flex-direction: column; /* Ensure footer stays at bottom */
}

.card-main-content {
    flex-grow: 1; /* Allow main content to fill available space */
}

/* Wrapper for description and photo */
.card-description-photo-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start; 
    margin-bottom: 15px;
    min-height: 120px; /* Ensure wrapper has height even if description is short */
}

.card-description {
    flex: 1 1 auto; /* Allow description to grow */
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 0; 
    height: 120px; /* Match photo height */
    max-height: 120px; /* Consistent height */
    overflow-y: auto; 
    padding: 10px;
    background-color: #f8f9fa; 
    border-radius: 6px;
    border: 1px solid #e9ecef; 
    scrollbar-width: thin;
    scrollbar-color: rgba(81, 30, 88, 0.3) #f1f1f1;
}
.card-description::-webkit-scrollbar {
    width: 5px;
}
.card-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.card-description::-webkit-scrollbar-thumb {
    background: rgba(81, 30, 88, 0.3);
    border-radius: 10px;
}
.card-description::-webkit-scrollbar-thumb:hover {
    background: rgba(81, 30, 88, 0.5);
}
.card-description p {
     margin: 0 0 8px 0;
     word-wrap: break-word;
     overflow-wrap: break-word;
     white-space: normal;
}
.card-description p:last-child {
    margin-bottom: 0;
}

.card-photo-container {
    flex: 0 0 120px; /* Fixed width */
    position: relative;
    margin-top: 0;
    border-radius: 8px;
    overflow: hidden;
    height: 120px; /* Fixed height */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    background-color: #f0f0f0; /* Placeholder background */
}

/* Hide photo container if it's empty (might need JS to add a class like 'has-photo') */
.modern-card:not(.has-photo) .card-photo-container {
    display: none;
}
/* Allow description to take full width if no photo */
.modern-card:not(.has-photo) .card-description {
     /* Adjust height or other properties if needed */
     height: auto; /* Let it take natural height or a different fixed height */
     max-height: 180px; /* Example: allow more height */
}


.card-photo-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.card-photo-container:hover img {
    transform: scale(1.05);
}
.card-view-photo {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.card-photo-container:hover .card-view-photo {
     opacity: 1;
     transform: translateY(0);
}
.card-view-photo:hover {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
}

/* Ensure issues list uses grid layout */
#issuesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Responsive columns */
    gap: 25px; /* Gap between cards */
}

/* Comment out old/unused styles that were in the HTML */
/* 
.status-section { ... }
.status-header { ... }
.issues-container { ... } 
*/ 