/* branch_section.css */
@import url('colorpalette.css');

#branches-section {
    background-color: var(--bg-white);
}

#branches-title {
    color: var(--primary-red);
    margin-bottom: 3rem;
}

/* Branch Card Styles */
.branch-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(139, 0, 0, 0.1);
    border-color: var(--border-dark);
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-red), var(--golden-yellow));
}

/* Branch Header */
.branch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.branch-info h3 {
    color: var(--primary-red);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.branch-location {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.branch-location::before {
    content: '📍';
    font-size: 0.75rem;
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.status-inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error);
}

/* Branch Details */
.branch-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-dark);
}

.detail-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Address with icon */
.address-item .detail-icon::before {
    content: '🏢';
}

.address-text {
    line-height: 1.5;
}

/* Phone with icon */
.phone-item .detail-icon::before {
    content: '📞';
}

/* Action Buttons */
.branch-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.call-btn {
    background-color: var(--primary-red);
    color: var(--white);
}

.call-btn:hover {
    background-color: var(--light-red);
    transform: translateY(-2px);
}

.map-btn {
    background-color: var(--golden-yellow);
    color: var(--text-dark);
}

.map-btn:hover {
    background-color: #FFB830;
    transform: translateY(-2px);
}

/* No Branches State */
.no-branches {
    text-align: center;
    padding: 3rem 0;
}

.no-branches-content {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 28rem;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.no-branches-icon {
    color: var(--border-medium);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-branches-title {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-branches-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.reset-filter-btn {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reset-filter-btn:hover {
    background-color: var(--light-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .branch-actions {
        flex-direction: column;
    }
    
    .branch-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .status-badge {
        align-self: flex-start;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.branch-card {
    animation: fadeInUp 0.5s ease-out;
}

.branch-card:nth-child(2) {
    animation-delay: 0.1s;
}

.branch-card:nth-child(3) {
    animation-delay: 0.2s;
}