/**
 * PASDO Location-Based Content - Styles
 *
 * Styling for location-based volunteer listings.
 * Dark green boxes with white text, vertical stacked layout.
 *
 * Colors:
 * - Background: #178851 (dark green)
 * - Text: #FFFFFF (white)
 * - Links: #66BB6A (light green)
 *
 * @package PASDO_Location_Content
 */

/* ========================================
   Container & Layout
   ======================================== */

.pasdo-listings-container {
    margin: 2rem 0;
    padding: 0;
}

.pasdo-location-breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background-color: #f5f5f5;
    border-left: 4px solid #178851;
    border-radius: 4px;
}

.pasdo-location-breadcrumb p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

/* ========================================
   Listing Groups
   ======================================== */

.pasdo-listing-group {
    margin-bottom: 3rem;
}

.pasdo-group-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #178851;
    font-size: 1.875rem;
    font-weight: 700;
    color: #178851;
}

/* ========================================
   Listings List (Vertical Stacked)
   ======================================== */

.pasdo-listings-list {
    display: flex;
    flex-direction: column;
    gap: 50px; /* 50px spacing between items as requested */
}

/* ========================================
   Individual Listing Item
   ======================================== */

.pasdo-listing-item {
    display: flex;
    flex-direction: row;
    background-color: #178851; /* Dark green background */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.pasdo-listing-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23, 136, 81, 0.3);
}

/* ========================================
   Featured Image (Left Side)
   ======================================== */

.pasdo-listing-thumbnail {
    flex-shrink: 0;
    width: 280px;
    max-width: 35%;
    overflow: hidden;
}

.pasdo-listing-thumbnail a {
    display: block;
    height: 100%;
}

.pasdo-listing-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pasdo-listing-item:hover .pasdo-listing-thumbnail img {
    transform: scale(1.05);
}

/* No image - adjust layout */
.pasdo-listing-item:not(:has(.pasdo-listing-thumbnail)) .pasdo-listing-content {
    padding: 2rem;
}

/* ========================================
   Content Area (Right Side)
   ======================================== */

.pasdo-listing-content {
    flex-grow: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    color: #FFFFFF; /* White text */
}

/* ========================================
   Location Badge
   ======================================== */

.pasdo-listing-location-badge {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

/* ========================================
   Title
   ======================================== */

.pasdo-listing-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF; /* White text */
}

.pasdo-listing-title a {
    color: #66BB6A; /* Light green links */
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.pasdo-listing-title a:hover {
    color: #81C784; /* Lighter green on hover */
    text-decoration: underline;
}

/* ========================================
   Excerpt
   ======================================== */

.pasdo-listing-excerpt {
    margin-bottom: 1.25rem;
    font-size: 0.975rem;
    line-height: 1.6;
    color: #FFFFFF; /* White text */
    flex-grow: 1;
}

.pasdo-listing-excerpt p {
    margin: 0;
    color: #FFFFFF;
}

/* ========================================
   Learn More Link
   ======================================== */

.pasdo-listing-link {
    display: inline-block;
    align-self: flex-start;
    padding: 0.65rem 1.5rem;
    background-color: transparent;
    border: 2px solid #66BB6A; /* Light green border */
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #66BB6A; /* Light green text */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.pasdo-listing-link:hover {
    background-color: #66BB6A;
    color: #178851; /* Dark green text on light green background */
    transform: translateX(5px);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablets */
@media (max-width: 992px) {
    .pasdo-listing-thumbnail {
        width: 220px;
        max-width: 40%;
    }
    
    .pasdo-listing-content {
        padding: 1.25rem 1.5rem;
    }
    
    .pasdo-listing-title {
        font-size: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pasdo-listings-list {
        gap: 40px; /* Reduce spacing on mobile */
    }
    
    .pasdo-listing-item {
        flex-direction: column; /* Stack vertically on mobile */
        min-height: auto;
    }
    
    .pasdo-listing-thumbnail {
        width: 100%;
        max-width: 100%;
        height: 200px;
    }
    
    .pasdo-listing-content {
        padding: 1.5rem;
    }
    
    .pasdo-group-title {
        font-size: 1.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .pasdo-listings-list {
        gap: 30px;
    }
    
    .pasdo-listing-content {
        padding: 1.25rem;
    }
    
    .pasdo-listing-title {
        font-size: 1.125rem;
    }
    
    .pasdo-listing-excerpt {
        font-size: 0.9rem;
    }
}

/* ========================================
   No Results Messages
   ======================================== */

.pasdo-no-location,
.pasdo-no-results {
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #178851;
    border-radius: 6px;
    text-align: center;
}

.pasdo-no-location p,
.pasdo-no-results p {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: #555;
}

.pasdo-no-results-message {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.pasdo-no-results-suggestions {
    margin-top: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pasdo-no-results-suggestions h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #178851;
}

.pasdo-no-results-suggestions ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.pasdo-no-results-suggestions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.pasdo-parent-location {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.pasdo-parent-location a {
    color: #178851;
    text-decoration: underline;
    font-weight: 600;
}

.pasdo-parent-location a:hover {
    color: #0f5a35;
}

/* ========================================
   Accessibility
   ======================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
.pasdo-listing-link:focus,
.pasdo-listing-title a:focus {
    outline: 3px solid #66BB6A;
    outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .pasdo-listing-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #178851;
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    .pasdo-listing-content,
    .pasdo-listing-title,
    .pasdo-listing-excerpt,
    .pasdo-listing-location-badge {
        color: #000000 !important;
    }
    
    .pasdo-listing-title a {
        color: #178851 !important;
        text-decoration: underline;
    }
    
    .pasdo-listing-link {
        display: none;
    }
    
    .pasdo-listing-thumbnail img {
        max-height: 150px;
    }
}