/* Journey Card Styles */
.journey-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    position: relative;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.journey-card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

.journey-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #b8dabc;
}

.status-badge.own-journey {
    background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%);
    color: #004085;
    border: 2px solid #9ecaed;
}

.journey-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffc107;
    font-weight: 600;
}

/* Route Section */
.route-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.route-icon {
    color: #007bff;
}

.route-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.location i {
    font-size: 1.2rem;
    color: #007bff;
}

.location-info .city {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.location-info .country {
    font-size: 0.8rem;
    color: #6c757d;
}

.route-arrow {
    color: #007bff;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Dates Section */
.dates-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 0.5rem;
    border: 1px solid #ffeaa7;
}

.date-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.date-label {
    font-size: 0.8rem;
    color: #856404;
    font-weight: 500;
}

.date-value {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.section-title i {
    color: #007bff;
}

/* Capacity Section */
.capacity-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capacity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.capacity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.capacity-item.carry-on .capacity-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.capacity-item.checked .capacity-icon {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.capacity-details {
    flex: 1;
}

.capacity-type {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.capacity-value {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.capacity-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Accepts Section */
.accepts-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.accept-tag {
    padding: 0.4rem 0.8rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 2px solid;
}

.accept-tag.electronics {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border-color: #90caf9;
}

.accept-tag.documents {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
    border-color: #ce93d8;
}

.accept-tag.clothing {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #388e3c;
    border-color: #a5d6a7;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ffeaa7;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-info i {
    color: #007bff;
}

/* Card Footer */
.card-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-accept {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
}

.btn-accept:hover {
    background: linear-gradient(135deg, #218838 0%, #1c7430 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-details {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-details:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-login {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: 2px solid #007bff;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-own-journey {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Empty State */
.empty-journeys-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-description {
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .route-path {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .route-arrow {
        transform: rotate(90deg);
    }
    
    .dates-section {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .accepts-tags {
        justify-content: center;
    }
    
    .empty-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .empty-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .journey-card {
        margin-bottom: 1rem;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem;
    }
    
    .capacity-grid {
        gap: 0.5rem;
    }
    
    .capacity-item {
        padding: 0.5rem;
    }
    
    .empty-journeys-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* Animation */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.journey-card:nth-child(1) { animation-delay: 0.1s; }
.journey-card:nth-child(2) { animation-delay: 0.2s; }
.journey-card:nth-child(3) { animation-delay: 0.3s; }
.journey-card:nth-child(4) { animation-delay: 0.4s; }
.journey-card:nth-child(5) { animation-delay: 0.5s; }
.journey-card:nth-child(6) { animation-delay: 0.6s; }