/* ============================================
   Opportunities Grid - Reusable Styles
   Used in: profile-preview.blade.php, show_new.blade.php, organization-detail.blade.php
   ============================================ */

/* Opportunities Grid - 3 Column Layout */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

/* Individual Opportunity Card */
.opportunity-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.opportunity-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #00568f;
}

/* Organization Logo */
.opportunity-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 18px auto;
    display: block;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 10px;
}

/* Opportunity Title */
.opportunity-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Opportunity Location (if used) */
.opportunity-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.opportunity-location i {
    color: #00568f;
    font-size: 13px;
}

/* Opportunity Description */
.opportunity-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* See Details Link/Button */
.opportunity-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    background: #00568f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s;
    margin-top: auto;
}

.opportunity-link:hover {
    background: #003d66;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 86, 143, 0.3);
    color: white;
    text-decoration: none;
}

.opportunity-link i {
    transition: transform 0.3s;
}

.opportunity-link:hover i {
    transform: translateX(4px);
}

/* Responsive Grid Layout */
@media (max-width: 1024px) {
    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .opportunities-grid {
        grid-template-columns: 1fr;
    }
    
    .opportunity-card {
        padding: 20px;
    }
    
    .opportunity-logo {
        width: 70px;
        height: 70px;
    }
    
    .opportunity-title {
        font-size: 15px;
        min-height: auto;
    }
    
    .opportunity-description {
        font-size: 13px;
    }
}

/* Empty State for No Opportunities */
.opportunities-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.opportunities-grid .empty-state i {
    font-size: 64px;
    color: #d0d5dd;
    margin-bottom: 20px;
}

.opportunities-grid .empty-state h3 {
    color: #666;
    font-size: 20px;
    margin-bottom: 10px;
}

.opportunities-grid .empty-state p {
    color: #999;
}